Got docx not crashing when adding image
This commit is contained in:
@ -1,4 +1,8 @@
|
||||
// http://officeopenxml.com/drwPicInline.php
|
||||
import { XmlComponent } from "file/xml-components";
|
||||
import { DocProperties } from "./doc-properties/doc-properties";
|
||||
import { EffectExtent } from "./effect-extent/effect-extent";
|
||||
import { Extent } from "./extent/extent";
|
||||
import { Graphic } from "./graphic";
|
||||
import { GraphicFrameProperties } from "./graphic-frame/graphic-frame-properties";
|
||||
import { InlineAttributes } from "./inline-attributes";
|
||||
@ -15,6 +19,9 @@ export class Inline extends XmlComponent {
|
||||
distR: 0,
|
||||
}));
|
||||
|
||||
this.root.push(new Extent());
|
||||
this.root.push(new EffectExtent());
|
||||
this.root.push(new DocProperties());
|
||||
this.root.push(new GraphicFrameProperties());
|
||||
this.root.push(new Graphic(referenceId));
|
||||
}
|
||||
|
Reference in New Issue
Block a user