View Single Post
  #3 (permalink)  
Old July 10th, 2007, 04:19 PM
winnovative winnovative is offline
Registered User
 
Join Date: Jun 2007
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

You can build your own PDF merge utility using the PDF Merge and split libraries for .NET from from http://www.dotnet-reporting.com or http://www.winnovative-software.com .
You can use it to merge PDF files, html files, text files and images,
set the page orientation, compression level and page size.

All this can be accomplished with only a few lines of code:

Code:
PdfDocumentOptions pdfDocumentOptions = new PdfDocumentOptions(); 
pdfDocumentOptions.PdfCompressionLevel = PDFCompressionLevel.Normal; 
pdfDocumentOptions.PdfPageSize = PdfPageSize.A4; pdfDocumentOptions.PdfPageOrientation = PDFPageOrientation.Portrait; 
PDFMerge pdfMerge = new PDFMerge(pdfDocumentOptions); 
pdfMerge.AppendPDFFile(pdfFilePath); 
pdfMerge.AppendImageFile(imageFilePath); 
pdfMerge.AppendTextFile(textFilePath); 
pdfMerge.AppendEmptyPage(); 
pdfMerge.AppendHTMLFile(htmlFilePath); 
pdfMerge.SaveMergedPDFToFile(outFile);
You can find the full code sample on the PDF Merge Code Sample page

Regards,
Florin