Creé una lista de rutas de pdf e intenté fusionarlas en un archivo, pero recibo un error de promesa no controlada: ya finalizó
este es mi código, también traté de esperar mientras agregaba a pdf pero no me gustó. ¿Hay alguna forma de manejar este error?
listOFPdf.push(docPath.filepath);//list of pdf paths const merger = new PDFMerger(); (async()=>{ listOFPdf.forEach(file=> { //loop through paths and merge them const mergedPdf = await merger.save(file); // save the path }) }) ();// calling the function