Skip to content

PDF Activities

Version: 1.2.0  ·  ID: zoan-packages-pdf  ·  Author: Zoan Software

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 documentary processes: reading invoices in PDF, separating 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.
  • They do not modify the original: manipulation activities (merge, rotate, watermark…) create a new file at the path output that you indicate, and return that path. The input PDF remains intact.

Several activities accept specifying pages with a range in text: you combine single numbers and hyphenated ranges, separated by commas. Pages are numbered from 1.

"1-3,5,7-9" → páginas 1, 2, 3, 5, 7, 8 y 9
"all" → todas (en Rotate)
ActivityTypeOutputWhat it does
PDF Get Textpdf-get-textstringExtract all text from PDF
PDF Get Text (Page)pdf-get-text-pagestringExtract text from a page
PDF Get Wordspdf-get-wordsListEvery word with its page and coordinates
PDF Get Page Countpdf-get-page-countintNumber of pages
PDF Get Metadatapdf-get-metadataDictionaryMetadata (title, author, dates…)
ActivityTypeOutputWhat it does
PDF Contains Textpdf-contains-textbooleanDoes it contain text?
PDF Search Textpdf-search-textListOn which pages does the text appear?
ActivityTypeOutputWhat it does
PDF Mergepdf-mergestringCombina varios PDF en uno
PDF Splitpdf-splitListSeparate each page into a file
PDF Extract Pagespdf-extract-pagesstringExtract specific pages to a new PDF
PDF Rotatepdf-rotatestringRotates pages (90/180/270°)
ActivityTypeOutputWhat it does
PDF To Imagespdf-to-imagesListRenders the pages to PNG files
ActivityTypeOutputWhat it does
PDF Createpdf-createstringCreate a new PDF from text
PDF Add Watermarkpdf-add-watermarkstringAdd a watermark to each page

Read a PDF invoice and extract its number with a regular expression:

PDF Get Text path = = rutaFactura → output: texto
Set Variable name = numero value = = regexFind(texto, "FAC-\d+")
Log message = = "Factura: " + numero