What is the most efficient way to merge PDF pages?
Customers using .NET version of PDFNet and working with large documents can dramatically increase the performance by saving a file to a temporary file instead to a memory buffer. The real performance bottleneck is related to .NET data-marshaling and not PDF merging. Merging performance can also be increased by merging original documents instead of copying all pages to a new document. Instead of copying all pages to a new document you can simply append or delete pages in the source document. Note that PDFDoc.Save(…) is not altering the original document unless the filename matches the original filename. Another optimization tip is to use PDFDoc.ImportPages() to efficiently copy a page set from one document to another. See Copying/Merging Pages for details.
Related Questions
- Is it possible to merge two pages stored in two separate PDF files, i.e. a data file and a background file into one file with the text overlayed on the image?
- When I merge single page PDF files together the pages display in Adobe Acrobat as 1 (1 of x), 1 (2 of x), 1 (3 of x)... Why?
- Can I use FDFMerge to merge the pages of a regular Word Document into a PDF form?