Do you own a Debenu Quick PDF Library 12/11/10/9/8/7? Upgrade to Debenu Quick PDF Library 13!

Foxit Quick PDF Library

Frequently Asked Question:

Return to FAQ Index

Combine PDF files together?

Question

Can Quick PDF Library merge PDF files together programmatically?

Answer

Yes, Quick PDF Library can combine PDF files together. There are a few different merging functions available, such as MergeFileList, MergeFiles and MergeDocument.

An example of how to use the MergeFileList and MergeDocument functions is provided below in JScript.

Merge a list of PDF files

// Add a range of files to a list.

QP.AddToFileList("FilesToMerge", "sample123.pdf");
QP.AddToFileList("FilesToMerge", "apply_ fingerprint.pdf");
QP.AddToFileList("FilesToMerge", "debenu final tm.pdf");

// Merge the list of files together.

QP.MergeFileList("FilesToMerge", "merged_file_list.pdf");

Combine two PDF files together

// Load the first document from the samples folder.

QP.LoadFromFile("bookmarks.pdf");
PrimaryDoc = QP.SelectedDocument();

// Load the second document from the samples folder.

QP.LoadFromFile("JavaScript.pdf");
SecondaryDoc = QP.SelectedDocument();

// Select the first document

QP.SelectDocument(PrimaryDoc);

// Merge the second document with the
// previously selected document.

QP.MergeDocument(SecondaryDoc);

// Save the merged document to disk

QP.SaveToFile("merged_docs.pdf");

© 2015 Debenu & Foxit. All rights reserved. AboutBuyContactBlogNewsletterSupportFAQProduct UpdatesForum