Turn Packer static
This commit is contained in:
@ -32,9 +32,9 @@
|
||||
],
|
||||
});
|
||||
|
||||
const packer = new Packer();
|
||||
|
||||
packer.toBlob(doc).then((blob) => {
|
||||
|
||||
Packer.toBlob(doc).then((blob) => {
|
||||
console.log(blob);
|
||||
saveAs(blob, "example.docx");
|
||||
console.log("Document created successfully");
|
||||
|
Reference in New Issue
Block a user