PDF page to image

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, PDF to images XML, if you want to convert multiple PDF pages into images.

 

The component has these parameters:

    

 

  • Page
    This parameter selects the page number of the PDF, that is to be converted into an image. The parameter is optional. The default value is 1 indicating, that the first page of the PDF file in the payload is converted into an image.

  • 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

    • Image element

      It is possible to insert images in InterFormNG2. The image can be either a fixed image found in the library or you can refer to the image via a URL. The related icon is this: Install and upload of images is covered in the Library section. Supported ...
    • 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 ...
    • 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 ...
    • Include an image from an attachment in an AS400 command

      There are several ways to use a dynamic image in a template, but if you use an AS400 command, then you can also include an image as an attachment in the command, IFORMNG2/NG2CMD. Here is an example of how that can be done: On the command you can ...
    • Fallback image

      You can include a dynamic image in InterFormNG2 by e.g. concatenating fixed strings with dynamic information from the input file e.g. like so: The Xpath expression above: concat('file:/D:/images/',./DocumentNo,'.jpg') It builds the path to the image ...