I am trying to create a contents page for several PDF documents, that will include links to the start of each (merged with GS) pdf.
At the moment I have: A HTML page that acts as a contents page, to be converted vis domPDF (this part works) Several section divider pages (PDFs converted with domPdf) that have section X anchors inside Additional PDF documents to be merged to create 1 large PDF with a contents page.
I am running GS on the shell to process the merge of the PDF docs:
gs -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=save_path/final.pdf contents.pdf section1.pdf brochure1.pdf section2.pdf brochure2.pdf back.pdf
GS successfully merges the PDF docs into 1 large PDF.
However, the links do not work.
It seems that the PDF cannot link to documents where the destination is outside of its original file.
If I add a link in the contents file, and the destination is is the same contents file..the final output PDF renders the links and they operate as desired.
So, my question is, is it possible to include a link in a merged PDF docu that will link to other, merged PDF files.
Any pointers or suggestions would be most helpful.