Welcome Guest Search | Active Topics | Sign In | Register

Merging multiple PDF files Options
GaryBrowning
Posted: Wednesday, January 11, 2012 11:39:17 AM
Rank: Member
Groups: Member

Joined: 6/1/2011
Posts: 18
I'm looking at using the EO.pdf product.

I have a server directory that contains about 80 pdf files. What I need to do is combine/merge these pdf files into one master pdf file.

Looking at the demo code, it shows declaring a variable for each file to merge and the method allows only 2 files are allowed to merge together. How could I merge these together without having to specify a variable for each pdf file?
eo_support
Posted: Wednesday, January 11, 2012 11:50:50 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

You can merge as many as you want. See here:

http://www.essentialobjects.com/doc/4/eo.pdf.pdfdocument.merge_overloads.aspx

While the second and the third Merge function only merges two files, the first one takes an array, so you can pass as many PdfDocument object in as needed. Even with the second and the third, you can call them in a loop to keep merge 2 into 1 and eventually merging all into one.

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.