Make add image support base64 strings
This commit is contained in:
@ -129,7 +129,7 @@ export class File {
|
||||
return this;
|
||||
}
|
||||
|
||||
public createImage(buffer: Buffer, width?: number, height?: number): Image {
|
||||
public createImage(buffer: Buffer | string | Uint8Array | ArrayBuffer, width?: number, height?: number): Image {
|
||||
const image = Media.addImage(this, buffer, width, height);
|
||||
this.document.addParagraph(image.Paragraph);
|
||||
|
||||
|
Reference in New Issue
Block a user