Got docx not crashing when adding image
This commit is contained in:
15
src/file/drawing/inline/doc-properties/doc-properties.ts
Normal file
15
src/file/drawing/inline/doc-properties/doc-properties.ts
Normal file
@ -0,0 +1,15 @@
|
||||
import { XmlComponent } from "file/xml-components";
|
||||
import { DocPropertiesAttributes } from "./doc-properties-attributes";
|
||||
|
||||
export class DocProperties extends XmlComponent {
|
||||
|
||||
constructor() {
|
||||
super("wp:docPr");
|
||||
|
||||
this.root.push(new DocPropertiesAttributes({
|
||||
id: 0,
|
||||
name: "",
|
||||
descr: "",
|
||||
}));
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user