Skip to main content

PDF

17 commands. Toolkit id ooa.pdf.

CommandWhat it does
Convert to imagesSave each page, or chosen pages, as an image (PNG, JPEG, BMP, GIF or TIFF) in colour, grey or black and white, for OCR or previews.
Decrypt PDFRemove password protection (needs the open or owner password).
Encrypt PDFProtect a PDF with an open password and an owner password, choosing the AES key length and what readers may do (print, copy, edit, annotate, fill forms, assemble).
Extract fields by areaRead the text of several named areas of a PDF at once, e.g. invoice number, date and total, into a Dictionary.
Extract imagesSave the pictures embedded in a PDF (photos, logos, scanned pages), from every page or chosen pages, as image files in a folder.
Extract tablesFind tables in a PDF that holds text (invoices, statements, reports) by how the text lines up in columns, and return each as a Data Table. Scanned PDFs need OCR first.
Extract textExtract the text of a PDF, of a page range or of chosen pages, as plain or layout-ordered text, optionally into a .txt file. Scanned PDFs (images) need OCR instead.
Extract text from areaRead the text inside a rectangle of one page, e.g. an invoice number box that is not a form field.
Fill form fieldsFill form fields by name and save a new PDF; optionally flatten so values can no longer be edited.
Get document propertiesReturn the title, author, subject, keywords, creator, producer, dates, page count, PDF version and encryption of a PDF.
Get page as pictureRender one page as a PNG picture, returned as data (data: URI) with the page size in points; used by OneAgentStudio to draw an area to read, and to show a page in forms or emails.
Get page countReturn the number of pages.
Merge PDFsCombine several PDFs (a list, or every PDF in a folder), or chosen pages of each, in order, into one file; protected sources can be opened with passwords.
Read form fieldsRead the names and values of all form fields, or only of the fields named.
Read text with OCRRead the text of a scanned PDF (pages that are pictures, with no text layer) with Tesseract OCR, from every page or chosen pages, optionally keeping only the text between two markers.
Read XPS textRead the text of an XPS or OpenXPS document (.xps, .oxps), page by page, in reading order.
Split PDFSplit a PDF into files of N pages each, into one file per page range, into one file holding chosen pages, at blank separator pages, or at its bookmarks.