Concatenate PDFs without ruining accessibility or PDF tags
Would appreciate your help with the following: I have 2 partially accessible PDFs (containing tags), and I want to concatenate them using some command line tool (as PDFtk or Ghostscript, or any Perl module): I've tried doing this with PDFtk and Ghostscript and both output a non accessible PDF without the original tags (each of the concatenated PDFs had tags).
Do you know of any way to implement this with one of the mentioned tools or some other command line tool for Linux? (Not necessarily freeware) Perl modules are also an option.
Thanks!
pdfunite in-1.pdf in-2.pdf in-n.pdf out.pdf
你可以在类似的问题中阅读更多内容
Solved - new version of iText works (the former, which was the newest when writing the message didn't work- only since 5.4.4 it works).
It's important to mention (was missing in documentation in the past) that when concatenating documents in tagged mode, you must keep all readers opened until the resultant document is closed, ie:
first: document.close(); and only after this: reader.close();
链接地址: http://www.djcxy.com/p/46954.html上一篇: 合并Pdfs