PDF to Images

<< Click to Display Table of Contents >>

Navigation:  PDF >

PDF to Images

PDFtoJPG© is a tool developed by 4GL to convert PDF pages to images.

 

The main goal of this tool is the integration of PDF pages within vpxPrint reports but it can be used as a stand-alone tool.

 

Input files can be:

A PDF file,

A large variety of image files: png,jpg,gif,bmp,pcd,pcx,psd,tga,tif,emf,wmf,svg...

 

 

Output files:

JPG

PNG

BMP

 

 

PDFtoJPG is a Windows command-line program.

 

Syntax:

 

PDFtoJPG                 <input file>        <output file>

 

[-pages=pageNumber | startPage-endPage | All | Last ]

PDF only, page range, default is All

 

[-quality=nn]

JPEG files only, quality percent, default 80

 

[-zoom=nn]

percent resize, default 100

 

Result:

The file extension of the output file indicates the image type to create.

In case of PDF files, as the input may contain multiple pages, you have to insert a sequence "999" in the output file name.
Ex: C:\temp\MyFile_999.png. If "999" is not specified, a "_999" sequence will be automatically appended by PDFtoJPG to the output file name.

If only one page of PDF is specified (FIRST, LAST, pageNumber), the "999" is not mandatory and PDFtoJPG will delete this sequence from the file name.

 

Notes:

vpxPrint is interfaced with PDFtoJPG with the tag

The PDFtoJPG program exports images as 96dpi resolution only. This could result in a loss of quality.

If the files names contain spaces, embed the names between double quotes.

Consider using the Ghostscript plugin in case of bad results (option in the vpxPrint standard setup)