Kozea / WeasyPrint

The awesome document factory
https://weasyprint.org
BSD 3-Clause "New" or "Revised" License
7.16k stars 680 forks source link

Use PDF "named destinations" for bookmarks/outlines #178

Closed SimonSapin closed 5 years ago

SimonSapin commented 10 years ago

We use CSS’s bookmarks feature to generate PDF "outlines". We should additionally generate "named destinations" for these, to take advantage of pdf.js’s support for navigating to them with a fragment identifier:

http://www.adobe.com/content/dam/Adobe/en/devnet/acrobat/pdfs/PDF32000_2008.pdf#M11.9.20535.3Heading.Named.Destinations

https://github.com/mozilla/pdf.js/blob/34f0f0962f5404b5897e00506bf434ca50cb4251/src/core/obj.js#L354

liZe commented 5 years ago

Oh, it's done now (actually just because of Cairo limitations, see dfab8a8, but who cares)…