Open LiangFuzhi opened 1 year ago
const path = require('path'); const Recipe = require('muhammara').Recipe; const pdfDoc = new Recipe(path.join(__dirname, './1.pdf'), path.join(__dirname, './output.pdf')); console.log(pdfDoc.pageInfo(1)); pdfDoc .appendPage(path.join(__dirname, './2.pdf')) .endPDF();
2.pdf file contains a directory, which causes the directory link to become invalid after merging
https://github.com/galkahana/HummusJS/issues/437 See the same problem
thanks for reporting the solution is pretty ugly :P but feels like the only solution. will have a look
2.pdf file contains a directory, which causes the directory link to become invalid after merging