pdfco
v1.0.2Extract data, edit, convert, and parse PDF documents with OCR and AI
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
extract_invoice_data Extract Invoice Data
Extract structured data from invoices using advanced AI. Automatically parse invoice content and return key fields regardless of layout or format, with optional support for custom field extraction.
| Parameter | Type | Description |
|---|---|---|
url * | string | URL of the invoice document to process. Accepts PDF and image formats. Defaults to a sample invoice if not provided. |
callback | string | Webhook URL for asynchronous delivery of parsing results. If provided, results will be sent to this endpoint upon completion instead of being returned directly. |
customfield | string | JSON string specifying custom field names to extract beyond standard invoice fields. Use camelCase for field names (e.g., storeNumber, deliveryDate) with multiple fields comma-separated. |
extract_data_from_pdf_document Extract Data From PDF Document
Extracts structured data from PDF documents using a customizable parser template. Supports extraction from form fields, tables, and multi-page documents with flexible output formatting.
| Parameter | Type | Description |
|---|---|---|
url * | string | URL of the PDF document to parse. Can be a remote URL or a local file path accessible to the service. |
generatecsvheaders | boolean | When true, includes column headers in CSV output. Only applicable when outputformat is CSV. |
name | string | Optional filename for the generated output file. If not specified, a default name will be assigned. |
outputformat | string | Format for the extracted output data. Choose from JSON, YAML, XML, or CSV. Defaults to JSON. |
pages | string | Specifies which pages to process using 0-based indices. Supports individual pages (e.g., 0, 5), ranges (e.g., 3-7), open-ended ranges (e.g., 10-), and reverse indexing (e.g., !0 for last page). Items… |
template | string | JSON template defining extraction rules, including field patterns (regex-based), table structures with multi-page support, and data type specifications. Defaults to a multi-page table extraction templ… |
list_document_parser_templates List Document Parser Templates
Retrieve all available Document Parser data extraction templates accessible to the current user. Use this to discover template options before configuring document parsing operations.
get_document_parser_template Get Document Parser Template
Retrieve detailed information about a specific document parser template using its unique identifier.
| Parameter | Type | Description |
|---|---|---|
id * | string | The unique identifier of the document parser template to retrieve. |
extract_pdf_attachments Extract PDF Attachments
Extracts all attachments embedded in a PDF file from the provided URL. Returns the extracted attachment data for processing or download.
| Parameter | Type | Description |
|---|---|---|
url * | string | The URL of the PDF file to extract attachments from. Defaults to a sample PDF file if not provided. |
add_content_to_pdf Add Content to PDF
Add or modify content in a PDF document by inserting text annotations, images, other PDFs, and filling form fields. Supports both native PDFs and scanned documents.
| Parameter | Type | Description |
|---|---|---|
annotationsString * | string | One or more text annotations to add to the PDF. Each annotation is semicolon-delimited with parameters: x-coordinate, y-coordinate, page numbers, text content, font size, font name, font color, option… |
url * | string | URL of the source PDF file to edit. Defaults to a sample PDF if not provided. |
fieldsString | string | Values to populate in fillable PDF form fields. Each entry is semicolon-delimited with parameters: page number, field name, and field value. |
imagesString | string | One or more images or PDF objects to overlay on the source PDF. Each item is semicolon-delimited with parameters: x-coordinate, y-coordinate, page numbers, URL to the image or PDF file, optional link… |
name | string | Name for the output document. Defaults to 'newDocument' if not specified. |
replace_text_in_pdf Replace Text in PDF
Search for text patterns in a PDF document and replace them with new text. Supports literal string matching or regular expressions, with options for case sensitivity and replacement limits.
| Parameter | Type | Description |
|---|---|---|
url * | string | URL of the PDF file to process. Defaults to a sample agreement template if not specified. |
casesensitive | boolean | Perform case-sensitive text matching. When true, 'Hello' and 'hello' are treated as different strings. |
name | string | Output filename for the processed PDF document. |
pages | string | Comma-separated page indices or ranges to process (0-based indexing). Supports ranges (e.g., 3-7), open-ended ranges (e.g., 10-), and reverse indexing (e.g., !0 for last page). If omitted, all pages a… |
regex | boolean | Enable regular expression matching for search strings. When true, searchstrings are interpreted as regex patterns rather than literal text. |
replacementlimit | number | Maximum number of replacements to perform per search string. Defaults to 1 replacement per string. |
replacestrings | array | Array of replacement text strings corresponding to each search string. Must have the same length as searchstrings for proper pairing. |
searchstrings | array | Array of text strings or patterns to search for in the PDF. Order corresponds to replacestrings array for paired replacements. |
replace_text_with_image_in_pdf Replace Text with Image in PDF
Search for specific text in a PDF document and replace it with an image. Supports regex patterns and case-sensitive matching with optional replacement limits and page range targeting.
| Parameter | Type | Description |
|---|---|---|
url * | string | URL of the PDF file to modify. Accepts publicly accessible URLs or data URIs. |
casesensitive | boolean | Perform case-sensitive text matching. When true, 'Text' and 'text' are treated as different; when false, they match regardless of case. |
name | string | Custom filename for the generated output PDF. If not specified, a default name is assigned. |
pages | string | Comma-separated page indices or ranges to process (0-based indexing). Supports ranges (e.g., 3-7), open-ended ranges (e.g., 10-), reverse indexing (e.g., !0 for last page), and individual pages. Omit… |
regex | boolean | Enable regular expression matching for the search string. When true, the search string is interpreted as a regex pattern; when false, performs literal text matching. |
replaceimage | string | Base64-encoded image data (with data URI prefix) to use as the replacement. Supports PNG, JPEG, and other common image formats. |
replacementlimit | number | Maximum number of replacements to perform per search term. Use 0 to replace all occurrences; any positive integer limits replacements to that count. |
searchstring | string |
delete_text_from_pdf Delete Text from PDF
Remove specified text strings from a PDF document. Supports literal text matching or regex patterns, with options for case sensitivity and limiting replacements per page.
| Parameter | Type | Description |
|---|---|---|
url * | string | URL of the PDF document to process. Defaults to a sample agreement template if not provided. |
casesensitive | boolean | Control case sensitivity for text matching. When true, searches are case-sensitive; when false, matches ignore case differences. |
name | string | Custom file name for the generated output PDF. If not specified, a default name will be assigned. |
pages | string | Comma-separated page indices or ranges to process (0-based numbering). Use single numbers (e.g., 0, 5), ranges (e.g., 3-7), or open-ended ranges (e.g., 10-). If omitted, all pages are processed. |
regex | boolean | Enable regular expression matching for search strings. When true, searchstrings are interpreted as regex patterns instead of literal text. |
replacementlimit | number | Maximum number of times each search string should be deleted per page. Defaults to 2 deletions per page. |
searchstrings | array | Array of text strings to search for and delete from the PDF. Each string is treated as a literal match unless regex mode is enabled. Defaults to common placeholder tokens like [CLIENT-NAME], [CLIENT-C… |
convert_pdf_to_csv Convert PDF to CSV
Convert PDF documents and scanned images into CSV format, preserving table structure, columns, rows, and layout information. Supports selective page extraction and configurable text grouping strategies.
| Parameter | Type | Description |
|---|---|---|
url * | string | URL of the PDF file to convert. Can be a direct file URL or a cloud storage link. Defaults to a sample PDF if not provided. |
lang | string | Language code for OCR processing of scanned images. Uses standard language codes (e.g., 'eng' for English). Defaults to English. |
linegrouping | string | Controls how text lines are grouped within table cells during extraction. Choose from three modes (1, 2, or 3) to adjust grouping behavior. See documentation for detailed mode descriptions. |
name | string | Output filename for the generated CSV file. Defaults to 'result.csv'. |
pages | string | Specifies which pages to process using 0-based indices. Supports individual pages (e.g., 0, 5), ranges (e.g., 3-7), open-ended ranges (e.g., 10-), and reverse indexing from the end (!0 for last page).… |
rect | string | Rectangular region to extract from the PDF, specified as four space-separated values: x-coordinate, y-coordinate, width, and height. Use the PDF Edit Add Helper tool to measure coordinates. Only conte… |
unwrap | boolean | When enabled, unwraps multi-line text within table cells into single lines. Only applies when line grouping mode is set to 1. |
convert_pdf_to_json Convert PDF to JSON
Convert PDF documents and scanned images into structured JSON format, preserving text content, fonts, images, vectors, and formatting information. Supports OCR for scanned documents and flexible page selection.
| Parameter | Type | Description |
|---|---|---|
url * | string | URL of the PDF file to convert. Accepts publicly accessible URLs pointing to PDF documents or scanned images. |
lang | string | Language code for OCR processing when extracting text from scanned PDFs, PNGs, and JPGs. Use ISO 639-3 three-letter language codes (e.g., 'eng' for English). Combine multiple languages with a plus sig… |
linegrouping | string | Controls how text lines are grouped during extraction. Choose from three modes (1, 2, or 3) to adjust line grouping behavior within table cells. Refer to line grouping options documentation for detail… |
name | string | Custom filename for the generated JSON output file. |
pages | string | Specifies which pages to process using zero-based indices and ranges. Supports individual pages (e.g., '0'), ranges (e.g., '3-7'), open-ended ranges (e.g., '10-'), and reverse indexing from the end (e… |
rect | string | Rectangular region to extract from the PDF, specified as coordinates in the format: x-position, y-position, width, and height. Use the PDF Edit Add Helper tool to determine precise coordinates for tar… |
unwrap | boolean | When enabled, unwraps multi-line text within table cells into single lines. Only applies when line grouping mode is set to 1. |
convert_pdf_to_json_with_ai Convert PDF to JSON with AI
Convert PDF documents and scanned images into structured JSON format using AI-powered extraction. Supports OCR for scanned content, coordinate-based region extraction, and configurable text grouping strategies.
| Parameter | Type | Description |
|---|---|---|
url * | string | URL of the PDF, PNG, or JPG file to convert. Accepts publicly accessible URLs or file paths from supported cloud storage. |
lang | string | OCR language code for extracting text from scanned PDFs and images. Use 3-letter ISO 639-2 language codes (e.g., 'eng' for English). Combine multiple languages with '+' to process bilingual documents… |
linegrouping | string | Controls text line grouping strategy during extraction. Mode 1 groups lines tightly, mode 2 uses standard grouping, and mode 3 applies loose grouping. Affects how text is organized in the JSON output. |
name | string | Custom filename for the generated JSON output file. |
pages | string | Specifies which pages to process using 0-based indices. Supports individual pages (e.g., '0,2,5'), ranges (e.g., '3-7'), open-ended ranges (e.g., '10-'), and reverse indexing from the end (e.g., '!0'… |
rect | string | Rectangular region coordinates for targeted extraction. Specify as four space-separated values: x-offset, y-offset, width, and height. Use the PDF Edit Add Helper tool to measure coordinates precisely… |
unwrap | boolean | When enabled with line grouping mode 1, merges multi-line text within table cells into single lines for cleaner output. |
convert_pdf_to_text Convert PDF to Text
Convert PDF documents and scanned images to text while preserving layout. Uses OCR technology to extract text from both native PDFs and image-based documents.
| Parameter | Type | Description |
|---|---|---|
url * | string | URL of the PDF or image file to convert. Accepts PDF, PNG, and JPG formats. Defaults to a sample PDF if not provided. |
lang | string | Language code for OCR processing when extracting text from scanned PDFs, images, or JPG documents. Use three-letter ISO 639-2 language codes (e.g., 'eng' for English). Combine multiple languages with… |
linegrouping | string | Controls how text lines are grouped during extraction, particularly within table cells. Choose from mode 1, 2, or 3 for different grouping behaviors. See documentation for detailed mode descriptions. |
name | string | Custom filename for the generated text output file. |
pages | string | Specifies which pages to process using zero-based indices. Supports individual pages (e.g., '0'), ranges (e.g., '3-7'), open-ended ranges (e.g., '10-'), and reverse indexing from the end (e.g., '!0' f… |
rect | string | Rectangular region to extract text from, specified as coordinates in the format: x-offset, y-offset, width, height (all in points). Use the PDF Edit Add Helper tool to measure coordinates. If omitted,… |
unwrap | boolean | When enabled with line grouping mode 1, unwraps multi-line text within table cells into single lines. Defaults to disabled. |
convert_pdf_to_text_fast Convert PDF to Text Fast
Convert a PDF document to plain text using fast, lightweight processing without AI-powered layout analysis or OCR. Use this for quick conversions when layout preservation and scanned page support are not required.
| Parameter | Type | Description |
|---|---|---|
url * | string | URL of the PDF file to convert. Accepts publicly accessible PDF URLs. |
name | string | Custom file name for the generated text output. |
pages | string | Comma-separated page indices or ranges to extract (0-based indexing). Supports individual pages (e.g., 0, 5), ranges (e.g., 3-7, 10-), and reverse indexing from the end (e.g., !0 for last page, !5-!2… |
convert_pdf_to_xls Convert PDF to XLS
Convert a PDF document to Excel (.xls) format while preserving layout, fonts, and table structure. Supports OCR for scanned documents and flexible page selection.
| Parameter | Type | Description |
|---|---|---|
url * | string | URL of the PDF file to convert. Defaults to a sample PDF if not provided. |
lang | string | Language(s) for OCR processing when extracting text from scanned PDFs, images, or JPG documents. Use ISO 639-3 three-letter language codes, optionally combining two languages with a plus sign (e.g., e… |
linegrouping | string | Controls how text lines are grouped during extraction from table cells. Choose from three modes (1, 2, or 3) to adjust grouping behavior. See Line Grouping Options for details on each mode. |
name | string | Custom file name for the generated Excel output file. |
pages | string | Specifies which pages to process using zero-based indices or ranges. Use comma-separated values with formats like: single page (0), range (3-7), open-ended range (10-), or reverse indexing (!0 for las… |
rect | string | Rectangular region to extract from the PDF, specified as four space-separated values: x-coordinate, y-coordinate, width, and height. Use the PDF Edit Add Helper tool to determine coordinates. |
unwrap | boolean | When enabled, unwraps multi-line text within table cells into single lines. Only applies when line grouping mode is set to 1. |
convert_pdf_to_xlsx Convert PDF to XLSX
Convert a PDF document to Excel (.xlsx format) while preserving layout, fonts, and table structure. Supports OCR for scanned documents and flexible page selection.
| Parameter | Type | Description |
|---|---|---|
url * | string | URL of the PDF file to convert. Defaults to a sample PDF if not provided. |
lang | string | Language code for OCR processing of scanned PDFs, images, and JPG documents. Use ISO 639-3 three-letter codes (e.g., 'eng' for English). Combine multiple languages with '+' for simultaneous processing… |
linegrouping | string | Controls how text lines are grouped during extraction from table cells. Choose from mode 1, 2, or 3 for different grouping behaviors. See Line Grouping Options for detailed behavior differences. |
name | string | Custom filename for the generated Excel output file. If not specified, a default name will be assigned. |
pages | string | Specifies which pages to process using zero-based indices. Supports individual pages (e.g., '0'), ranges (e.g., '3-7'), open-ended ranges (e.g., '10-'), and reverse indexing (e.g., '!0' for last page)… |
rect | string | Rectangular region to extract from the PDF, specified as four space-separated values: x-coordinate, y-coordinate, width, and height. Use the PDF Edit Add Helper tool to determine coordinates. Omit to… |
unwrap | boolean | When enabled with line grouping mode 1, unwraps multi-line text within table cells into single lines. Defaults to disabled. |
convert_pdf_to_xml Convert PDF to XML
Convert a PDF document to XML format with detailed extraction of text content, table structures, font information, image references, and precise object positioning data.
| Parameter | Type | Description |
|---|---|---|
url * | string | URL of the PDF file to convert. Accepts publicly accessible PDF URLs; defaults to a sample PDF if not provided. |
lang | string | OCR language code for text extraction from scanned PDFs, images, and documents. Use ISO 639-3 three-letter language codes (e.g., 'eng' for English). Combine multiple languages with '+' for simultaneou… |
linegrouping | string | Controls text line grouping behavior during extraction. Mode 1 groups lines within table cells, mode 2 applies alternative grouping, and mode 3 uses a third grouping strategy. See documentation for de… |
name | string | Custom filename for the generated XML output file. If not specified, a default name is assigned. |
pages | string | Comma-separated list of pages to process (0-based indexing). Supports individual pages (e.g., '0,2,5'), ranges (e.g., '3-7'), open-ended ranges (e.g., '10-'), and reverse indexing from end (!0 for las… |
rect | string | Rectangular region to extract from the PDF, specified as space-separated coordinates: x-offset, y-offset, width, and height. Use the PDF Edit Add Helper tool to determine precise coordinates for targe… |
unwrap | boolean | When enabled with line grouping mode 1, unwraps multi-line text within table cells into single continuous lines. Defaults to disabled. |
convert_pdf_to_html Convert PDF to HTML
Convert PDF documents and scanned images into HTML format while preserving text, fonts, images, vectors, and formatting. Supports OCR for scanned documents and selective page/region extraction.
| Parameter | Type | Description |
|---|---|---|
url * | string | URL of the PDF file to convert. Accepts publicly accessible URLs pointing to PDF documents or scanned images (PNG, JPG). |
lang | string | Language code for OCR processing when converting scanned PDFs or image files. Use three-letter ISO 639-2 language codes (e.g., 'eng' for English). Combine multiple languages with '+' to enable simulta… |
name | string | Custom filename for the generated HTML output file. |
pages | string | Page selection using zero-based indices and ranges. Specify individual pages (e.g., '0,2,5'), ranges (e.g., '3-7'), open-ended ranges (e.g., '10-'), or reverse indices from the end (e.g., '!0' for las… |
rect | string | Rectangular region to extract, specified as four space-separated coordinates: x, y, width, and height. Use the PDF Edit Add Helper tool to measure coordinates. Only content within this region will be… |
convert_pdf_to_jpg Convert PDF to JPG
Convert a PDF document to high-quality JPEG images. Optionally extract specific pages or regions from the PDF.
| Parameter | Type | Description |
|---|---|---|
url * | string | URL of the PDF file to convert. Can be a remote URL or a local file path. Defaults to a sample encrypted PDF for testing. |
name | string | Output filename for the converted JPEG image. Defaults to 'result.jpg'. |
pages | string | Optional comma-separated list of pages to convert (0-based indexing). Supports individual pages (e.g., '0,2,5'), ranges (e.g., '3-7'), open-ended ranges (e.g., '10-'), and reverse indexing where !0 is… |
rect | string | Optional rectangular region to extract from each page, specified as four space-separated values: x-coordinate, y-coordinate, width, and height (e.g., '10 20 300 400'). If omitted, the entire page is c… |
convert_pdf_to_png Convert PDF to PNG
Convert a PDF document to high-quality PNG images. Optionally extract specific regions or pages from the PDF.
| Parameter | Type | Description |
|---|---|---|
url * | string | URL of the PDF file to convert. Defaults to a sample PDF if not provided. |
name | string | Optional custom file name for the generated PNG output file. |
pages | string | Optional page selection using 0-based indices and ranges. Specify individual pages (e.g., '0,2,5'), ranges (e.g., '3-7'), open-ended ranges (e.g., '10-'), or reverse indices from the end (e.g., '!0' f… |
rect | string | Optional rectangular region to extract from the PDF, specified as four space-separated values: x-coordinate, y-coordinate, width, and height (e.g., '10 20 300 400'). |
convert_pdf_to_webp Convert PDF to WebP
Convert a PDF document to high-quality WebP image format. Supports selective page extraction and region-based cropping for targeted conversions.
| Parameter | Type | Description |
|---|---|---|
url * | string | URL of the PDF file to convert. Accepts publicly accessible PDF URLs or file paths. Defaults to a sample PDF if not specified. |
name | string | Optional custom file name for the generated WebP output file. |
pages | string | Optional page selection using 0-based indices. Specify individual pages (e.g., 0, 2, 5), ranges (e.g., 3-7, 10-), or reverse indices from the end (e.g., !0 for last page, !5-!2 for range from fifth-to… |
rect | string | Optional rectangular region to extract from the PDF, specified as four space-separated values: x-coordinate, y-coordinate, width, and height. Use this to crop a specific area of interest from the page… |
convert_pdf_to_tiff Convert PDF to TIFF
Convert a PDF document to high-quality TIFF image format. Optionally extract specific regions, select page ranges, and customize output file naming.
| Parameter | Type | Description |
|---|---|---|
url * | string | URL of the PDF file to convert. Defaults to a sample PDF if not provided. |
name | string | Custom file name for the generated TIFF output file. |
pages | string | Comma-separated list of pages to convert (0-based indexing). Supports individual pages (e.g., 0, 5), ranges (e.g., 3-7, 10-), and reverse indexing from the end (e.g., !0 for last page, !5-!2 for range… |
rect | string | Rectangular region to extract from the PDF, specified as four space-separated coordinates: x y width height. Use the PDF Edit Add Helper tool to measure and obtain precise coordinates for your target… |
unwrap | boolean | When enabled with lineGrouping, unwraps text lines within table cells into single lines for cleaner extraction. |
convert_pdf_from_doc Convert PDF From Doc
Convert document files (DOC, DOCX, RTF, TXT, XPS) to PDF format. Accepts a URL pointing to the source document and returns the converted PDF.
| Parameter | Type | Description |
|---|---|---|
url * | string | URL of the source document file to convert. Must point to a valid DOC, DOCX, RTF, TXT, or XPS file accessible via HTTP(S). |
name | string | Optional filename for the output PDF file. Defaults to 'result.pdf' if not specified. |
convert_pdf_from_csv Convert PDF from CSV
Convert CSV, XLS, or XLSX spreadsheet files into PDF format. Accepts a file URL and returns a generated PDF document.
| Parameter | Type | Description |
|---|---|---|
url * | string | URL of the CSV, XLS, or XLSX file to convert. Must be a publicly accessible HTTP(S) URL pointing to the spreadsheet file. |
name | string | Output filename for the generated PDF document. Defaults to 'result.pdf' if not specified. |
convert_pdf_from_image Convert PDF from Image
Convert image files (JPG, PNG, TIFF) into PDF format. Accepts one or more image URLs and generates a single PDF document.
| Parameter | Type | Description |
|---|---|---|
url * | string | One or more image URLs to convert into PDF, separated by commas. Supported formats are JPG, PNG, and TIFF. Images are processed in the order provided. |
name | string | Optional custom file name for the generated PDF output file. |
convert_pdf_from_url Convert PDF From URL
Convert a webpage from a URL into a PDF document. The converter processes all JavaScript triggered during page load, including dynamic content and popups, with no option to disable scripting.
| Parameter | Type | Description |
|---|---|---|
url * | string | The URL of the webpage to convert to PDF. Defaults to the Wikipedia contact page if not specified. |
donotwaitfullload | boolean | When true, speeds up conversion by waiting only for minimal page loading instead of full page load completion. Defaults to false for thorough rendering. |
footer | string | Custom HTML content to display at the bottom of every page in the PDF. Must be valid HTML format. |
header | string | Custom HTML content to display at the top of every page in the PDF. Must be valid HTML format. |
margins | string | Space around the page edges in the PDF output. Specified as a measurement value (e.g., millimeters). Defaults to 5mm. |
mediatype | string | The rendering mode for the conversion. Defaults to print mode for optimal PDF formatting. |
name | string | The filename for the generated PDF file output. |
orientation | string | The page orientation for the PDF output. Defaults to Portrait orientation. |
papersize | The paper size for the PDF document. Defaults to Letter size. | |
printbackground | boolean | Whether to include background colors and images in the PDF. Enabled by default. |
convert_pdf_from_html Convert PDF from HTML
Convert HTML content into a PDF document. The converter processes JavaScript triggered during page load and includes dynamic content like popups in the output.
| Parameter | Type | Description |
|---|---|---|
html * | string | The HTML code to convert to PDF. Can include inline styles, scripts, and other HTML elements. |
templateid * | integer | Template identifier that determines the PDF layout and styling template to apply. Defaults to template 1. |
donotwaitfullload | boolean | When true, speeds up conversion by waiting only for minimal page load instead of full page load completion. Defaults to false for thorough rendering. |
footer | string | Custom HTML content to display in the footer of every page. Must be valid HTML format. |
header | string | Custom HTML content to display in the header of every page. Must be valid HTML format. |
margins | string | Page margins specified as top, right, bottom, and left values in pixels. Defaults to 40px top/bottom and 20px left/right. |
mediatype | string | Media type used for rendering, typically 'print' for print-optimized output or 'screen' for screen-optimized output. Defaults to print. |
name | string | Output filename for the generated PDF document. Defaults to 'multipagedInvoiceWithQRCode.pdf'. |
orientation | string | Page orientation for the output PDF. Defaults to Portrait; can be set to Landscape for wider layouts. |
papersize | Paper size for the output PDF (e.g., Letter, A4, Legal). Defaults to Letter size. | |
printbackground | boolean | Whether to print background colors and images in the PDF. Enabled by default. |
list_templates_html List HTML Templates
Retrieve all HTML templates available for the current user. Returns a collection of template resources that can be used for rendering or customization.
get_html_template Get HTML Template
Retrieve a specific HTML template by its unique identifier. Use this operation to fetch the full template content for rendering or editing purposes.
| Parameter | Type | Description |
|---|---|---|
id * | string | The unique identifier of the HTML template to retrieve. |
convert_email_to_pdf Convert Email to PDF
Convert email files (.msg or .eml format) to PDF documents, automatically extracting and embedding any attachments as PDF attachments within the output file.
| Parameter | Type | Description |
|---|---|---|
url * | string | URL pointing to the email file (.msg or .eml) to convert. Defaults to a sample email file if not specified. |
footer | string | Custom HTML content to display in the footer of every page. Provide valid HTML markup. |
header | string | Custom HTML content to display in the header of every page. Provide valid HTML markup. |
margins | string | Custom page margins as space-separated values (top right bottom left). Supports px, mm, cm, or in units. A single value applies to all sides. Overrides default CSS margins. |
name | string | Output filename for the generated PDF document. Defaults to 'email-with-attachments' if not specified. |
orientation | string | Page orientation for the output PDF: Portrait for vertical layout or Landscape for horizontal layout. Defaults to Portrait. |
papersize | string | Paper size for the output PDF. Use standard sizes (Letter, Legal, A0–A6, etc.) or specify custom dimensions as width and height with optional units (px, mm, cm, or in). |
convert_spreadsheet_to_csv Convert Spreadsheet to CSV
Converts an Excel file (xls/xlsx format) to CSV format. Optionally specify which worksheet to convert and customize the output filename.
| Parameter | Type | Description |
|---|---|---|
url * | string | URL of the Excel file to convert. Must be a publicly accessible URL pointing to a valid xls or xlsx file. |
name | string | Custom filename for the generated CSV output file. If not provided, a default name will be assigned. |
worksheetindex | string | Zero-based index of the worksheet to convert (first worksheet is index 1). If not specified, the first worksheet is used by default. |
convert_spreadsheet_to_json Convert Spreadsheet to JSON
Converts Excel (xls/xlsx) or CSV files to JSON format. Supports selecting specific worksheets and customizing output file names.
| Parameter | Type | Description |
|---|---|---|
url * | string | URL of the spreadsheet file to convert. Must be a publicly accessible URL pointing to an xls, xlsx, or csv file. |
name | string | Custom name for the generated JSON output file. If not provided, a default name will be used. |
worksheetindex | string | Zero-based index of the worksheet to extract (e.g., 1 for the first sheet, 2 for the second). Only applicable to Excel files with multiple sheets. Omit to use the default sheet. |
convert_spreadsheet_to_html Convert Spreadsheet to HTML
Converts Excel (xls/xlsx) or CSV files to HTML format. Supports selecting specific worksheets and customizing the output file name.
| Parameter | Type | Description |
|---|---|---|
url * | string | URL of the spreadsheet file to convert. Must be a publicly accessible URL pointing to an xls, xlsx, or csv file. |
name | string | Custom name for the generated HTML output file. If not provided, a default name will be used. |
worksheetindex | string | Zero-based index of the worksheet to convert when the file contains multiple sheets. Defaults to the first worksheet if not specified. |
convert_spreadsheet_to_text Convert Spreadsheet to Text
Converts Excel spreadsheets (xls, xlsx, or csv files) to plain text format. Optionally specify which worksheet to convert and customize the output filename.
| Parameter | Type | Description |
|---|---|---|
url * | string | URL of the spreadsheet file to convert. Must be a publicly accessible URL pointing to an xls, xlsx, or csv file. |
name | string | Custom filename for the generated text output file. If not provided, a default name will be assigned. |
worksheetindex | string | Zero-based index of the worksheet to convert (first worksheet is index 1). If not specified, the first worksheet is used by default. |
convert_spreadsheet_to_xml Convert Spreadsheet to XML
Converts Excel (xls/xlsx) or CSV files to XML format. Supports selecting a specific worksheet from multi-sheet workbooks.
| Parameter | Type | Description |
|---|---|---|
url * | string | URL of the spreadsheet file to convert. Must be a publicly accessible URL pointing to an xls, xlsx, or csv file. |
name | string | Custom name for the generated XML output file. If not specified, a default name will be used. |
worksheetindex | string | Zero-based index of the worksheet to convert from multi-sheet workbooks. Use 1 for the first worksheet, 2 for the second, and so on. Only applicable to Excel files with multiple sheets. |
convert_spreadsheet_to_pdf Convert Spreadsheet to PDF
Converts Excel (XLS/XLSX) or CSV files to PDF format with optional worksheet selection and automatic page sizing.
| Parameter | Type | Description |
|---|---|---|
url * | string | URL of the spreadsheet file to convert. Accepts XLS, XLSX, or CSV formats. |
autosize | boolean | When enabled, automatically adjusts page dimensions to fit the content. When disabled, uses the worksheet's configured page setup settings. |
name | string | Custom filename for the generated PDF output file. |
worksheetindex | string | Zero-based index of the worksheet to convert when the file contains multiple sheets. Defaults to the first worksheet if not specified. |
merge_pdfs Merge PDFs
Merge multiple PDF files into a single consolidated PDF document. Provide one or more PDF URLs to combine them in the order specified.
| Parameter | Type | Description |
|---|---|---|
url * | string | One or more URLs pointing to PDF files to merge, separated by commas. URLs must be accessible and point to valid PDF documents. Defaults to sample encrypted PDFs if not specified. |
name | string | The filename for the resulting merged PDF document. Defaults to 'result.pdf' if not specified. |
merge_documents_to_pdf Merge Documents to PDF
Merge multiple documents and images of various formats (PDF, DOC, DOCX, XLS, XLSX, RTF, TXT, PNG, JPG, or ZIP archives) into a single PDF file. This operation supports broader file type compatibility than standard PDF merge but consumes additional credits due to internal format conversions.
| Parameter | Type | Description |
|---|---|---|
url * | string | Comma-separated URLs of source files to merge. Supports PDF, DOC, DOCX, XLS, XLSX, RTF, TXT, PNG, JPG, and ZIP files containing documents or images. Multiple files are merged in the order specified. |
name | string | Optional custom filename for the generated PDF output file. |
split_pdf Split PDF
Split a PDF document into multiple separate PDF files by specifying which pages to extract using page numbers or ranges.
| Parameter | Type | Description |
|---|---|---|
url * | string | URL of the PDF file to split. Accepts any publicly accessible PDF URL; defaults to a sample PDF if not provided. |
name | string | Filename for the output PDF file. Defaults to 'result.pdf' if not specified. |
pages | string | Pages to extract from the PDF using 1-based indexing. Specify individual pages (e.g., 1,3,5), ranges (e.g., 1-5), or combinations (e.g., 1-3,5,7-9). Use !1 to reference the last page and !6-!2 for ran… |
split_pdf_by_text_search Split PDF by Text Search
Split a PDF document into multiple files by searching for specific text patterns or barcodes. Pages containing the search term can be used as split points, with options to exclude or include those pages in the output.
| Parameter | Type | Description |
|---|---|---|
searchstring * | string | Text pattern or barcode format to search for within the PDF. Supports barcode syntax like [[barcode:qrcode,datamatrix /pattern/]] for barcode detection, or plain text strings for text search. |
url * | string | URL of the PDF file to split. Must be a publicly accessible URL pointing to a valid PDF document. |
casesensitive | boolean | Perform case-sensitive text matching. When disabled, search is case-insensitive. |
excludekeypages | boolean | Exclude pages containing the search match from the output files. When enabled, matching pages are removed; when disabled, they are included in the split results. |
lang | string | OCR language for extracting text from scanned PDFs, images, and documents. Use ISO 639-3 language codes (e.g., 'eng' for English). Combine multiple languages with '+' for simultaneous processing (e.g.… |
name | string | Base name for the output PDF files. The system will append sequential numbering to create individual split file names. |
regexsearch | boolean | Enable regular expression matching for the search string. When enabled, the searchstring is interpreted as a regex pattern rather than literal text. |
get_pdf_form_fields Get PDF Form Fields
Extract and retrieve metadata about all fillable form fields within a PDF document. Returns field names, types, and properties for programmatic form processing.
| Parameter | Type | Description |
|---|---|---|
url * | string | The URL of the PDF file to analyze. Must be a publicly accessible URL pointing to a valid PDF document containing form fields. |
search_pdf_text Search PDF Text
Search for text patterns in a PDF document and retrieve their precise coordinates. Supports both literal string matching and regular expression patterns for flexible text discovery.
| Parameter | Type | Description |
|---|---|---|
searchstring * | string | Text or pattern to find in the PDF. When regex search is enabled, this accepts regular expression syntax (e.g., date patterns like \d+/\d+/\d+). |
url * | string | URL of the PDF file to search. Defaults to a sample PDF if not specified. |
casesensitive | boolean | Control search sensitivity to letter case. Set to false for case-insensitive matching; true for case-sensitive matching. |
name | string | Name identifier for the output results. |
pages | string | Specify which pages to search using 0-based indices. Supports individual pages (e.g., 0, 5), ranges (e.g., 3-7, 10-), and reverse indexing (e.g., !0 for last page). Use comma-separated values for mult… |
regexsearch | boolean | Enable regular expression matching for the search string. When true, the search string is interpreted as a regex pattern; when false, performs literal string matching. |
wordmatchingmode | string | Word matching mode to control how text boundaries are handled during search (e.g., whole words only vs. partial matches). |
search_tables_in_pdf Search Tables in PDF
Scan a PDF document using AI to detect and extract tables, returning their locations, coordinates, and column information for specified pages.
| Parameter | Type | Description |
|---|---|---|
url * | string | URL of the PDF file to analyze. Defaults to a sample PDF if not provided. |
name | string | Optional custom name for the generated output file. |
pages | string | Comma-separated page indices or ranges to scan (0-based indexing). Supports individual pages (e.g., 0, 5), ranges (e.g., 3-7, 10-), and reverse indexing from the end (e.g., !0 for last page, !5-!2 for… |
make_pdf_searchable Make PDF Searchable
Convert scanned PDF documents or image files into text-searchable PDFs by running OCR and adding an invisible text layer for search and indexing capabilities.
| Parameter | Type | Description |
|---|---|---|
url * | string | URL of the PDF or image file to process. Accepts remote URLs pointing to scanned documents or image files that need OCR conversion. |
lang | string | Language code for OCR processing (e.g., 'eng' for English). Defaults to English if not specified. Use standard ISO 639-3 language codes. |
name | string | Output filename for the resulting searchable PDF. Defaults to 'result.pdf' if not specified. |
pages | string | Comma-separated page indices or ranges to process (0-based indexing). Supports individual pages (e.g., 0, 5), ranges (e.g., 3-7, 10-), and reverse indexing (e.g., !0 for last page). Whitespace is allo… |
rect | string | Rectangular region coordinates for targeted OCR processing, specified as four space-separated values: x y width height (in points). Use the PDF Edit Add Helper tool to measure coordinates. If omitted,… |
convert_pdf_to_unsearchable Convert PDF to Unsearchable
Convert a PDF file into an unsearchable version by rendering it as a flat image, effectively creating a scanned PDF that prevents text extraction.
| Parameter | Type | Description |
|---|---|---|
url * | string | URL of the PDF file to convert. Can be a direct file URL or a cloud storage path (e.g., S3 URI). |
name | string | Output filename for the resulting unsearchable PDF document. |
pages | string | Comma-separated page indices or ranges to process (0-based indexing). Supports individual pages (e.g., 0, 5), ranges (e.g., 3-7, 10-), and reverse indexing from the end (e.g., !0 for last page, !5-!2… |
compress_pdf Compress PDF
Compress PDF files to reduce their size by optimizing images and content. Supports configurable downsampling, compression formats, and quality settings for color, grayscale, and monochrome images.
| Parameter | Type | Description |
|---|---|---|
url * | string | URL of the PDF file to compress. Defaults to a sample PDF if not provided. |
config | object | Compression configuration object controlling image optimization strategies. Allows separate settings for color, grayscale, and monochrome images, including downsampling thresholds (in DPI), compressio… |
name | string | Optional file name for the compressed output PDF. If not specified, a default name will be generated. |
get_pdf_info Get PDF Info
Retrieve detailed metadata, properties, and security permissions for a PDF document from a specified URL.
| Parameter | Type | Description |
|---|---|---|
url * | string | The URL of the PDF document to analyze. Must be a valid, publicly accessible PDF file URL. |
get_job_status Get Job Status
Retrieves the current status of an asynchronous background job that was previously initiated through the PDF.co. Use this operation to poll and monitor the progress of long-running tasks.
| Parameter | Type | Description |
|---|---|---|
jobid * | string | The unique identifier of the asynchronous job whose status you want to check. This ID is returned when you initially create a background job. |
force | boolean | When enabled, forces a fresh status check from the server rather than returning a cached result, ensuring you get the most current job state. |
get_account_credit_balance Get Account Credit Balance
Retrieve the current credit balance and related account balance information for the authenticated user's account.
classify_document Classify Document
Analyzes the content of a PDF, JPG, or PNG document to automatically determine its classification using built-in AI or custom-defined classification rules.
| Parameter | Type | Description |
|---|---|---|
url * | string | URL of the document to classify. Accepts PDF, JPG, or PNG files. Defaults to a sample invoice if not provided. |
casesensitive | boolean | Controls whether the classification search is case-sensitive. Set to false to ignore case differences during analysis; defaults to true for case-sensitive matching. |
send_email_with_attachment Send Email with Attachment
Send an email message with optional file attachment. Supports multiple recipients and requires SMTP server credentials for delivery.
| Parameter | Type | Description |
|---|---|---|
from * | string | Sender email address in the format 'Name <email@domain.com>' or just 'email@domain.com'. |
smtppassword * | string | Password or app-specific password for SMTP authentication. For Gmail, use an app-specific password rather than your account password. |
smtpserver * | string | SMTP server hostname (e.g., smtp.gmail.com for Gmail, smtp.office365.com for Outlook). |
smtpusername * | string | Username or email address for SMTP authentication. |
subject * | string | Email subject line. |
to * | string | Primary recipient email address. Use comma-separated values for multiple recipients. |
url * | string | URL of the file to attach to the email. Defaults to a sample PDF from AWS S3. |
bcc | string | Blind carbon copy recipient email address. Use comma-separated values for multiple recipients. Recipients in this field are hidden from other recipients. |
cc | string | Carbon copy recipient email address. Use comma-separated values for multiple recipients. |
name | string | Custom filename for the attachment. If not specified, the original filename from the URL will be used. |
replyto | string | Reply-to email address. If specified, replies will be directed to this address instead of the sender. |
extract_email_components Extract Email Components
Decode an email message file to extract and parse its components including headers, body, attachments, and metadata.
| Parameter | Type | Description |
|---|---|---|
url * | string | URL pointing to the email file (.eml format) to be decoded. Defaults to a sample email file if not provided. |
extract_email_attachments Extract Email Attachments
Extract all attachments from an email message. Provide the URL to an EML file to retrieve and process its attachments.
| Parameter | Type | Description |
|---|---|---|
url * | string | The URL pointing to the EML email file to process. Must be a valid, accessible HTTP(S) URL. Defaults to a sample EML file if not provided. |
delete_temporary_file Delete Temporary File
Permanently deletes a temporary file from cloud storage. This operation removes files that were previously uploaded by you or generated by the API.
| Parameter | Type | Description |
|---|---|---|
url * | string | The S3 URL of the temporary file to delete. This should be a full URL path to the file in the temporary storage bucket. |
upload_file_from_url Upload File from URL
Downloads a file from a source URL and uploads it as a temporary file to the system. Temporary files are automatically deleted after 1 hour.
| Parameter | Type | Description |
|---|---|---|
url * | string | The source URL of the file to download and upload. Must be a valid, accessible HTTP or HTTPS URL. |
name | string | Optional custom name for the uploaded file. If not provided, the original filename from the source URL will be used. |
upload_file_from_url_direct Upload File From URL
Downloads a file from a remote URL and uploads it as a temporary file to the system. The temporary file will be automatically deleted after 1 hour.
| Parameter | Type | Description |
|---|---|---|
url * | string | The remote URL pointing to the file to download and upload. Must be a valid URI format. |
name | string | Optional custom name for the uploaded file. If not provided, the original filename from the source URL will be used. |
create_file_from_base64 Create File from Base64
Creates a temporary file from base64-encoded data that can be used with other API methods. The temporary file is automatically deleted after 1 hour.
| Parameter | Type | Description |
|---|---|---|
file * | string | Base64-encoded file content to upload. Must be a valid base64 string representing the file bytes. |
name | string | Optional name for the generated file. If not provided, a default name will be assigned. |
get_file_upload_presigned_url Get File Upload Presigned URL
Generate a pre-signed URL for uploading a file. Use the returned URL with a PUT request to upload your file, then access it via the provided link.
| Parameter | Type | Description |
|---|---|---|
contenttype | string | The MIME type of the file being uploaded (e.g., application/pdf, image/png, text/plain). |
name | string | The name to assign to the uploaded file. Must be provided as a string. |
add_password_to_pdf Add Password to PDF
Secure a PDF document by adding password protection and configurable access restrictions. Specify owner and user passwords along with granular permissions for printing, editing, copying, and other document operations.
| Parameter | Type | Description |
|---|---|---|
url * | string | URL of the PDF file to secure. Defaults to a sample PDF if not provided. |
allowaccessibilitysupport | boolean | Whether to allow screen readers and accessibility tools to access the document content. |
allowassemblydocument | boolean | Whether to allow users to assemble or reorganize pages within the document. |
allowcontentextraction | boolean | Whether to allow users to copy or extract text and graphics from the document. Disabled by default. |
allowfillforms | boolean | Whether to allow users to fill in form fields within the document. Disabled by default. |
allowmodifyannotations | boolean | Whether to allow users to add, modify, or delete annotations and comments. Disabled by default. |
allowmodifydocument | boolean | Whether to allow users to modify or edit the document content. Disabled by default. |
allowprintdocument | boolean | Whether to allow users to print the document. Disabled by default. |
name | string | Output filename for the secured PDF document. Defaults to 'output-protected.pdf' if not specified. |
ownerpassword | string | Password required to modify document permissions and security settings. Defaults to '12345' if not specified. |
printquality | string | Quality level for printing permissions. Set to 'LowResolution' by default to restrict print quality. |
userpassword | string | Password required for users to open and view the PDF document. Defaults to '54321' if not specified. |
remove_pdf_password Remove PDF Password
Remove password protection and access restrictions from a PDF file, making it fully accessible without authentication.
| Parameter | Type | Description |
|---|---|---|
url * | string | The URL of the PDF file to remove password protection from. Can be a direct file URL or a cloud storage link. |
name | string | The desired filename for the unprotected PDF output. Defaults to 'unprotected' if not specified. |
delete_pdf_pages Delete PDF Pages
Removes specified pages from a PDF file and returns the modified document. Pages are identified using 1-based indexing with support for ranges and negative indices (where !1 refers to the last page).
| Parameter | Type | Description |
|---|---|---|
url * | string | URL of the PDF file to process. Can be a direct file URL or a path to a PDF stored in cloud storage. |
name | string | Filename for the output PDF document. Defaults to 'result.pdf' if not specified. |
pages | string | Comma-separated list of page numbers or ranges to delete, using 1-based indexing. Supports ranges (e.g., 3-5), individual pages (e.g., 2), and negative indices where !1 is the last page (e.g., !1 dele… |
rotate_pdf_pages Rotate PDF Pages
Rotates specified pages in a PDF document by a given angle. If no pages are specified, the operation rotates all pages in the document.
| Parameter | Type | Description |
|---|---|---|
url * | string | The URL of the PDF file to rotate. Can be a remote URL or a local file path. |
angle | string | The rotation angle in degrees to apply to selected pages. Common values are 90, 180, and 270 for standard rotations. |
name | string | The filename for the output PDF document after rotation is applied. |
pages | string | Zero-based page indices or ranges to rotate, specified as comma-separated values. Supports individual pages (e.g., 0, 2, 5), ranges (e.g., 3-7, 10-), and reverse indexing from the end of the document… |
auto_rotate_pdf_pages Auto Rotate PDF Pages
Automatically corrects the rotation of pages in a scanned PDF using AI-powered text analysis. Supports multiple languages for accurate text detection and orientation correction.
| Parameter | Type | Description |
|---|---|---|
url * | string | URL of the PDF file to auto-rotate. Accepts a publicly accessible PDF document URL. |
lang | string | Language(s) for text recognition during rotation analysis. Use a 3-letter language code (e.g., 'eng' for English). Combine multiple languages with a plus sign (e.g., 'eng+deu') for simultaneous multi-… |
name | string | Output filename for the rotated PDF. Specify the desired name with .pdf extension for the returned document. |
generate_barcode Generate Barcode
Generate high-quality barcode images in various formats including QR Code, Data Matrix, Code 39, Code 128, PDF417, and other standard barcode types.
| Parameter | Type | Description |
|---|---|---|
decorationimage | string | Optional image file to embed or overlay on the generated barcode for branding or decoration purposes. |
name | string | The output filename for the generated barcode image. Defaults to 'barcode.png' if not provided. |
type | string | The barcode format type to generate. Defaults to QR Code if not specified. Supports formats such as QR Code, Data Matrix, Code 39, Code 128, and PDF417. |
value | string | The data or text to encode in the barcode. Defaults to 'abcdef123456' if not provided. |
read_barcodes_from_url Read Barcodes from URL
Decode barcodes and QR codes from images or PDF documents accessible via URL. Supports 40+ barcode formats including QR Code, Code 128, EAN, DataMatrix, PDF417, and GS1 standards.
| Parameter | Type | Description |
|---|---|---|
types * | string | Comma-separated list of barcode types to detect. Choose from 40+ supported formats including QRCode, Code128, EAN13, DataMatrix, PDF417, GS1, and others. Only specified types will be decoded. |
url * | string | URL of the image or PDF document to scan for barcodes. Must be publicly accessible. |
pages | string | Optional page indices or ranges to scan (0-based, applies to PDFs only). Specify individual pages (e.g., 0,2,5), ranges (e.g., 3-7 or 10-), or reverse indices (e.g., !0 for last page). Comma-separated… |