This query returns structured data extracted from a PDF form or template, including form field values and tabular data.
Developer info
API endpoint slug
pdf_co.extract_data_from_pdf
Runtime method
performQuery("pdf_co.extract_data_from_pdf"}
Query fields
Pdf url Text input > Other
Label
PDF URL
Helper text
Public URL of the PDF to extract data from.
Slug
pdf_url
Required
true
Can have default value
true
Template Text input > Other
Label
Template ID
Helper text
PDF.co template ID for structured extraction. Create templates in your PDF.co dashboard under Document Parser. Leave blank to receive the raw text only.
Slug
template_id
Required
false
Can have default value
true
Ingredients
Extracted fields
JSON-encoded object of extracted fields when a template is applied.
Slug
extracted_fields
Filter
PdfCo.extractDataFromPdf.ExtractedFields
Type
String
Example
{"invoice_number":"INV-12345","total":"1234.56"}
Extracted text
The plain text content extracted from the PDF.