How to combine multiple images to single PDF or multiple PDF files with command line?

This article would like to show you how to combine multiple images to single PDF or multiple PDF files with command line, and our main converting tool is Image to PDF Converter Command Line.

Step1. Please download zip file of Image to PDF Converter Command Line, then extract its content to your computer so that you can use Image to PDF Converter Command Line by calling “img2pdf.exe” on computers of Windows systems.

Step2. Start command prompt window, which is operating environment of Image to PDF Converter Command Line

Click “Windows + R” > type “cmd.exe” and click “ok” in dialog box of “Run”

Step3. Refer to the followings to convert image to PDF in order to accomplish your goals with command line

Firstly, please understand the usage of Image to PDF Converter Command Line:

Img2PDF [options] <-o output> <images>

Img2PDF stands for path of “img2pdf.exe”, which is used to make Image to PDF Converter Command Line effective; [options] represents parameters that helps you edit properties of PDF, which is optional; <-o output> is an essential combination, where “-o” is essential parameter to help you produce PDF and “output” stands for targeting path for saving PDF; <images> represents source path of added images, which is typed for adding images for process.

After you type commands like above, one click on “enter” can help you produce PDF files.

1. Next, you need to know there are several situations when you combine multiple images to single PDF with command line:

  • If you convert images of multiple folders into one PDF file, please refer to example below:

D:\image2pdf_cmd3.2\img2pdf.exe -o F:\output.pdf F:\input1\dir F:\input2\dir<enter>

  • If you convert multiple images of same type into one PDF file, please refer to example below:

D:\image2pdf_cmd3.2\img2pdf.exe -o F:\output.pdf F:\*.tif<enter>

  • If you convert multiple images with part of same name to one PDF file, please refer to example below:

D:\image2pdf_cmd3.2\img2pdf.exe -o F:\sample.pdf F:\a*.jpg<enter>

  • If you convert multiple same format files and multiple directories into one PDF file, please refer to example below:

D:\image2pdf_cmd3.2\img2pdf.exe -o F:\output.pdf F:\input3file.tif F:\input4\dir F:\input5\dir<enter>

where: F:\input1\dir or F:\input2\dir stand for all images in directory of “F:\input1\” or “F:\input2\”; F:\*.tif stands for all TIF images in directory of “F:\”; F:\a*.jpg stands for all JPG images with same part of “a” in filename

2. If you want to convert multiple images into multiple PDF files, here are examples:

  • D:\image2pdf_cmd3.2\img2pdf.exe -o d:\*.pdf c:\a*.jpg<enter>

d:\*.pdf is targeting path that is typed for saving multiple PDF files with *

  • D:\image2pdf_cmd3.2\img2pdf.exe -o "c:\*.pdf" "c:\*.*"<enter>

"c:\*.*" is source path of all kinds of images with the help of “*”, which is used for adding those images for this process

Is it convenient and simple for you to convert image to PDF for your purpose with command line? Welcome to visit homepage of Image to PDF Converter, where there is another GUI version of Image to PDF Converter that can also help you with more processes. And if you have doubts on this process, welcome to drop your comments here, our technique will give you perfect support. 🙂

VN:F [1.9.20_1166]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.20_1166]
Rating: 0 (from 0 votes)

Related Posts

This entry was posted in Image to PDF Converter and tagged , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *


Verify Code   If you cannot see the CheckCode image,please refresh the page again!