Please enable JavaScript to view this site.

Navigation: Developer Information > Command Line Interface

Command Line PDF Append

Scroll Prev Top Next More

Append/Prepend Command Line Format

 

win2pdfd.exe append "file1" "file2" "mergedfile"

 

Where “file2” is appended to “file1” and the combined PDF is saved to a newly created “mergedfile”. If there is an existing file named the same as “mergedfile”, it will be overwritten. To prepend, swap file1 and file2 parameters.

 

Any file names that contain spaces must be enclosed with quotation marks.  The "file1" and "file2" parameters can be a local file paths, web addresses (URLs) to existing PDF files, or a combination of the two.

 

If you need to merge more than two PDFs, Win2PDF Pro supports batch merging using the BATCHCONVERT command line.

 

This feature requires a licensed version of Win2PDF. Contact us for a time limited evaluation license.

 

Returns 0 on success, and a Windows system error code on failure.