pofider / phantom-html-to-pdf

Highly scalable html to pdf conversion using phantom workers
MIT License
159 stars 33 forks source link

Link are not working #64

Closed david-rouchet closed 7 years ago

david-rouchet commented 7 years ago

The links referencing other part of the page (ex:

  • Home
  • in the html before pdf conversion) are not working in the pdf document. Clicking on those links on the pdf ask to open a new file which does not work either, instead of pointing at the right location within the current pdf file. Any idea, solutions?

    pofider commented 7 years ago

    This package is just a wrapper around the phantomjs which is in fact doing the pdf rendering. You should take a look there https://github.com/ariya/phantomjs

    Btw it doesn't support anchors in the version 1, see how to use the latest here https://github.com/pofider/phantom-html-to-pdf#phantomjs2