There are several methods to combine PDF files by using Foxit PDF SDK:
- Import pages from other PDF file to the target PDF file. (since v6.x)
- Extract pages from PDF file and then insert extracted pages to target PDF file. (since v7.1)
- Use class Combination. (since v7.4)
1. Import pages from other PDF file to the target PDF file.
Applicable version | v6.x or later. |
---|---|
Related APIs |
foxit::pdf::PDFDoc::StartImportPages or foxit::pdf::PDFDoc::StartImportPagesFromFilePath |
Import page flags | ![]() |
Sample demo | Please refer to simple demo "page_organization" in Foxit PDF SDK package. |
Note |
|
2. Extract pages from PDF file and then insert extracted pages to target PDF file.
Applicable version | v7.1 or later. |
---|---|
Related APIs |
foxit::pdf::PDFDoc::StartExtractPages and foxit::pdf::PDFDoc::InsertDocument |
Extract page flags | ![]() |
Insert document options | ![]() |
Sample demo | Please refer to simple demo "page_organization" in Foxit PDF SDK package. |
Note |
|
3. Use class Combination.
Applicable version | v7.4 or later. |
---|---|
Related APIs |
class foxit::pdf::Combintaion |
Combine documents options | ![]() |
Sample demo |
Not provided in Foxit PDF SDK package yet. APIs of class Combination are easy to understand, so please refer to API reference for APIs of class Combination. |
Note |
It's possible to combine several PDF files in one time. |