pdfco

v1.0.2
com.mcparmory/pdfco Checked 6 hours ago Published 6 months ago

Extract 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.

ParameterTypeDescription
url *stringURL of the invoice document to process. Accepts PDF and image formats. Defaults to a sample invoice if not provided.
callbackstringWebhook URL for asynchronous delivery of parsing results. If provided, results will be sent to this endpoint upon completion instead of being returned directly.
customfieldstringJSON 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.

ParameterTypeDescription
url *stringURL of the PDF document to parse. Can be a remote URL or a local file path accessible to the service.
generatecsvheadersbooleanWhen true, includes column headers in CSV output. Only applicable when outputformat is CSV.
namestringOptional filename for the generated output file. If not specified, a default name will be assigned.
outputformatstringFormat for the extracted output data. Choose from JSON, YAML, XML, or CSV. Defaults to JSON.
pagesstringSpecifies 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…
templatestringJSON 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.

ParameterTypeDescription
id *stringThe 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.

ParameterTypeDescription
url *stringThe 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.

ParameterTypeDescription
annotationsString *stringOne 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 *stringURL of the source PDF file to edit. Defaults to a sample PDF if not provided.
fieldsStringstringValues to populate in fillable PDF form fields. Each entry is semicolon-delimited with parameters: page number, field name, and field value.
imagesStringstringOne 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…
namestringName 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.

ParameterTypeDescription
url *stringURL of the PDF file to process. Defaults to a sample agreement template if not specified.
casesensitivebooleanPerform case-sensitive text matching. When true, 'Hello' and 'hello' are treated as different strings.
namestringOutput filename for the processed PDF document.
pagesstringComma-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…
regexbooleanEnable regular expression matching for search strings. When true, searchstrings are interpreted as regex patterns rather than literal text.
replacementlimitnumberMaximum number of replacements to perform per search string. Defaults to 1 replacement per string.
replacestringsarrayArray of replacement text strings corresponding to each search string. Must have the same length as searchstrings for proper pairing.
searchstringsarrayArray 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.

ParameterTypeDescription
url *stringURL of the PDF file to modify. Accepts publicly accessible URLs or data URIs.
casesensitivebooleanPerform case-sensitive text matching. When true, 'Text' and 'text' are treated as different; when false, they match regardless of case.
namestringCustom filename for the generated output PDF. If not specified, a default name is assigned.
pagesstringComma-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…
regexbooleanEnable regular expression matching for the search string. When true, the search string is interpreted as a regex pattern; when false, performs literal text matching.
replaceimagestringBase64-encoded image data (with data URI prefix) to use as the replacement. Supports PNG, JPEG, and other common image formats.
replacementlimitnumberMaximum number of replacements to perform per search term. Use 0 to replace all occurrences; any positive integer limits replacements to that count.
searchstringstring

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.

ParameterTypeDescription
url *stringURL of the PDF document to process. Defaults to a sample agreement template if not provided.
casesensitivebooleanControl case sensitivity for text matching. When true, searches are case-sensitive; when false, matches ignore case differences.
namestringCustom file name for the generated output PDF. If not specified, a default name will be assigned.
pagesstringComma-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.
regexbooleanEnable regular expression matching for search strings. When true, searchstrings are interpreted as regex patterns instead of literal text.
replacementlimitnumberMaximum number of times each search string should be deleted per page. Defaults to 2 deletions per page.
searchstringsarrayArray 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.

ParameterTypeDescription
url *stringURL 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.
langstringLanguage code for OCR processing of scanned images. Uses standard language codes (e.g., 'eng' for English). Defaults to English.
linegroupingstringControls 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.
namestringOutput filename for the generated CSV file. Defaults to 'result.csv'.
pagesstringSpecifies 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).…
rectstringRectangular 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…
unwrapbooleanWhen 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.

ParameterTypeDescription
url *stringURL of the PDF file to convert. Accepts publicly accessible URLs pointing to PDF documents or scanned images.
langstringLanguage 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…
linegroupingstringControls 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…
namestringCustom filename for the generated JSON output file.
pagesstringSpecifies 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…
rectstringRectangular 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…
unwrapbooleanWhen 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.

ParameterTypeDescription
url *stringURL of the PDF, PNG, or JPG file to convert. Accepts publicly accessible URLs or file paths from supported cloud storage.
langstringOCR 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…
linegroupingstringControls 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.
namestringCustom filename for the generated JSON output file.
pagesstringSpecifies 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'…
rectstringRectangular 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…
unwrapbooleanWhen 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.

ParameterTypeDescription
url *stringURL of the PDF or image file to convert. Accepts PDF, PNG, and JPG formats. Defaults to a sample PDF if not provided.
langstringLanguage 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…
linegroupingstringControls 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.
namestringCustom filename for the generated text output file.
pagesstringSpecifies 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…
rectstringRectangular 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,…
unwrapbooleanWhen 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.

