Open
Description
Understanding the Difference between Bookmarks and the Outline in a PDF
Creating a Table-of-Contents with PDF.js
https://github.com/mozilla/pdf.js/tree/master/examples/node
CreateOptions, addOutline, insertOutline
Tools
{Adoc, TOC.json} -> [] -> html1
html1 -> [] -> PDF1
PDF1 -> [toc.js] -> TOC.json
- Parse PDF with
pdf.js
library https://github.com/mozilla/pdf.js - Measure page numbers for Chapters, Sections.
- Number of pages
{PDF1, TOC.json} -> [] -> PDF2
- based on printed PDF and TOC.json
- parse PDF1 using
pdf-lib
https://github.com/Hopding/pdf-lib - add headers and footers. page numbers
- add
Outline
using PdfOutline (Outline/Bookmarking functionality) Hopding/pdf-lib#486 - save modified
PDF2
Metadata
Assignees
Labels
No labels