Please enable JavaScript to view this site.

InterFormNG2 Manual

The workflow component, PDF to images XML (of the type, Create document) can be used for converting a single page of a PDF file into an image. A prerequisite is, that the PDF file is loaded into the payload.

 

The component takes a PDF and renders a defined number of pages as base64 inside an output XML, which is saved to the payload.

 

The output XML file has this structure:

 

<?xml version="1.0" encoding="UTF-8"?>

<pages>

  <page pageNumber="1">BASE64ENCODEDIMAGE</page>

  <page.........

</pages>

 

You can consider the workflow component,PDF page to image, if you want to convert a single PDF pages into an image.

 

The component has these parameters:

 

NG2PDF2ImagesXML0001

 

 

Pages

The pages, that are to be converted into images. This field is optional with the default (blank) value indicating, that all pages are to be converted into images.If only some pages are to be converted into images, the the page numbers must be listed here separated by a comma e.g. 1,4,5.

 

Image format

This selects the image format of the output image. The parameter is optional and the default value is PNG. These formats can be selected: PNG, JPG and TIF,

 

Image width

This sets the width of the output image. The parameter is optional and the default value is 1024 dots. The height of the image is adapted to ensure the same ratio between the height and width as in the input PDF file.