How to combine many PDFs?

How to combine many PDFs?

Forum member · Feb 25, 2009
I've already looked at the sample merge java class. I need to be able to loop and add PDFs. There may be one or many PDFs to add. Sudo code would be something like this: Document doc = new Document(); while(rs.next()) { path = this.rootDir + rs.getString("path"); doc.append(new PdfDocument(path)); }

Re: How to combine many PDFs?

Support · Feb 25, 2009
Hello, You can merge several PDF documents to make a single PDF document without any problem. You will have to use the MergeDocument object in order merge the PDF documents. You can not use the Document object. Bellow is a sample explanation for this. MergeDocument document = new MergeDocument(); in a loop document.append( filePath );//You can also use the PdfDocument object here. end loop. Thanks, ceTe Software Support Team.

Re: How to combine many PDFs?

Forum member · Feb 25, 2009
Thanks for the quick reply. My code appears to be correct now using MergeDocument. However, I am getting the following exception for each file I try to append: com.cete.dynamicpdf.merger.MergerException: Invalid XRef Stream Filter Specified The PDFs that I'm trying to combine were created with LiveCycle and were dynamically constructed by passing XML to them to populate fields, and then each was saved to disk.

Re: How to combine many PDFs?

Support · Feb 25, 2009
Hello, The error message indicates that one of the PDF document that you are trying to merge is corrupt and invalid. However, if you want, you can send the PDF document that is throwing the error to our [^a|mailto:support@cete.com|opennewwindow|Support Team^] and they can take a look at the PDF. Thanks, ceTe Software Support Team

Re: How to combine many PDFs?

Forum member · Feb 25, 2009
I emailed a sample PDF document to you...

Re: How to combine many PDFs?

Forum member · Feb 25, 2009
Any ideas?

Re: How to combine many PDFs?

Support · Feb 25, 2009
Hello, We were able to fix the issue with merging the PDF document but since the PDF is created in Adobe LiveCycle, after merging the PDF, we cannot view the PDF. The original PDF has some special permissions added using LiveCycle which are getting removed when merging the PDF document. The PDF has the below text inside when opening it in Acrobat Reader and thats becasue the PDF is likely using some customer Adobe LiveCycle functionality: "To view the full contents of this document, you need a later version of the PDF viewer. You can upgrade to the latest version of Adobe Reader from www.adobe.com/products/acrobat/readstep2.html For further support, go to www.adobe.com/support/products/acrreader.html". Thanks, ceTe Software Support Team

Re: How to combine many PDFs?

Forum member · Jul 1, 2010
I am getting the same exception "Invalid XRef Stream Filter Specified." when I tried to use MergeDocument on a pdf in my .net project. Please help!

Re: How to combine many PDFs?

Support · Jul 1, 2010
Hello, Can you please send over the PDF document and the code you are using to our [^a|mailto:support@cete.com|Support Team^] so that they can look into it further. Thanks, ceTe Software Support Team.

Re: How to combine many PDFs?

Forum member · Jul 1, 2010
I send document to support email.

Re: How to combine many PDFs?

Forum member · Aug 2, 2024
Unleash your skills to get the best on the internet for combining multiple PDF files, this is the most powerful and trusted software available, Try using the Pcinfotools PDF Split and Merge software, it can quickly merge multiple PDF files into a single PDF document without losing any information, but there are a few important steps you must follow 1 Open the PDF split and merge software after installation 2 Add multiple PDF files by selecting the combine PDF option 3 Choose where you want the generated PDF file to be saved 4 To start combining multiple PDF files into a single PDF file, tap the Merge PDF Files button All original file attachments will stay in a single PDF file when this software combines and divides PDF files while preserving attachments and other formatting, Users can be sure that this utility will keep them from losing the details of their PDF files, and it operates with all Microsoft Windows OS versions, Users have to use software for merging PDFs that is completely safe,