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

Link to other page #418

Open lkiii opened 4 years ago

lkiii commented 4 years ago

hello, I have an issue with creating link to another page.

I am currently using

  ....
  pdfWriter.pausePageContentContext(contentContext)
  pdfWriter.attachURLLinktoCurrentPage('file.pdf#page=2', 0, 0, pageWidth, pageHeight)
  ....

And link is being created, but it is external link to file://myfilelocation/file.pdf#page=2 and it does not work as expected. Can someone help with this issue?