Running the PDF2IMG Software

PDF2IMG is a Datalogics application designed to convert a selected PDF or XPS document file into one or more image files, including BMP, EPS, GIF, JPG, PNG, RAW or TIFF.  You can also select PDF itself as an output format, and thus use PDF2IMG to export a PDF document to a series of other PDF documents, one PDF export file per page.

The product offers several options for controlling Resolution, Color Model, Color Bit Depth and other settings, depending on output format selected.

The PDF2IMG COM utility (Windows 32 only) performs the same tasks and works basically the same way as PDF2IMG, but it uses a C# or Visual Basic user interface.

For details on working with the PDF2IMGLIB  library APIs, see the Appendix.

The pdf2img.exe command line program is described below.

Command Line Syntax

The basic command line syntax for PDF2IMG is:
pdf2img [options] <inputFile> <outputForm>
Only the inputFile and outputForm arguments are required.

We provide many other optional arguments that you can use to create your own custom command line statements, to generate just the output you are looking for.

Updating the PDF2IMG Command Arguments

This guide describes the software as you received it from Datalogics.  But we also provide the source code for the command line interpreter so that you can tailor it and rebuild it as you like. The command line interpreter source code file is pdf2img.cpp. While the following pages describe command line argument names and default values in the product as shipped, you are free to change those commands and their default behavior as you like, and build a new executable under your configuration, or embed the PDF2IMG engine itself within your own application.

You can run the pdf2img.exe application as provided, or use the enclosed Microsoft Visual C++ Project file (pdf2img.vcproj) to do your own additional development and building work.

Note:You cannot alter the internals for PDF2IMG or the PDF2IMG COM interface. You can, however, update the command line parameters and controls of PDF2IMG. This is because the command line parsing wrapper pdf2img.cpp is provided in buildable form with the software. The pdf2img.cpp file shows how you can embed PDF2IMG within your own application, by replacing its default command line environment with your own application calls.

Command Line Summary

Arguments and Options