Home > Products Windows > PDF Split-Merge


PDF Split-Merge FAQ


1. What's the difference between "split" and "burst"?
2. Can I specify destination naming patterns for the resulting splitted pages? if yes, what is the syntax?
3. Can I specify wildcards for the input files when merging?
4. What means "mergeform"? What's the difference to "merge"?
5. "pdfpg.exe getpagecount C:\A.pdf" - What does this mean?
6. How to call pdfpg.exe from my .NET application?
7. What is the difference between PDF Split-Merge Licenses?

8. What is the format for text file to set the file names and bookmarks? ie., how to use "addbookmark 4" parameter to read bookmarks and filenames from txt file?
9. How do I delete individual pages from a PDF file?
10. How do I rearrange the sequence of pages in a PDF file?
11. How to call pdfpg.exe from C# code?


1. What's the difference between "split" and "burst"?

"split" will extract a page range from a PDF file and save to a new PDF file.
"burst" will create a new PDF file for each page from your PDF file, for example, if your PDF file has 10 pages, "burst" will create 10 single page PDF files.

2. Can I specify destination naming patterns for the resulting splitted pages? if yes, what is the syntax?

Yes, you can, please refer to following command lines,

*extract page 1 and page 3 from A.pdf and merge to out.pdf
pdfpg.exe C:\A.pdf,1,3 C:\out.pdf

*split A.pdf to outXXX.pdf files
pdfpg.exe split 2 C:\A.pdf C:\out

*burst A.pdf to outXXX.pdf files
pdfpg.exe burst C:\A.pdf C:\out

3. Can I specify wildcards for the input files when merging?

No, pdfpg.exe doesn't support wildcards yet, but you can create a TXT file which contain filenames for merging,
you can use a TXT file to merge any number of PDF files into one PDF file, for example,

1. Please run following command line to get all filenames for all of your PDF files,
C:\>dir C:\pdf\*.pdf /s/b > C:\files.txt

2. Please run following command line merge these PDF files into a PDF file,
C:\>pdfpg.exe C:\files.txt C:\out.pdf

The command line application works better than GUI version if you wish merge 1000+ PDF files into one PDF file.

4. What means "mergeform"? What's the difference to "merge"?

"mergeform" function will merge two PDF files which contain forms into one PDF file, this function will rename the form's name automatically if these PDF files have duplicated form names, the forms will still active in the merged PDF file.
"merge" function will merge two PDF files together and without process the duplicated form names.

5. "pdfpg.exe getpagecount C:\A.pdf" - What does this mean? Is there a resulting parameter returned to the command line which specifies the number of pages?

Yes, this command line will print out the page count of your PDF file.

6. How to call pdfpg.exe from my .NET application?

Please refer to following example code,

    Dim commandline as String
    commandline = "pdfpg.exe burst C:\input.pdf C:\out"
    Shell(commandline, AppWinStyle.NormalFocus, True)

7. What is the difference between PDF Split-Merge Licenses?

Desktop License (End User License): It can be ran from one user account on your computer.
Server License: It can be ran on one server with any number of users, it is licensed by per server, you will need to purchase a server license for each machine you wish to run Server License on.
Developer License: It can be ran on any number of servers (or computers) with any number of users, it is licensed by per developer. Developer License is royalty free for runtime desktop redistribution.

8. What is the format for text file to set the file names and bookmarks? ie., how to use "addbookmark 4" parameter to read bookmarks and filenames from txt file?

PDF Split-Merge does support read bookmarks and PDF files from a text file, you may write following text lines into the "C:\bookmark.txt" file,
~~~~~~~~~~~~~~~~
Bookmark->File1
C:\temp\001.PDF
Bookmark->File2
C:\temp\002.pdf
~~~~~~~~~~~~~~~~
"Bookmark->" is a keyword in text file, a real bookmark text will be appended to "Bookmark->" keyword,

In this example,
Bookmark "File1" will point to "C:\temp\001.PDF" file,
Bookmark "File2" will point to "C:\temp\002.PDF" file,

Please following command line to merge PDF files and bookmmarks into a PDF file,

"C:\Program Files\PDF Split-Merge v3.0\pdfpg.exe" addbookmark 4 C:\bookmark.txt C:\out.pdf

If you have purchased PDF Editor Toolkit Pro product, you can use following code to merge PDF files and bookmarks into a PDF file,

VerySplitMergePDF("addbookmark 4 C:\\bookmark.txt C:\\out.pdf");

9. How do I delete individual pages from a PDF file?

This can be done easily, for example if you wish delete page #5 from a PDF file, you can simple run following command line,

"C:\Program Files\PDF Split-Merge v3.0\pdfpg.exe" "C:\in.pdf,1-4,6-" C:\out.pdf

10. How do I rearrange the sequence of pages in a PDF file?

You can "burst" your PDF file to single page PDF files first with following command line,

"C:\Program Files\PDF Split-Merge v3.0\pdfpg.exe" burst C:\in.pdf C:\out\pg

Please general a .txt file for all of these single page PDF files,

dir C:\out\pg*.pdf /s/b > C:\files.txt

Please adjust the sequence of filenames in C:\files.txt file, and then run following command line to merge these PDF files together,

"C:\Program Files\PDF Split-Merge v3.0\pdfpg.exe" C:\files.txt C:\out.pdf

11. How to call pdfpg.exe from C# code?

Please use following sample C# code to call pdfpg.exe application, pdfpg.exe is exist in the "C:\Program Files\PDF Split-Merge v3.0" folder,
~~~~~~~~~~~~~~~~
Process p = new Process();
p.StartInfo.WorkingDirectory = @"C:\Program Files\PDF Split-Merge v3.0";
p.StartInfo.FileName = @"C:\Program Files\PDF Split-Merge v3.0\pdfpg.exe";
p.StartInfo.Arguments = @"burst C:\input.pdf C:\out"
//p.StartInfo.Arguments = @"C:\001.pdf C:\002.pdf C:\merge.pdf"
p.StartInfo.CreateNoWindow = true;
p.Start();
p.WaitForExit();
~~~~~~~~~~~~~~~~