PDF Toolkit

<< Click to Display Table of Contents >>

Navigation:  Actions >

PDF Toolkit

General information

 

RoboTask provides four PDF actions:

•PDF extract text -  Read text from a PDF document and save it to a variable, a text file, or both.

•PDF extract images - Save images embedded in a PDF document as individual image files.

•PDF extract pages - Copy selected pages into one PDF file or save each selected page as a separate PDF file.

•PDF merge files - Combine pages from one or more PDF documents into a single PDF file.

 

The supplied PDF utilities require 64-bit Windows. Both the 32-bit and 64-bit editions of RoboTask can use these actions on 64-bit Windows.

 

Open-source utilities and copyright

These actions use the following open-source command-line utilities supplied with the PDF plugin:

•Poppler: pdftotext extracts text and pdfimages extracts embedded images. Poppler is based on Xpdf. Copyright belongs to Glyph & Cog, LLC and the respective Poppler authors and contributors. The utilities include notices for the GNU General Public License, version 2 or later. See the Poppler project, the GPL license text distributed with Poppler, and the copyright notices in the upstream pdftotext source and pdfimages source.

•qpdf: extracts pages and merges PDF documents. Copyright belongs to Jay Berkenbilt, Manfred Holger, and the respective contributors. qpdf is licensed under the Apache License, Version 2.0. See the qpdf license information and copyright and third-party notices.

Some originally unsigned utility modules are digitally signed with the RoboTask publisher's code-signing certificate for distribution. This signature does not change their upstream authorship, copyright, or open-source licenses. Supporting libraries and data files retain their respective licenses and copyright notices.

 

Common settings and behavior

Text fields support RoboTask variables. For example, use {SourcePDF} for an input file or C:\Output\{DocumentID}.pdf for an output file. Values are expanded when the action runs. The {V} button opens the variable selector. An output variable name can also include variables, such as Text_{DocumentID}.

Page numbers start at 1 and refer to the positions of pages in the PDF document. Printed page numbers and PDF page labels do not affect page selection. Settings that are disabled by another option are ignored during execution.

All four actions use the same page selection syntax. For example, '1,3-5,8' selects pages 1, 3, 4, 5, and 8; '5-2' selects pages in reverse order; and '2-z' selects page 2 through the last page. 'z' means the last page. The order of the selection and repeated pages are preserved. See the page range syntax table in PDF extract pages for more examples.

Use full paths when specifying files and folders. Missing output folders are created automatically. Existing files with matching output names are overwritten. An output file cannot replace a source PDF used by the action.

The editor checks that required fields are filled in. Expanded values, page ranges, input files, and other execution requirements are checked when the action runs. Errors are recorded as action errors and written to the task log. Warnings from qpdf are written to the log; a warning can accompany a successfully completed action.

For actions with Save file list to variable (optional), enter a variable name to receive the full paths of the files created by that execution, one path per line. Leave the field empty to skip saving the list. The image extraction action saves an empty list when no images match the selection.

 

 

note Related Topics

PDF extract text

PDF extract images

PDF extract pages

PDF merge files