How to use Auto-pdf-merger Function:
-
npm i --save-dev @types/node - if not available.
-
"typeRoots": [ "../node_modules/@types" ] - add this line to tsconfig.jos if not available.
-
npm i auto-pdf-merger - your pdf merger library
-
declare var require: any - if not availabe
-
const conStr = require('strconcatfunctions'); - call library.
-
let res = await autoMerger.addBase64Array('here is the base64 array'); call the function with parameter.
ex. async doMerge(){
let pdfBase64Array = ['aaaaaa','bbbbbbbb'];
let pdfBase64Merged = await autoMerger.addBase64Array(this.pdfBase64Array);
console.log(pdfBase64Merged);
}
Thank you for using this library. Radumix.