ParameterTypeDescription
url *stringURL of the PDF file to convert. Accepts publicly accessible PDF URLs.
namestringCustom file name for the generated text output.
pagesstringComma-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.

ParameterTypeDescription
url *stringURL of the PDF file to convert. Defaults to a sample PDF if not provided.
langstringLanguage(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…
linegroupingstringControls 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.
namestringCustom file name for the generated Excel output file.
pagesstringSpecifies 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…
rectstringRectangular 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.
unwrapbooleanWhen 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.

ParameterTypeDescription
url *stringURL of the PDF file to convert. Defaults to a sample PDF if not provided.
langstringLanguage 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…
linegroupingstringControls 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.
namestringCustom filename for the generated Excel output file. If not specified, a default name will be assigned.
pagesstringSpecifies 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)…
rectstringRectangular 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…
unwrapbooleanWhen 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.

ParameterTypeDescription
url *stringURL of the PDF file to convert. Accepts publicly accessible PDF URLs; defaults to a sample PDF if not provided.
langstringOCR 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…
linegroupingstringControls 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…
namestringCustom filename for the generated XML output file. If not specified, a default name is assigned.
pagesstringComma-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…
rectstringRectangular 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…
unwrapbooleanWhen 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.

ParameterTypeDescription
url *stringURL of the PDF file to convert. Accepts publicly accessible URLs pointing to PDF documents or scanned images (PNG, JPG).
langstringLanguage 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…
namestringCustom filename for the generated HTML output file.
pagesstringPage 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…
rectstringRectangular 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.

ParameterTypeDescription
url *stringURL of the PDF file to convert. Can be a remote URL or a local file path. Defaults to a sample encrypted PDF for testing.
namestringOutput filename for the converted JPEG image. Defaults to 'result.jpg'.
pagesstringOptional 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…
rectstringOptional 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.

ParameterTypeDescription
url *stringURL of the PDF file to convert. Defaults to a sample PDF if not provided.
namestringOptional custom file name for the generated PNG output file.
pagesstringOptional 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…
rectstringOptional 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.

ParameterTypeDescription
url *stringURL of the PDF file to convert. Accepts publicly accessible PDF URLs or file paths. Defaults to a sample PDF if not specified.
namestringOptional custom file name for the generated WebP output file.
pagesstringOptional 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…
rectstringOptional 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.

ParameterTypeDescription
url *stringURL of the PDF file to convert. Defaults to a sample PDF if not provided.
namestringCustom file name for the generated TIFF output file.
pagesstringComma-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…
rectstringRectangular 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…
unwrapbooleanWhen 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.

ParameterTypeDescription
url *stringURL of the source document file to convert. Must point to a valid DOC, DOCX, RTF, TXT, or XPS file accessible via HTTP(S).
namestringOptional 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.

ParameterTypeDescription
url *stringURL of the CSV, XLS, or XLSX file to convert. Must be a publicly accessible HTTP(S) URL pointing to the spreadsheet file.
namestringOutput 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.

ParameterTypeDescription
url *stringOne 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.
namestringOptional 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.

ParameterTypeDescription
url *stringThe URL of the webpage to convert to PDF. Defaults to the Wikipedia contact page if not specified.
donotwaitfullloadbooleanWhen true, speeds up conversion by waiting only for minimal page loading instead of full page load completion. Defaults to false for thorough rendering.
footerstringCustom HTML content to display at the bottom of every page in the PDF. Must be valid HTML format.
headerstringCustom HTML content to display at the top of every page in the PDF. Must be valid HTML format.
marginsstringSpace around the page edges in the PDF output. Specified as a measurement value (e.g., millimeters). Defaults to 5mm.
mediatypestringThe rendering mode for the conversion. Defaults to print mode for optimal PDF formatting.
namestringThe filename for the generated PDF file output.
orientationstringThe page orientation for the PDF output. Defaults to Portrait orientation.
papersizeThe paper size for the PDF document. Defaults to Letter size.
printbackgroundbooleanWhether 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.

ParameterTypeDescription
html *stringThe HTML code to convert to PDF. Can include inline styles, scripts, and other HTML elements.
templateid *integerTemplate identifier that determines the PDF layout and styling template to apply. Defaults to template 1.
donotwaitfullloadbooleanWhen true, speeds up conversion by waiting only for minimal page load instead of full page load completion. Defaults to false for thorough rendering.
footerstringCustom HTML content to display in the footer of every page. Must be valid HTML format.
headerstringCustom HTML content to display in the header of every page. Must be valid HTML format.
marginsstringPage margins specified as top, right, bottom, and left values in pixels. Defaults to 40px top/bottom and 20px left/right.
mediatypestringMedia type used for rendering, typically 'print' for print-optimized output or 'screen' for screen-optimized output. Defaults to print.
namestringOutput filename for the generated PDF document. Defaults to 'multipagedInvoiceWithQRCode.pdf'.
orientationstringPage orientation for the output PDF. Defaults to Portrait; can be set to Landscape for wider layouts.
papersizePaper size for the output PDF (e.g., Letter, A4, Legal). Defaults to Letter size.
printbackgroundbooleanWhether 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.

