Extract Text from PDF
AI-generatedSummary
Extract text content from one or more PDF files supplied as binary data, including support for password-protected PDFs.
Inputs
- Input Binary Field (required) — The name of the binary property containing the PDF file. This binary data must represent a PDF file.
- Password Protected? — Indicates whether the PDF file is encrypted or password protected. Defaults to false.
- Password — The password used to unlock the PDF document if it is password protected. Required only if 'Password Protected?' is true.
Output shape
a list of items, each containing JSON with extracted text from the PDF and the total number of pages, plus the original item's binary data
Each output item corresponds to an input item with the specified binary PDF data. If an error occurs on an item and 'Continue On Fail' is enabled, that item will contain an error message in JSON instead of text data.
Examples
Example 1: Extract text from a standard PDF file named in the binary property 'data'
Set 'Input Binary Field' to 'data' and leave 'Password Protected?' unchecked.
Example 2: Extract text from a password-protected PDF file
Set 'Input Binary Field' to the binary property name, tick 'Password Protected?', and provide the password in the 'Password' field.
