Sample Header Ad - 728x90

Spliting PDF while keeping index in the new file

0 votes
1 answer
41 views
I have got a PDF file with many tomes in it. Because it contains a lot (>5,000) of pages I want to split it. I have used pdftk like this:
pdftk input.pdf cat 487-2987 output second_tome.pdf
It works, but somehow pdftk doesn't put index in the output file. Because the content has many chapters I would like it to keep index, so I could quickly skip to a chapter in my PDF viewer. I tried gs, but it behaves similar to pdftk: it doesn't write index. And works very slow. I tried qpdf, which **do** keep the index, but it puts the *entire* index of the input PDF, which results in the output file having information of all old contents. Also, if (like in the example above) I want to separate a range of pages, the "first" page in the output PDF will not start from 1. Is there any way to do a split with an index?
Asked by Felix.leg (103 rep)
May 24, 2025, 10:35 AM
Last activity: May 24, 2025, 12:54 PM