ParameterTypeDescription
id *stringThe 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.

ParameterTypeDescription
url *stringURL pointing to the email file (.msg or .eml) to convert. Defaults to a sample email file if not specified.
footerstringCustom HTML content to display in the footer of every page. Provide valid HTML markup.
headerstringCustom HTML content to display in the header of every page. Provide valid HTML markup.
marginsstringCustom 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.
namestringOutput filename for the generated PDF document. Defaults to 'email-with-attachments' if not specified.
orientationstringPage orientation for the output PDF: Portrait for vertical layout or Landscape for horizontal layout. Defaults to Portrait.
papersizestringPaper 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.

ParameterTypeDescription
url *stringURL of the Excel file to convert. Must be a publicly accessible URL pointing to a valid xls or xlsx file.
namestringCustom filename for the generated CSV output file. If not provided, a default name will be assigned.
worksheetindexstringZero-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.

ParameterTypeDescription
url *stringURL of the spreadsheet file to convert. Must be a publicly accessible URL pointing to an xls, xlsx, or csv file.
namestringCustom name for the generated JSON output file. If not provided, a default name will be used.
worksheetindexstringZero-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.

ParameterTypeDescription
url *stringURL of the spreadsheet file to convert. Must be a publicly accessible URL pointing to an xls, xlsx, or csv file.
namestringCustom name for the generated HTML output file. If not provided, a default name will be used.
worksheetindexstringZero-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.

ParameterTypeDescription
url *stringURL of the spreadsheet file to convert. Must be a publicly accessible URL pointing to an xls, xlsx, or csv file.
namestringCustom filename for the generated text output file. If not provided, a default name will be assigned.
worksheetindexstringZero-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.

ParameterTypeDescription
url *stringURL of the spreadsheet file to convert. Must be a publicly accessible URL pointing to an xls, xlsx, or csv file.
namestringCustom name for the generated XML output file. If not specified, a default name will be used.
worksheetindexstringZero-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.

ParameterTypeDescription
url *stringURL of the spreadsheet file to convert. Accepts XLS, XLSX, or CSV formats.
autosizebooleanWhen enabled, automatically adjusts page dimensions to fit the content. When disabled, uses the worksheet's configured page setup settings.
namestringCustom filename for the generated PDF output file.
worksheetindexstringZero-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.

ParameterTypeDescription
url *stringOne 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.
namestringThe 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.

ParameterTypeDescription
url *stringComma-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.
namestringOptional 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.

ParameterTypeDescription
url *stringURL of the PDF file to split. Accepts any publicly accessible PDF URL; defaults to a sample PDF if not provided.
namestringFilename for the output PDF file. Defaults to 'result.pdf' if not specified.
pagesstringPages 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…

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.

ParameterTypeDescription
url *stringThe 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.

ParameterTypeDescription
searchstring *stringText 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 *stringURL of the PDF file to search. Defaults to a sample PDF if not specified.
casesensitivebooleanControl search sensitivity to letter case. Set to false for case-insensitive matching; true for case-sensitive matching.
namestringName identifier for the output results.
pagesstringSpecify 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…
regexsearchbooleanEnable regular expression matching for the search string. When true, the search string is interpreted as a regex pattern; when false, performs literal string matching.
wordmatchingmodestringWord 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.

ParameterTypeDescription
url *stringURL of the PDF file to analyze. Defaults to a sample PDF if not provided.
namestringOptional custom name for the generated output file.
pagesstringComma-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.

ParameterTypeDescription
url *stringURL of the PDF or image file to process. Accepts remote URLs pointing to scanned documents or image files that need OCR conversion.
langstringLanguage code for OCR processing (e.g., 'eng' for English). Defaults to English if not specified. Use standard ISO 639-3 language codes.
namestringOutput filename for the resulting searchable PDF. Defaults to 'result.pdf' if not specified.
pagesstringComma-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…
rectstringRectangular 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.

ParameterTypeDescription
url *stringURL of the PDF file to convert. Can be a direct file URL or a cloud storage path (e.g., S3 URI).
namestringOutput filename for the resulting unsearchable PDF document.
pagesstringComma-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.

