PDF to images XML

PDF to images XML

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.

    • Related Articles

    • PDF

      InterFormNG2 can work with PDF files in multiple ways - both as input and as output. PDF is one of the file types/payloads, that can be handled by the InterFormNG2 workflow. PDF as input A workflow can e.g. accept PDF files as the input file type. ...
    • PDF Metadata to XML

      The advanced, utilities workflow component, PDF Metadata to XML can help you to extract both metadata as well as key/values for form fields from a PDF file. The PDF must be loaded into the payload of the workflow before running this component. The ...
    • XML

      XML is used widely in InterFormNG2 as both input and output payload in the workflow (and of course in the designer). Please notice, that some workflow components are listed as accepting only XML as input, where they actually also accept an IBM i ...
    • PDF input and output

      If you want to create PDF output in InterFormNG2, then you need to setup a workflow in InterFormNG2 to do that. If you want to use the PDF inside of an email, then you should consider to check out the email output options first, as the normal create ...
    • PDF page to image

      The workflow component, PDF page to image (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. You can consider the workflow component, ...