galkahana / HummusJS

Node.js module for high performance creation, modification and parsing of PDF files and streams
http://www.pdfhummus.com
Other
1.14k stars 169 forks source link

Merge append files keeping HTML url links #329

Closed lanceschi closed 5 years ago

lanceschi commented 5 years ago

Hi,

i followed #181 in order to merge/append multiple PDF files.

It works. It keeps the formatting but the hyper-links got lost in the final output PDF file.

Is it possible to keep/preserve the hyper-links during the merging process?

Any help appreciated. Thanks!

galkahana commented 5 years ago

use the onPageWriter event to add annotations (implementation of hyper-links). here's an example: https://github.com/galkahana/HummusJSSamples/tree/master/appending-pages-with-comments

lanceschi commented 5 years ago

@galkahana thanks! It did the trick