Home Search

DriveWorks Pro 22
PDF: PDF to Image(s)

Send Feedback

PDF: PDF to Image(s)

This Specification Flow Task will export selected pages, from the given PDF document, as image files.

Properties

Property NameDescription
TitleChanges the Title (not the name) of the task.
PDF FileThe path to the PDF file to export from.
Page RangeUse '*' or leave empty to select all pages. Also accepts pipebar delimited list of page numbers, e.g. '1|2|3', or a range using a hyphen, e.g. '1-3'.
Export DirectoryThe path where the images will be saved. Leave empty for the images to be saved to the Specification directory.
File Name SchemaDefine the file name schema for the outputted files. Provide a string and use arguments. '{0}' for the page number and '{1}' for the total page count. Leaving blank will use the original file name followed by page number.

Image files supported are .png, .jpeg, .jpg and .bmp.

OverwriteTRUE to overwrite the image files if they already exist, FALSE to leave alone.

Example

When this Task is added the properties are static. To be able to build rules on a static property see How To: Change A Static Property To A Dynamic Property.

Property NameExample RuleMeaning
PDF File"D:\DriveWorks\ProductGuide.pdf"Will export images from the ProductGuide.pdf document.
Page Range"1-3|8"Will export the pages 1,2,3 and 8.
Export DirectoryWill export the images to the Specification folder.
File Name Schema"MyImage{0}of{1}.jpg"Will export the given page range as:

MyImage1of4.jpg

MyImage2of4.jpg

MyImage3of4.jpg

MyImage4of4.jpg

OverwriteTRUEWill overwrite existing images.

Using the Task in a Specification Macro

This task has different types of Outputs. For more information about Outputs see Specification Macros Task Node.

Outputs are only available within Specification Macros. Currently Outputs are not available for Specification Flow.

Status Outputs

This task supports Status Outputs. These can be used to perform different actions depending on what the status outcome of the task is. For more information see Status Outputs in the Task Node Outputs section of Specification Macros Task Node.

The status output navigation is as follows:

Success

  • The export was successful.

Success with Warnings

  • N/A

Failed

  • There was an error.
  • The PDF file could not be found or accessed.
  • The file given does not have a valid .pdf extension.
  • The Task failed to create the directory where the image files would be saved.
  • The image extension is not valid or supported.
  • The page range is invalid or refers to pages which do not exist.