How convert image to PDF and merge PDF via command line

With the help of the application Image to PDF Converter, you can convert multiple images to PDF and merge PDF via command line. If you want to know how to make this kind of conversion, please continue to read the contents in this article.

Image to PDF Converter is a powerful command line application that can convert different kinds of images (JPG, PNG, BMP, GIF, TIFF, PSD, WMF, EMF, PCX, PIC, etc.) to PDF. What’s more, it supports to merge several PDF files into one PDF file and merge PDF files from a TXT file.

If you need to use this application to convert images to PDF and merge the created PDF file with other files, please go on reading the following contents.

1.Download & unzip

At first, please free download Image to PDF Converter. There are no setup steps or installation of any third-party applications. You just need to extract the ZIP file to a disk on your computer. In the unzipped file folder, there is an executable file named as img2pdf.exe which is the called program of this application.

2. Input commands to convert images to PDF

This application is MS-DOS oriented, so you need to open MS-DOS interface to input your commands at first. If you want to know how to use this application, you can browse the TXT file readme.txt in the unzipped file folder or input the file path of img2pdf.exe in opened MS-DOS interface and hit Enter button on the keyboard to see all the options and usage of the application.

By referring to the following command line template, you will be able to write your own commands.

img2pdf [options] <Image-file> [<PDF-file>]

For example,

img2pdf.exe C:\in.jpg C:\out.pdf

This example is to convert a JPG image to a PDF document.

3. Input commands to merge PDFs

In order to merge PDFs, please use the following options:

-mergepdf <string> : merge two PDF files into one PDF file

  • -mergepdf “file1|file2|file3|…” : merge several PDF files into one
  • -mergepdf “C:\filelist.txt” : merge PDF files from a .txt file
  • -mergepdf “C:\*.pdf” : merge PDF files into one PDF file

For instance,

img2pdf.exe -mergepdf “C:\1.pdf|C:\2.pdf|C:\3.pdf” C:\out.pdf

img2pdf.exe -mergepdf “C:\filelist.txt” C:\out.pdf

The first example is to merge the three PDF files into one PDF file. The second example is to merge PDF files from a TXT file.

When you finish inputting the commands, please hit Enter button to run the conversion at once.

If you are interested in this command line application, please buy Image to PDF Converter here.

Related Posts:

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

Comments are closed.