Closed SimonSapin closed 5 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
Oh, it's done now (actually just because of Cairo limitations, see dfab8a8, but who cares)…
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