CoolUtils Logo
German  Italian  Dutch  Spanish  Russian

How to Combine via Command Line

content

You can combine PDF files using Command line. It is a great opportunity to merge PDF files from within other programs.

To do this enter the following code: PDFCombine.exe <source> <destination> <options> ,

where

  • <source> is the path where the source PDF files are located,
  • <destination> is the path where combined PDF file should be saved,
  • <options> is the name of the option you want to use while combining the file.

For example: PDFCombine.exe C:\Documents\example1.pdf C:\Documents\example2.pdf - c do

The program will combine example1.pdf and example2.pdf, save the final combined PDF file in the folder C:\Documents\ and delete originals.

Note: If you have a path with spaces use quotation marks ("may report").

Options:

  • -log - <Log file name> Don`t show errors. Write them to the log file
  • -verbosity - Log file verbosity
    • error - Write to log file only errors (default)
    • detail - Write detailed log file
  • -list - File with files mask to convert
  • -Recurse - Include subfolders
  • -do - Delete originals
  • -kfs - Keep Folder Structure
  • -Content - Creates Table of Bookmarks. When several files are combined each filename becomes a bookmark. Table of bookmarks will show you the content of the combined file.
  • -Bookmark - Bookmarks as filenames. If you do NOT want the bookmarks be the filenames place the desired names of bookmarks into separate file and set that file as Bookmark.
  • -combine - How to combine documents
    • onefile - All documents into one file
    • folder - Separate files by folders
    • name - Separate files by common name part
  • -npr - Range you want to analyze for grouping files by name
  • -BookmarkType - Set Bookmark style
    • None -
    • Title -
    • File -
    • List -
  • -HeadText - Header text. Where [page] - Page Number and [date] - current date
  • -FootText - Footer text. Where [page] - Page Number and [date] - current date
  • -HeadAlign - Header Align
    • Left - Align Left
    • Center - Align Center
    • Right - Align Right
  • -FootAlign - Footer Align
    • Left - Align Left
    • Center - Align Center
    • Right - Align Right

There are some additional rules in using Command line:

  1. To combine all PDF files from an appropriate folder use * sign.

    For example: PDFCombine.exe C:\Documents\*.pdf C:\Documents\

    The proram will combine all PDF files from the folder C:\Documents\ and save the final combined file into the folder C:\Documents\

  2. You may combine PDF files from different folders. Place the file paths to all the files that you need to combine in one file called List.txt.

    For example: PDFCombine.exe -list List.txt C:\Documents\

    The program will combine all PDF files from the file list List.txt and save the final PDF file in the folder C:\Documents\

  3. You may combine PDF files and create bookmarks.

    For example: PDFCombine -list c:\list.txt -Bookmark c:\Bookmarkfile.txt

    c:\list.txt is a text file with the file names of PDF files that you want to combine (one file name per line).
    c:\Bookmarkfile.txt is a text file with bookmarks (one bookmark per line). The number of bookmarke should correspond with the number of combined files.

    More useful topics:

Site Map  |  Contacts |  Press Center | Resellers | About |  Privacy Policy |    Copyright © 1998-2018 CoolUtils Development. All rights reserved.   GPlus