Add PDF.co extraction to Google Sheets
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 code
- PdfCo.extractDataFromPdf.ExtractedFields
- Type
- String
- Example
- {"invoice_number":"INV-12345","total":"1234.56"}
Extracted text The plain text content extracted from the PDF.
- Slug
- extracted_text
- Filter code
- PdfCo.extractDataFromPdf.ExtractedText
- Type
- String
- Example
- Invoice #12345 Total: $1,234.56
Page count Number of pages processed.
- Slug
- page_count
- Filter code
- PdfCo.extractDataFromPdf.PageCount
- Type
- String
- Example
- 1
Pdf url The source PDF URL.
- Slug
- pdf_url
- Filter code
- PdfCo.extractDataFromPdf.PdfUrl
- Type
- Web URL
- Example
- https://example.com/invoice.pdf
