The PDF package reads and manipulates PDF files: extract text (and words with their coordinates), search content, read metadata, render pages to images, and merge, split, extract pages, rotate or watermark. It is widely used in document processes: reading PDF invoices, splitting a batch of documents, consolidating reports.
No session: each activity receives the path (path) of the file and works on it. There is no need to “open” or “close” the PDF.
The original is not modified: the manipulation activities (merge, rotate, watermark…) create a new file at the output path (or in the outputDir folder) you give, and return that path. The input PDF stays intact. If the output folder doesn’t exist, it is created; if the output file already exists, it is overwritten.
Runs on the robot’s machine: it uses no AI and no Zoan Cloud services.
Several activities let you specify pages with a range as text: you combine single numbers and hyphenated ranges, separated by commas. Pages are numbered from 1.
"1-3,5,7-9" → pages 1, 2, 3, 5, 7, 8 and 9
"all" → every page
Rule
Detail
Ranges
start-end, both included. Spaces are allowed ("1 - 3, 5").
Order
Pages are always processed in ascending order and without repeats: "5,1-2,2" = 1, 2, 5.
Invalid parts
Ignored without error ("1,abc,3" = 1, 3; a reversed range like "5-3" adds no pages).
Every activity that takes pages also accepts a list of numbers, such as the one returned by PDF Search Text: pages = foundPages or pages = new[] { 1, 3, 5 }. An item that isn’t a whole page number is an error ('pages' must contain whole page numbers; '…' is not one.). Since 1.2.4.
No activity in the package takes a password. A PDF with an open password can’t be read or transformed: the activity fails with the PDF library’s error. The same happens with a damaged file or one that isn’t a PDF. Ask for the document without a password at the source and, if the batch may contain such files, wrap the activity in a Try Catch to set them aside without stopping the process.
The path doesn’t exist. Check it first with File Exists if the file may be missing.
'path' is required. (or 'output', 'outputDir', 'text'…)
A required parameter was left empty or its expression returned null.
Page(s) out of range: …. The document has … pages.
The range asks for pages the document doesn’t have. Get the total first with PDF Get Page Count.
'dpi' must be between 36 and 1200. Received: ….
Resolution outside the supported range.
'…' must be a number. Received: …. / '…' must be true or false. Received: ….
A numeric parameter (opacity, fontSize, margin, angle) or a yes/no one (caseSensitive) got a value that doesn’t work, typed or computed by an expression. Since 1.2.4.