ropensci / pdftools

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

Can TOC be added? #99

Closed zoushucai closed 2 years ago

zoushucai commented 2 years ago

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

jeroen commented 2 years ago

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

trevorld commented 1 year 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.