Fix spelling error
This commit is contained in:
@ -38,7 +38,7 @@ export class FooterWrapper {
|
|||||||
this.footer.addChildElement(childElement);
|
this.footer.addChildElement(childElement);
|
||||||
}
|
}
|
||||||
|
|
||||||
public addImageRelation(image: Buffer, refId: number, width?: number, height?: number): IMediaData {
|
public addImageRelationship(image: Buffer, refId: number, width?: number, height?: number): IMediaData {
|
||||||
const mediaData = this.media.addMedia(image, refId, width, height);
|
const mediaData = this.media.addMedia(image, refId, width, height);
|
||||||
this.relationships.createRelationship(
|
this.relationships.createRelationship(
|
||||||
refId,
|
refId,
|
||||||
@ -49,7 +49,7 @@ export class FooterWrapper {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public createImage(image: Buffer, width?: number, height?: number): void {
|
public createImage(image: Buffer, width?: number, height?: number): void {
|
||||||
const mediaData = this.addImageRelation(image, this.relationships.RelationshipCount, width, height);
|
const mediaData = this.addImageRelationship(image, this.relationships.RelationshipCount, width, height);
|
||||||
this.addImage(new Image(new ImageParagraph(mediaData)));
|
this.addImage(new Image(new ImageParagraph(mediaData)));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -39,7 +39,7 @@ export class HeaderWrapper {
|
|||||||
this.header.addChildElement(childElement);
|
this.header.addChildElement(childElement);
|
||||||
}
|
}
|
||||||
|
|
||||||
public addImageRelation(image: Buffer, refId: number, width?: number, height?: number): IMediaData {
|
public addImageRelationship(image: Buffer, refId: number, width?: number, height?: number): IMediaData {
|
||||||
const mediaData = this.media.addMedia(image, refId, width, height);
|
const mediaData = this.media.addMedia(image, refId, width, height);
|
||||||
this.relationships.createRelationship(
|
this.relationships.createRelationship(
|
||||||
refId,
|
refId,
|
||||||
@ -50,7 +50,7 @@ export class HeaderWrapper {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public createImage(image: Buffer, width?: number, height?: number): void {
|
public createImage(image: Buffer, width?: number, height?: number): void {
|
||||||
const mediaData = this.addImageRelation(image, this.relationships.RelationshipCount, width, height);
|
const mediaData = this.addImageRelationship(image, this.relationships.RelationshipCount, width, height);
|
||||||
this.addImage(new Image(new ImageParagraph(mediaData)));
|
this.addImage(new Image(new ImageParagraph(mediaData)));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -100,7 +100,7 @@ export class ImportDocx {
|
|||||||
}
|
}
|
||||||
for (const r of wrapperImagesReferences) {
|
for (const r of wrapperImagesReferences) {
|
||||||
const buffer = await zipContent.files[`word/${r.targetFile}`].async("nodebuffer");
|
const buffer = await zipContent.files[`word/${r.targetFile}`].async("nodebuffer");
|
||||||
wrapper.addImageRelation(buffer, r.id);
|
wrapper.addImageRelationship(buffer, r.id);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user