julianhille / MuhammaraJS

Muhammara a node module with c/cpp bindings to modify PDF with js for node or electron (based/replacement on/of galkhana/hummusjs)
Other
229 stars 46 forks source link

Link cannot jump after merging #329

Open LiangFuzhi opened 1 year ago

LiangFuzhi commented 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

LiangFuzhi commented 1 year ago

https://github.com/galkahana/HummusJS/issues/437 See the same problem

julianhille commented 1 year ago

thanks for reporting the solution is pretty ugly :P but feels like the only solution. will have a look