Logo
arrow1 File Converters
arrow1 TIFF and PDF apps
arrow1 Forensic
arrow1 Freeware

Combine PDF file via command line

A convenient option for PDF Combine is the ability to work directly from the command line. We also offer a special server version called PDF Combine X.

Usage of the command line prompt is as follows:

PDFCombine.exe <source> <destination> <options>

If you choose to use an existing folder on your computer such as "My Documents", be sure to use quotations for any folders or file names with spaces.

Sample: PDFCombine.exe C:\Folder1\ C:\Folder2\ C:\Folder3\ C:\Dest.PDF -r
PDFCombine will take all the pdf files from Folder1, Folder2, Folder3 and merge them. The result will appear in Dest.pdf. -r means the recursive search (if there are more folders inside Folder1&2&3 PDF Combine will merge them as well).

How To Combine PDF Via Command Line

Options:

  • -log - 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
  • -logmode - Log file mode
    • overwrite - Overwrite (default)
    • append - Append
  • -xmllog - XML format log file name
  • -list - File with files mask to convert. Simple text file, each file on new line
  • -Recurse:off - Include subfolders
  • -do - Delete originals
  • -kfs - Keep folder structure
  • -kfl:off - Keep folder level
  • -fo - Force overwrite existed files
  • -limit - Limit converted files to count
  • -ds:off - Copy original date stamps to converted documents
  • -sort - Sort source file list
    • unsorted - Unsorted, natural order (default)
    • name - Sort by file name
    • date - Sort by file modification date
    • numbers - Sort by numbers in file name
  • -ext - Use custom extension for output files
  • -optionfile - text file with options to use, "opt=value", one line - one option definition
  • -c - Convert to
    • PDF - convert to PDF
  • -Head:off - Turn off header text
  • -HeadText - Header text. Where [page] - Page Number and [date] - current date
  • -HeadAlign - Header align
    • left - align left
    • right - align right
    • center - align center
  • -HeadFont - Header font name
  • -HeadSize - Header font size
  • -Foot:off - Turn off footer text
  • -FootText - Footer text. Where [page] - Page Number and [date] - current date
  • -FootAlign - Footer align
    • left - align left
    • right - align right
    • center - align center
  • -FootFont - Footer font name
  • -FootSize - Footer font size
  • -HeadImage - Draw picture on the header
  • -HeadImageAlign - Header image align
    • left - align left
    • right - align right
    • center - align center
  • -FooterImage - Draw picture on the footer
  • -FooterImageAlign - Footer image align
    • left - align left
    • right - align right
    • center - align center
  • -bookmark:off - 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
  • -bfile - 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
  • -bstyle - Set Bookmark style
    • none - No bookmarks
    • title - Create bookmarks from pdf document titles
    • file - Create bookmarks from document file names
    • list - Use bookmarks list
  • -bfolders:off - For bookmarks style 'file' create bookmaks by folders
  • -bpdf:off - For bookmarks style 'file' add bookmaks from source documents
  • -odd - use 'blank' for add blank page to odd pages documents or file name of existing pdf document
  • -pvl - PDF initial page layout
    • sp - Single page
    • oc - One column
    • tcol - Two columns, odd-numbered pages on left
    • tcor - Two columns, odd-numbered pages on right
    • tpol - Two pages, odd-numbered pages on left
    • tpor - Two pages, odd-numbered pages on right
  • -pvm - PDF initial page mode
    • normal - Normal view
    • outlines - Show the outlines pane
    • thumbnails - Show the thumbnails pane
    • fullscreen - Show the document in full screen mode
    • optional - Optional content group panel visible
    • attachments - Attachments panel visible
  • -mp - PDF master (owner) password
  • -up - PDF user password
  • -perm - PDF user permissions
    • Print - Print
    • Copy - Copy
    • Modify - Modify
    • Annotation - Annotation
    • FormFill - FormFill
    • Accessibility - Accessibility
    • DocAssembly - DocAssembly
    • HighResPrint - HighResPrint
  • -PFXFile - PFX File for sign document
  • -PFXPass - The password to open the PFX file
  • -SignName - The name of the signature field to sign
  • -SignLoc - The location that the signing was done
  • -SignCon - The contact information of the signer
  • -SignRes - The reason for signing document
  • -PDFAuthor - PDF document author
  • -PDFSubject - PDF document subject
  • -PDFTitle - PDF document title
  • -PDFProducer - PDF document Producer
  • -pdfa:off - PDF/A compatibility mode
  • -pdfver - PDF document format version 1.2 - 1.6
  • -pdfzoom - PDF document default page zoom
    • default - default
    • fitwindow - fit to window
    • fitwidth - fit width
    • 10 - 10%
    • 25 - 25%
    • 50 - 50%
    • 75 - 75%
    • 100 - 100%
    • 150 - 150%
    • 200 - 200%
    • 400 - 400%
  • -coverstyle - Cover page properties
    • None - None
    • First - First
    • Custom - Custom
  • -coverfile - Cover page file
  • -content:off - Insert table of content
  • -toclinestyle - PDF content line style
    • None - None
    • Dot - Dot
    • Solid - Solid
  • -toclinecolor - PDF content line color
  • -tocfont - PDF content font, [font name, font size, font color]
  • -tocmargins - PDF content page margins (inch), [left,top,right,bottom]


  • You can use macros in the Destination path:
    •  <DATE[:format]> - current date, default format is yyyymmdd
    •  <TIME[:format]> - current time, default format hhmmss

    For example: destination C:\<DATE>_<TIME:hhmm> will produce file C:\20170719_1245. Find more samples below.

    Examples:

    • PDFCombine.exe C:\Dest.pdf -list C:\List.txt -bstyle File
      All the files that are infrom List.txt will be placed to Dest.pdf and create bookmarks from document file names
    • PDFCombine.exe C:\Src???.pdf C:\Dest.pdf
      All the files C:\Src???.pdf (any symbol instead of ?) will be placed to Dest.pdf. WildCard support
    • PDFCombine.exe C:\Folder1\ C:\Dest.PDF -HeadText "[page] of [count]" -HeadAlign Center
      PDFCombine will take all the pdf files from Folder1 and merge them to Dest.pdf and add page number in the header of the page.

    Options

    User GUI

    Can create batch file

    Command line execution

    Can be used on the server

    Can be intergated into own application

    Console, ActiveX and DLL interface

    Progress dialog

    Developer licensing available

    ASP, .NET, PHP, Python, JavaScript, Perl samples

     

    PDF Combine

    Yes

    Yes

    Yes

    No

    No

    No

    Yes

    No

    No

    Buy now $65.90

    PDF Combine X

    No

    No

    Yes

    Yes

    Yes

    Yes

    No

    Yes

    Yes

    Buy now $149.90


    Testimonials


    "PDF Combine is a fantastic product. I've just combined 152 files across 76 folders, into 76 files in the order I wanted them, whilst maintaining the folder structure, and all in under a minute. This product is going to save me hours and hours of work. Many Thanks"

    Deborah Korn
    Analysis & Insight
    Strategy and Resources
    www.mynottingham.gov.uk


    "I use the app to simply generate pdfs in landscape on the fly. I have tried about 5-6 other products along with yours and found your software to be the best at generate pdfs efficiently, accurately, and most importantly fast."

    Antonio
    Empire City Laboratories
    www.empirecitylabs.com


    Contact Coolutils Team


    Email (old-fashioned but still preferred)
    To make sure we get your email, use our contact form.


    +1 (855) 418-2323 (USA/Canada Toll Free)
    When you leave a voicemail remember to tell us your email address. We need it to locate your order.


    Latest News

    Newsletter Subscribe

    No worries, we don't spam.


    © 2024. All rights reserved. CoolUtils File Converters

    Cards