ParameterTypeDescription
url *stringURL of the PDF file to compress. Defaults to a sample PDF if not provided.
configobjectCompression configuration object controlling image optimization strategies. Allows separate settings for color, grayscale, and monochrome images, including downsampling thresholds (in DPI), compressio…
namestringOptional 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.

ParameterTypeDescription
url *stringThe 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.

ParameterTypeDescription
jobid *stringThe unique identifier of the asynchronous job whose status you want to check. This ID is returned when you initially create a background job.
forcebooleanWhen 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.

ParameterTypeDescription
url *stringURL of the document to classify. Accepts PDF, JPG, or PNG files. Defaults to a sample invoice if not provided.
casesensitivebooleanControls 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.

ParameterTypeDescription
from *stringSender email address in the format 'Name <email@domain.com>' or just 'email@domain.com'.
smtppassword *stringPassword or app-specific password for SMTP authentication. For Gmail, use an app-specific password rather than your account password.
smtpserver *stringSMTP server hostname (e.g., smtp.gmail.com for Gmail, smtp.office365.com for Outlook).
smtpusername *stringUsername or email address for SMTP authentication.
subject *stringEmail subject line.
to *stringPrimary recipient email address. Use comma-separated values for multiple recipients.
url *stringURL of the file to attach to the email. Defaults to a sample PDF from AWS S3.
bccstringBlind carbon copy recipient email address. Use comma-separated values for multiple recipients. Recipients in this field are hidden from other recipients.
ccstringCarbon copy recipient email address. Use comma-separated values for multiple recipients.
namestringCustom filename for the attachment. If not specified, the original filename from the URL will be used.
replytostringReply-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.

ParameterTypeDescription
url *stringURL 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.

ParameterTypeDescription
url *stringThe 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.

ParameterTypeDescription
url *stringThe 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.

ParameterTypeDescription
url *stringThe source URL of the file to download and upload. Must be a valid, accessible HTTP or HTTPS URL.
namestringOptional 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.

ParameterTypeDescription
url *stringThe remote URL pointing to the file to download and upload. Must be a valid URI format.
namestringOptional 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.

ParameterTypeDescription
file *stringBase64-encoded file content to upload. Must be a valid base64 string representing the file bytes.
namestringOptional 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.

ParameterTypeDescription
contenttypestringThe MIME type of the file being uploaded (e.g., application/pdf, image/png, text/plain).
namestringThe 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.

ParameterTypeDescription
url *stringURL of the PDF file to secure. Defaults to a sample PDF if not provided.
allowaccessibilitysupportbooleanWhether to allow screen readers and accessibility tools to access the document content.
allowassemblydocumentbooleanWhether to allow users to assemble or reorganize pages within the document.
allowcontentextractionbooleanWhether to allow users to copy or extract text and graphics from the document. Disabled by default.
allowfillformsbooleanWhether to allow users to fill in form fields within the document. Disabled by default.
allowmodifyannotationsbooleanWhether to allow users to add, modify, or delete annotations and comments. Disabled by default.
allowmodifydocumentbooleanWhether to allow users to modify or edit the document content. Disabled by default.
allowprintdocumentbooleanWhether to allow users to print the document. Disabled by default.
namestringOutput filename for the secured PDF document. Defaults to 'output-protected.pdf' if not specified.
ownerpasswordstringPassword required to modify document permissions and security settings. Defaults to '12345' if not specified.
printqualitystringQuality level for printing permissions. Set to 'LowResolution' by default to restrict print quality.
userpasswordstringPassword 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.

ParameterTypeDescription
url *stringThe URL of the PDF file to remove password protection from. Can be a direct file URL or a cloud storage link.
namestringThe 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).

ParameterTypeDescription
url *stringURL of the PDF file to process. Can be a direct file URL or a path to a PDF stored in cloud storage.
namestringFilename for the output PDF document. Defaults to 'result.pdf' if not specified.
pagesstringComma-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.

ParameterTypeDescription
url *stringThe URL of the PDF file to rotate. Can be a remote URL or a local file path.
anglestringThe rotation angle in degrees to apply to selected pages. Common values are 90, 180, and 270 for standard rotations.
namestringThe filename for the output PDF document after rotation is applied.
pagesstringZero-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.

ParameterTypeDescription
url *stringURL of the PDF file to auto-rotate. Accepts a publicly accessible PDF document URL.
langstringLanguage(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-…
namestringOutput 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.

ParameterTypeDescription
decorationimagestringOptional image file to embed or overlay on the generated barcode for branding or decoration purposes.
namestringThe output filename for the generated barcode image. Defaults to 'barcode.png' if not provided.
typestringThe 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.
valuestringThe 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.

ParameterTypeDescription
types *stringComma-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 *stringURL of the image or PDF document to scan for barcodes. Must be publicly accessible.
pagesstringOptional 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…