node-html-pdf icon indicating copy to clipboard operation
node-html-pdf copied to clipboard

No Bookmarks?

Open david-rouchet opened this issue 9 years ago • 7 comments

I've had a look on the options and did not see how to specify to generate bookmarks based on H1, H2 etc... As a matter of fact, the bookmarks are not generated by default.

Is there a way to do it?

david-rouchet avatar Apr 03 '17 17:04 david-rouchet

I am totally looking for such feature if possible.

jazlopez avatar Apr 17 '17 07:04 jazlopez

+1

holly-weisser avatar May 10 '17 13:05 holly-weisser

Still struggling with this, no answer so far nor solution, can anybody help?

david-rouchet avatar May 19 '17 21:05 david-rouchet

@david-rouchet as far as I know this package is a wrapper of phantomjs binar and as of today phantom does not support bookmark generation out of the box.

Having said that I would suggest you to use wkhtmlpdf and make sure to install it with the latest patched qt.

Per the release notes it looks like it supports bookmarks. Scroll down to the section Outlines http://madalgo.au.dk/~jakobt/wkhtmltoxdoc/wkhtmltopdf_0.10.0_rc2-doc.html

Hope the information helps.

jazlopez avatar May 20 '17 05:05 jazlopez

@jazlopez thank you for the feedback. I know this tool and actually we currently use it, but I wanted to go for a pure JS solution to be portable without compiling or targeting a specific platform

david-rouchet avatar May 23 '17 15:05 david-rouchet

Probably, this one is a related issue of Phantom.js.

ezze avatar Aug 08 '17 13:08 ezze

@ezze Indeed, this is likely the case. However, no solution has been provided as far as I know... :-(,

david-rouchet avatar Aug 09 '17 13:08 david-rouchet