torakiki / pdfsam

PDFsam, a desktop application to split, merge, mix, rotate PDF files and extract pages
https://pdfsam.org
GNU Affero General Public License v3.0
3.45k stars 345 forks source link

TOC broken after PDF merge #206

Open SimonOL opened 7 years ago

SimonOL commented 7 years ago

I'm using PDFsam to merge two PDF files. One containing a document created with LibreOffice Writer, the other one containing a layout created with ArcMap (I used LibreOffice Draw for the example file). After merge the TOC links generated in Writer (first page of document) aren't working for pages positioned after the inserted layout. I already tried to discuss this on superuser but was redirected here.

document.pdf layout.pdf PDFsam_merge.pdf

torakiki commented 7 years ago

I understand what the issue is, you added document.pdf twice with layout.pdf in between but for PDFsam the second instance of document.pdf is a different document, so it doesn't know that a link from the first instance should point to it. We will investigate and try to fix this.