Skip to main content

Converter And Crop

Description

This step is used to convert and crop pdf, image files.

Reference Links
PDF debugger Tool Jar link: : https://www.apache.org/dyn/closer.lua/pdfbox/3.0.2/debugger-app-3.0.2.jar
This Jar used to find PDF coordinates.

Example:

In following example, input image file are converted into the pdf file.

ConverterCrop

In following example, input image file get crop using coordinates details and save it in pdf format.

ConverterCrop

Configurations

No.Field NameDescription
1Step NameName of the step. This name must be unique in a single workflow.
The field is mandatory.
Input Fields
1Input FileInput file path
The field is mandatory.
2Output DirectoryOutput folder path where output files are saved.
The field is mandatory.
3Output formatOutput file format. Example – png, jpg, jpeg, and pdf.
The field is mandatory.
Default value- png
4PageNoProvide page number to be crop or convert from multipage file.
The field is mandatory.
Default value- 1
5DPISet DPI for png file. For example: 156,200.
The field is mandatory.
Default value: 72
6IsCropChoose operation to be perform default un-check. If uncheck perform convert operation, if check perform crop operation.
The field is mandatory.
7IsPolygonChoose this checkbox if want to use polygon point to perform crop.
Default: uncheck
8Polygon CoordinatesThis field accept polygon coordinates received from Get Value plugin in json format i.e
{"page_number":1,<br/>"coordinates":"492,62,642,62,492,73,642,73",
"value":"166505891515","key":"7507234499",
"page_height":842,"page_width":594}

The field is mandatory.
9X-Cordinates(px)X – coordinates of crop. Pixel position of crop.
The field is mandatory.
10Y-Cordinates(px)Y- coordinates of crop. Pixel position of crop.
The field is mandatory.
11Height(px)Height of crop in pixels.
The field is mandatory.
12Width(px)Width of crop in pixels.
The field is mandatory.
Output Fields
1Output FieldOutput file path.
Default value: outputFilePath