ropensci / pdftools

Text Extraction, Rendering and Converting of PDF Documents
https://docs.ropensci.org/pdftools
Other
524 stars 71 forks source link

Can TOC be added? #99

Closed zoushucai closed 3 years ago

zoushucai commented 3 years ago

I only see extracted TOC information from the document,but how to write TOC into PDF

jeroen commented 3 years ago

The pdftools package an only read pdf files, not write.

trevorld commented 2 years ago

@zoushucai FYI: my new work-in-progress package {xmpdf} has a couple of functions you can use to add pdf bookmarks aka table of contents to a pdf file.