fix(core): update

This commit is contained in:
2022-09-15 20:52:22 +02:00
parent 876466b18d
commit 1e4b16b734
4 changed files with 42 additions and 162 deletions

View File

@ -3,6 +3,6 @@
*/
export const commitinfo = {
name: '@pushrocks/smartpdf',
version: '3.0.10',
version: '3.0.11',
description: 'create pdfs on the fly'
}

View File

@ -186,7 +186,7 @@ export class SmartPdf {
public async mergePdfs(pdfArrayArg: plugins.tsclass.business.IPdf[]): Promise<IPdf> {
const merger = new plugins.pdfMerger();
for (const pdf of pdfArrayArg) {
merger.add(pdf.buffer as Buffer);
merger.add(Buffer.from(pdf.buffer));
}
const resultBuffer = await merger.saveAsBuffer();
return {