Convert Documents and Images to PDF from Windows Command Prompt
2PDF can convert PDF and almost any image file or document to the Portable Document Format (PDF) format. Intended mostly for developers and system administrators, this tool has a wide range of customizable conversion options. It is a powerful command line utility that can be used on a PC, server or built-in to any application. 2PDF is an advanced PDF converter that can fully automate your daily tasks.
Create PDF from
PDF is a popular format designed to present data. With 2PDF, you can create PDFs from Word, images and other files, as well as create multiple PDF files at once.
Split & Merge Documents, Extract PDF Pages
2PDF offers various parameters which can help you manage your multipage documents in order to combine files, merge different filetypes, or split multiple files into separate pages.
Add Watermark to PDF
(Text or Image)
Placing a watermark on your documents or images allows you to protect your projects from unauthorized use or add some extra information to output PDF files.
Autorotate & Rotate Pages in PDF
2PDF lets you set page rotation to a certain degree, automatic rotation (page orientation). You can also set background color and rotation direction: clockwise or counterclockwise.
Create Searchable PDF using OCR
2PDF can make output PDF files searchable so that you can find and edit text. You can get text from scans, images and other non-searchable files. Available languages include English and other European languages.
Run File Conversion on Schedule or via Script
No need to execute commands manually! Just set a time- or event-based trigger via Windows Task Scheduler. Or, use a simple BAT, CMD or VBS script.
Save DOCX, XLSX, JPEG, TIFF, PNG, HTML, and Many More as PDF or PDF/A
2PDF converts various formats to PDF via command line: PDF documents including PDF/A, PDF Portfolio, Microsoft Word DOC, DOCX, Microsoft XPS files, Excel XLS, XLSX and XLSM documents, PowerPoint PPT, PPTX presentations, TXT and RTF text files, HTML pages, PostScript PS, EPS files, Visio and Publisher files; Photoshop PSD, TIFF and CorelDraw images, camera RAW photos, and more.
Easy to Integrate
IT system integrators, power users and software developers can integrate 2PDF into the corporate environment or call it from their own software applications.
You can set various options like automatic PDF rotation, file size reduction (compression), page range, output filename template, processing file attachments, watermarking, and more.
Fast and Reliable
Thanks to reliable processing core, 2PDF is able to convert thousands of images and documents per session. It can also process very large high-resolution files.
Licensing & Availability
Download the free version of 2PDF to evaluate the software and use it for non-commercial needs. The free version allows you to try all the available features of the program. The only thing that makes it different from the commercial version is a special watermark “Created by free version of 2PDF” added to every output file.
Buy Commercial License
Please order a commercial license if you use the program for business. If you purchase 5 or more licenses, you can get a discount. Different licensing options are available for your needs and requirements:
Available as a one-time purchase for single activation and usage under one Windows user account.
Available for an unlimited number of employees in an office. Allows activation and usage of 2PDF in all departments of a company.
Available for software developers so they can use 2PDF with their own software installation kit and distribute it without any limitations.
How to Use
Run a command from Command Prompt or PowerShell
Create a VB script or BAT file to run the conversion on schedule or event
Integrate 2PDF into your own code or existing software
Examples & Syntax
To get started, open Windows Command Prompt or a similar editor that you use, type 2PDF.exe and press Enter. You will see the help window with all available options. This is a basic command which can be modified with other parameters such as page size, resolution, rotation, quality, and more:
2PDF.exe -src “C:\In\*.*” -dst “C:\Out”
This command will convert all files in the source (input) folder with default settings. C:\In is the source folder, and C:\Out is the output folder. Two asterisks separated by a dot (*.*) means any supported type of file with any file name will be processed. Below are some examples of other tasks you can perform with 2PDF:
Merge all files from a folder to a single multipage PDF file
2PDF.exe -src “C:\In\*.*” -dst “C:\Out” -pdf multipage:append combine:”my multipage.pdf”
Convert all files in a folder to a searchable PDF using OCR
2PDF.exe -src “C:\In\*.*” -dst “C:\Out” -pdf ocr:yes ocr_lang:En
Batch convert all files listed in a plain text file
2PDF.exe -src “C:\tests\list.txt” -dst “C:\Out”
Quickly merge 10000 PDF files and save to a single multipage file
2PDF.exe -src “C:\In\*.pdf” -dst “C:\Out” -pdf multipage:append combine:”my multipage.pdf” -options fast_combine:10000
Please contact our customer support service if you have any question, issue or suggestion. We are always ready to help you make the most out of 2PDF so that you can solve your tasks most effectively. We will assist you with the deployment of 2PDF in your company environment and help you integrate it to your software product. Please also contact us to get a volume, nonprofit or distributor’s discount.
fCoder develops IT solutions for facilitating work with different documents and images for more than 20 years. We offer desktop, server-side and command line software for companies who have high and medium document workflows. Our customers are private companies, governmental, public and non-profit organizations – benefit from our solutions designed to simplify document management. Our main areas of development are print automation and conversion of data into various file formats.
Sign Up for News & Updates
We would like to send you emails once in a while with updates, new release announcements, tricks & tips, and more! Unsubscribe at any time.