tags:

views:

55

answers:

3

Does anyone know of a good way to load PDF files from an external resource and contatenate them together to produce a single PDF document.

Is there some component you can receomend?

+1  A: 

This doesn't use C#, but the way I typically do this is to use ghostscript:

gs -q -sPAPERSIZE=letter -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=out.pdf in1.pdf in2.pdf in3.pdf ...

Basically, this prints out several pdfs in sequence, but redirects the output to a output pdf, effectively concatenating them.

Check out this explanation: http://ansuz.sooke.bc.ca/software/pdf-append.php

orangeoctopus
Unfortunately I need to do this in C#.
Jonnio
+1  A: 

Disclaimer: I work at Atalasoft. Our DotImage Document Imaging SDK can do this. Here's a whitepaper with all of the code you need.

It's simply:

PdfDocument.Combine("FinalReport.pdf", "CoverSheet.pdf";,
                                   "Disclaimer.pdf", "Report.pdf");
Lou Franco