laurentj / slimerjs

A scriptable browser like PhantomJS, based on Firefox
http://slimerjs.org
Other
3k stars 258 forks source link

PDF links and bookmarks #649

Closed dpanic closed 7 years ago

dpanic commented 7 years ago

versions

Steps to reproduce the issue

page.open("file:///tmp/1.html", function(status) { page.render("/tmp/test.pdf"); });

Actual results:

  1. Links are not clickable
  2. There are no bookmarks

Expected results:

  1. Links to be clickable and opened in browser
  2. Bookmarks
laurentj commented 7 years ago

Hi,

Links are not clickable

Where ? in the web page or in the PDF ?

There are no bookmarks

Which bookmark do you talk about? Bokkmarks of what? Where these "bookmarks" are supposed to be?

laurentj commented 7 years ago

I just discover that a PDF can contain bookmarks.

And you probably talk about links into the PDF.

Sorry, I won't fix these issues. SlimerJS is using the internal PDF "printer" of Firefox to generate the PDF. So I cannot fix them. Probably you would want to fill a bug on bugzilla.mozilla.org.