PDF.co
v0.0.13Official PDF.co MCP server: convert, merge, split, OCR, search and fill PDFs through the PDF.co API
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
pdf_to_json PDF to JSON
Convert PDF and scanned images into JSON representation with text, fonts, images, vectors, and formatting preserved using the /pdf/convert/to/json2 endpoint. Ref: https://developer.pdf.co/api/pdf-to-json/basic.md
| Parameter | Type | Description |
|---|---|---|
url * | string | URL to the source file. Supports publicly accessible links including Google Drive, Dropbox, PDF.co Built-In Files Storage. Use 'upload_file' tool to upload local files. |
api_key | string | PDF.co API key. If not provided, will use X_API_KEY environment variable. (Optional) |
expiration | Lifetime of the output link in minutes; the output file is deleted afterwards. API default is 60; the maximum depends on the plan. (Optional) | |
httppassword | string | HTTP auth password if required to access source url. (Optional) |
httpusername | string | HTTP auth user name if required to access source url. (Optional) |
lang | string | Language for OCR for scanned documents. Default is 'eng'. See PDF.co docs for supported languages. (Optional, Default: 'eng') |
line_grouping | string | Enables line grouping within table cells when set to '1'. (Optional) |
name | string | File name for the generated output. (Optional) |
pages | string | Comma-separated page indices (e.g., '0, 1, 2-' or '1, 3-7'). Use '!' for inverted page numbers (e.g., '!0' for last page). Processes all pages if None. (Optional) |
password | string | Password of the PDF file. (Optional) |
profiles | string | Extra engine options for this endpoint as a JSON object encoded in a string. The options differ per endpoint; see https://developer.pdf.co/api/profiles. (Optional) |
rect | string | Defines coordinates for extraction (e.g., '51.8,114.8,235.5,204.0'). (Optional) |
unwrap | boolean | Unwrap lines into a single line within table cells when lineGrouping is enabled. Must be true or false. (Optional) |
pdf_to_csv PDF to CSV
Convert PDF and scanned images into CSV representation with layout, columns, rows, and tables. Ref: https://developer.pdf.co/api/pdf-to-csv.md
| Parameter | Type | Description |
|---|---|---|
url * | string | URL to the source file. Supports publicly accessible links including Google Drive, Dropbox, PDF.co Built-In Files Storage. Use 'upload_file' tool to upload local files. |
api_key | string | PDF.co API key. If not provided, will use X_API_KEY environment variable. (Optional) |
expiration | Lifetime of the output link in minutes; the output file is deleted afterwards. API default is 60; the maximum depends on the plan. (Optional) | |
httppassword | string | HTTP auth password if required to access source url. (Optional) |
httpusername | string | HTTP auth user name if required to access source url. (Optional) |
lang | string | Language for OCR for scanned documents. Default is 'eng'. See PDF.co docs for supported languages. (Optional, Default: 'eng') |
line_grouping | string | Enables line grouping within table cells when set to '1'. (Optional) |
name | string | File name for the generated output. (Optional) |
pages | string | Comma-separated page indices (e.g., '0, 1, 2-' or '1, 3-7'). Use '!' for inverted page numbers (e.g., '!0' for last page). Processes all pages if None. (Optional) |
password | string | Password of the PDF file. (Optional) |
profiles | string | Extra engine options for this endpoint as a JSON object encoded in a string. The options differ per endpoint; see https://developer.pdf.co/api/profiles. (Optional) |
rect | string | Defines coordinates for extraction (e.g., '51.8,114.8,235.5,204.0'). (Optional) |
unwrap | boolean | Unwrap lines into a single line within table cells when lineGrouping is enabled. Must be true or false. (Optional) |
pdf_to_text PDF to text
Convert PDF and scanned images to text with layout preserved. Ref: https://developer.pdf.co/api/pdf-to-text/basic.md
| Parameter | Type | Description |
|---|---|---|
url * | string | URL to the source file. Supports publicly accessible links including Google Drive, Dropbox, PDF.co Built-In Files Storage. Use 'upload_file' tool to upload local files. |
api_key | string | PDF.co API key. If not provided, will use X_API_KEY environment variable. (Optional) |
expiration | Lifetime of the output link in minutes; the output file is deleted afterwards. API default is 60; the maximum depends on the plan. (Optional) | |
httppassword | string | HTTP auth password if required to access source url. (Optional) |
httpusername | string | HTTP auth user name if required to access source url. (Optional) |
lang | string | Language for OCR for scanned documents. Default is 'eng'. See PDF.co docs for supported languages. (Optional, Default: 'eng') |
line_grouping | string | Enables line grouping within table cells when set to '1'. (Optional) |
name | string | File name for the generated output. (Optional) |
pages | string | Comma-separated page indices (e.g., '0, 1, 2-' or '1, 3-7'). Use '!' for inverted page numbers (e.g., '!0' for last page). Processes all pages if None. (Optional) |
password | string | Password of the PDF file. (Optional) |
profiles | string | Extra engine options for this endpoint as a JSON object encoded in a string. The options differ per endpoint; see https://developer.pdf.co/api/profiles. (Optional) |
rect | string | Defines coordinates for extraction (e.g., '51.8,114.8,235.5,204.0'). (Optional) |
unwrap | boolean | Unwrap lines into a single line within table cells when lineGrouping is enabled. Must be true or false. (Optional) |
pdf_to_xls PDF to XLS
Convert PDF and scanned images to XLS (Excel 97-2003) format. Ref: https://developer.pdf.co/api/pdf-to-excel/xls.md
| Parameter | Type | Description |
|---|---|---|
url * | string | URL to the source file. Supports publicly accessible links including Google Drive, Dropbox, PDF.co Built-In Files Storage. Use 'upload_file' tool to upload local files. |
api_key | string | PDF.co API key. If not provided, will use X_API_KEY environment variable. (Optional) |
expiration | Lifetime of the output link in minutes; the output file is deleted afterwards. API default is 60; the maximum depends on the plan. (Optional) | |
httppassword | string | HTTP auth password if required to access source url. (Optional) |
httpusername | string | HTTP auth user name if required to access source url. (Optional) |
lang | string | Language for OCR for scanned documents. Default is 'eng'. See PDF.co docs for supported languages. (Optional, Default: 'eng') |
line_grouping | string | Enables line grouping within table cells when set to '1'. (Optional) |
name | string | File name for the generated output. (Optional) |
pages | string | Comma-separated page indices (e.g., '0, 1, 2-' or '1, 3-7'). Use '!' for inverted page numbers (e.g., '!0' for last page). Processes all pages if None. (Optional) |
password | string | Password of the PDF file. (Optional) |
profiles | string | Extra engine options for this endpoint as a JSON object encoded in a string. The options differ per endpoint; see https://developer.pdf.co/api/profiles. (Optional) |
rect | string | Defines coordinates for extraction (e.g., '51.8,114.8,235.5,204.0'). (Optional) |
unwrap | boolean | Unwrap lines into a single line within table cells when lineGrouping is enabled. Must be true or false. (Optional) |
pdf_to_xlsx PDF to XLSX
Convert PDF and scanned images to XLSX (Excel 2007+) format. Ref: https://developer.pdf.co/api/pdf-to-excel/xlsx.md
| Parameter | Type | Description |
|---|---|---|
url * | string | URL to the source file. Supports publicly accessible links including Google Drive, Dropbox, PDF.co Built-In Files Storage. Use 'upload_file' tool to upload local files. |
api_key | string | PDF.co API key. If not provided, will use X_API_KEY environment variable. (Optional) |
expiration | Lifetime of the output link in minutes; the output file is deleted afterwards. API default is 60; the maximum depends on the plan. (Optional) | |
httppassword | string | HTTP auth password if required to access source url. (Optional) |
httpusername | string | HTTP auth user name if required to access source url. (Optional) |
lang | string | Language for OCR for scanned documents. Default is 'eng'. See PDF.co docs for supported languages. (Optional, Default: 'eng') |
line_grouping | string | Enables line grouping within table cells when set to '1'. (Optional) |
name | string | File name for the generated output. (Optional) |
pages | string | Comma-separated page indices (e.g., '0, 1, 2-' or '1, 3-7'). Use '!' for inverted page numbers (e.g., '!0' for last page). Processes all pages if None. (Optional) |
password | string | Password of the PDF file. (Optional) |
profiles | string | Extra engine options for this endpoint as a JSON object encoded in a string. The options differ per endpoint; see https://developer.pdf.co/api/profiles. (Optional) |
rect | string | Defines coordinates for extraction (e.g., '51.8,114.8,235.5,204.0'). (Optional) |
unwrap | boolean | Unwrap lines into a single line within table cells when lineGrouping is enabled. Must be true or false. (Optional) |
pdf_to_xml PDF to XML
Convert PDF and scanned images to XML format. Ref: https://developer.pdf.co/api/pdf-to-xml.md
| Parameter | Type | Description |
|---|---|---|
url * | string | URL to the source file. Supports publicly accessible links including Google Drive, Dropbox, PDF.co Built-In Files Storage. Use 'upload_file' tool to upload local files. |
api_key | string | PDF.co API key. If not provided, will use X_API_KEY environment variable. (Optional) |
expiration | Lifetime of the output link in minutes; the output file is deleted afterwards. API default is 60; the maximum depends on the plan. (Optional) | |
httppassword | string | HTTP auth password if required to access source url. (Optional) |
httpusername | string | HTTP auth user name if required to access source url. (Optional) |
lang | string | Language for OCR for scanned documents. Default is 'eng'. See PDF.co docs for supported languages. (Optional, Default: 'eng') |
line_grouping | string | Enables line grouping within table cells when set to '1'. (Optional) |
name | string | File name for the generated output. (Optional) |
pages | string | Comma-separated page indices (e.g., '0, 1, 2-' or '1, 3-7'). Use '!' for inverted page numbers (e.g., '!0' for last page). Processes all pages if None. (Optional) |
password | string | Password of the PDF file. (Optional) |
profiles | string | Extra engine options for this endpoint as a JSON object encoded in a string. The options differ per endpoint; see https://developer.pdf.co/api/profiles. (Optional) |
rect | string | Defines coordinates for extraction (e.g., '51.8,114.8,235.5,204.0'). (Optional) |
unwrap | boolean | Unwrap lines into a single line within table cells when lineGrouping is enabled. Must be true or false. (Optional) |
pdf_to_html PDF to HTML
Convert PDF and scanned images to HTML format. Ref: https://developer.pdf.co/api/pdf-to-html.md
| Parameter | Type | Description |
|---|---|---|
url * | string | URL to the source file. Supports publicly accessible links including Google Drive, Dropbox, PDF.co Built-In Files Storage. Use 'upload_file' tool to upload local files. |
api_key | string | PDF.co API key. If not provided, will use X_API_KEY environment variable. (Optional) |
expiration | Lifetime of the output link in minutes; the output file is deleted afterwards. API default is 60; the maximum depends on the plan. (Optional) | |
httppassword | string | HTTP auth password if required to access source url. (Optional) |
httpusername | string | HTTP auth user name if required to access source url. (Optional) |
lang | string | Language for OCR for scanned documents. Default is 'eng'. See PDF.co docs for supported languages. (Optional, Default: 'eng') |
line_grouping | string | Enables line grouping within table cells when set to '1'. (Optional) |
name | string | File name for the generated output. (Optional) |
pages | string | Comma-separated page indices (e.g., '0, 1, 2-' or '1, 3-7'). Use '!' for inverted page numbers (e.g., '!0' for last page). Processes all pages if None. (Optional) |
password | string | Password of the PDF file. (Optional) |
profiles | string | Extra engine options for this endpoint as a JSON object encoded in a string. The options differ per endpoint; see https://developer.pdf.co/api/profiles. (Optional) |
rect | string | Defines coordinates for extraction (e.g., '51.8,114.8,235.5,204.0'). (Optional) |
unwrap | boolean | Unwrap lines into a single line within table cells when lineGrouping is enabled. Must be true or false. (Optional) |
pdf_to_image PDF to image
Convert PDF and scanned images to various image formats (JPG, PNG, WebP, TIFF). Ref: - https://developer.pdf.co/api/pdf-to-image/jpg.md - https://developer.pdf.co/api/pdf-to-image/png.md - https://developer.pdf.co/api/pdf-to-image/webp.md - https://developer.pdf.co/api/pdf-to-image/tiff.md
| Parameter | Type | Description |
|---|---|---|
url * | string | URL to the source file. Supports publicly accessible links including Google Drive, Dropbox, PDF.co Built-In Files Storage. Use 'upload_file' tool to upload local files. |
api_key | string | PDF.co API key. If not provided, will use X_API_KEY environment variable. (Optional) |
expiration | Lifetime of the output link in minutes; the output file is deleted afterwards. API default is 60; the maximum depends on the plan. (Optional) | |
httppassword | string | HTTP auth password if required to access source url. (Optional) |
httpusername | string | HTTP auth user name if required to access source url. (Optional) |
lang | string | Language for OCR for scanned documents. Default is 'eng'. See PDF.co docs for supported languages. (Optional, Default: 'eng') |
line_grouping | string | Enables line grouping within table cells when set to '1'. (Optional) |
name | string | File name for the generated output. (Optional) |
pages | string | Comma-separated page indices (e.g., '0, 1, 2-' or '1, 3-7'). Use '!' for inverted page numbers (e.g., '!0' for last page). Processes all pages if None. (Optional) |
password | string | Password of the PDF file. (Optional) |
profiles | string | Extra engine options for this endpoint as a JSON object encoded in a string. The options differ per endpoint; see https://developer.pdf.co/api/profiles. (Optional) |
rect | string | Defines coordinates for extraction (e.g., '51.8,114.8,235.5,204.0'). (Optional) |
type | string | Type of image to convert to. (jpg, png, webp, tiff) (Optional) |
unwrap | boolean | Unwrap lines into a single line within table cells when lineGrouping is enabled. Must be true or false. (Optional) |
document_to_pdf Document to PDF
Convert various document types (DOC, DOCX, RTF, TXT, XLS, XLSX, CSV, HTML, JPG, PNG, TIFF, WEBP) into PDF. Ref: https://developer.pdf.co/api/pdf-from-document/doc.md
| Parameter | Type | Description |
|---|---|---|
url * | string | URL to the source file (DOC, DOCX, RTF, TXT, XPS). Supports publicly accessible links including Google Drive, Dropbox, PDF.co Built-In Files Storage. Use 'upload_file' tool to upload local files. |
api_key | string | PDF.co API key. If not provided, will use X_API_KEY environment variable. (Optional) |
autosize | boolean | Controls automatic page sizing. If true, page dimensions adjust to content. If false, uses worksheet’s page setup. (Optional) |
expiration | Lifetime of the output link in minutes; the output file is deleted afterwards. API default is 60; the maximum depends on the plan. (Optional) | |
httppassword | string | HTTP auth password if required to access source url. (Optional) |
httpusername | string | HTTP auth user name if required to access source url. (Optional) |
name | string | File name for the generated output. (Optional) |
pages | string | Comma-separated page indices (e.g., '0, 1, 2-' or '1, 3-7'). Use '!' for inverted page numbers (e.g., '!0' for last page). Processes all pages if None. (Optional) |
profiles | string | Extra engine options for this endpoint as a JSON object encoded in a string. The options differ per endpoint; see https://developer.pdf.co/api/profiles. (Optional) |
csv_to_pdf CSV to PDF
Convert CSV or spreadsheet files (XLS, XLSX) to PDF. Ref: https://developer.pdf.co/api/pdf-from-document/csv.md
| Parameter | Type | Description |
|---|---|---|
url * | string | URL to the source file (CSV, XLS, XLSX). Supports publicly accessible links including Google Drive, Dropbox, PDF.co Built-In Files Storage. Use 'upload_file' tool to upload local files. |
api_key | string | PDF.co API key. If not provided, will use X_API_KEY environment variable. (Optional) |
autosize | boolean | Controls automatic page sizing. If true, page dimensions adjust to content. If false, uses worksheet’s page setup. (Optional) |
expiration | Lifetime of the output link in minutes; the output file is deleted afterwards. API default is 60; the maximum depends on the plan. (Optional) | |
httppassword | string | HTTP auth password if required to access source url. (Optional) |
httpusername | string | HTTP auth user name if required to access source url. (Optional) |
name | string | File name for the generated output. (Optional) |
pages | string | Comma-separated page indices (e.g., '0, 1, 2-' or '1, 3-7'). Use '!' for inverted page numbers (e.g., '!0' for last page). Processes all pages if None. (Optional) |
profiles | string | Extra engine options for this endpoint as a JSON object encoded in a string. The options differ per endpoint; see https://developer.pdf.co/api/profiles. (Optional) |
image_to_pdf Image to PDF
Convert various image formats (JPG, PNG, TIFF) to PDF. Ref: https://developer.pdf.co/api/pdf-from-image.md ```
| Parameter | Type | Description |
|---|---|---|
url * | string | URL to the source file (JPG, PNG, TIFF). Multiple files are supported (by providing a comma-separated list of URLs). Supports publicly accessible links including Google Drive, Dropbox, PDF.co Built-In… |
api_key | string | PDF.co API key. If not provided, will use X_API_KEY environment variable. (Optional) |
expiration | Lifetime of the output link in minutes; the output file is deleted afterwards. API default is 60; the maximum depends on the plan. (Optional) | |
httppassword | string | HTTP auth password if required to access source url. (Optional) |
httpusername | string | HTTP auth user name if required to access source url. (Optional) |
name | string | File name for the generated output. (Optional) |
pages | string | Comma-separated page indices (e.g., '0, 1, 2-' or '1, 3-7'). Use '!' for inverted page numbers (e.g., '!0' for last page). Processes all pages if None. (Optional) |
profiles | string | Extra engine options for this endpoint as a JSON object encoded in a string. The options differ per endpoint; see https://developer.pdf.co/api/profiles. (Optional) |
webpage_to_pdf Web page to PDF
Convert external webpage URL to PDF. Ref: https://developer.pdf.co/api/pdf-from-url.md The header and footer parameters can contain valid HTML markup with the following classes used to inject printing values into them: - date: formatted print date - title: document title - url: document location - pageNumber: current page number - totalPages: total pages in the document - img: tag is supported in both the header and footer parameter, provided that the src attribute is specified as a base64-encoded string. For example, the following markup will generate Page N of NN page numbering: ```html <sp…
| Parameter | Type | Description |
|---|---|---|
url * | string | URL to the source file (external webpage URL). |
DoNotWaitFullLoad | boolean | false by default. Set to true to skip waiting for full load (like full video load etc. that may affect the total conversion time). (Optional) |
api_key | string | PDF.co API key. If not provided, will use X_API_KEY environment variable. (Optional) |
expiration | Lifetime of the output link in minutes; the output file is deleted afterwards. API default is 60; the maximum depends on the plan. (Optional) | |
footer | string | User definable HTML for the footer to be applied on every page footer. (Optional) |
header | string | User definable HTML for the header to be applied on every page header. (Optional) |
httppassword | string | HTTP auth password if required to access source url. (Optional) |
httpusername | string | HTTP auth user name if required to access source url. (Optional) |
margins | string | Set to CSS style margins like 10px, 5mm, 5in for all sides or 5px 5px 5px 5px (the order of margins is top, right, bottom, left). (Optional) |
mediaType | string | Uses print by default. Set to screen to convert HTML as it appears in a browser or print to convert as it appears for printing or none to set none as mediaType for CSS styles. (Optional) |
name | string | File name for the generated output. (Optional) |
orientation | string | Set to Portrait or Landscape. Portrait is set by default. (Optional) |
paperSize | string | A4 is set by default. Can be Letter, Legal, Tabloid, Ledger, A0, A1, A2, A3, A4, A5, A6 or a custom size. Custom size can be set in px (pixels), mm or in (inches) with width and height separated by sp… |
printBackground | boolean | true by default. Set to false to disable printing of background. (Optional) |
profiles | string | Extra engine options for this endpoint as a JSON object encoded in a string. The options differ per endpoint; see https://developer.pdf.co/api/profiles. (Optional) |
html_to_pdf HTML to PDF
Convert HTML to PDF. Ref: https://developer.pdf.co/api/pdf-from-html/convert.md The header and footer parameters can contain valid HTML markup with the following classes used to inject printing values into them: - date: formatted print date - title: document title - url: document location - pageNumber: current page number - totalPages: total pages in the document - img: tag is supported in both the header and footer parameter, provided that the src attribute is specified as a base64-encoded string. For example, the following markup will generate Page N of NN page numbering: ```html <span styl…
| Parameter | Type | Description |
|---|---|---|
html * | string | Input HTML code to be converted. To convert the link to a PDF use the /pdf/convert/from/url endpoint instead. If it is a local file, just pass the file content as a string. |
DoNotWaitFullLoad | boolean | false by default. Set to true to skip waiting for full load (like full video load etc. that may affect the total conversion time). (Optional) |
api_key | string | PDF.co API key. If not provided, will use X_API_KEY environment variable. (Optional) |
expiration | Lifetime of the output link in minutes; the output file is deleted afterwards. API default is 60; the maximum depends on the plan. (Optional) | |
footer | string | User definable HTML for the footer to be applied on every page footer. (Optional) |
header | string | User definable HTML for the header to be applied on every page header. (Optional) |
httppassword | string | HTTP auth password if required to access source url. (Optional) |
httpusername | string | HTTP auth user name if required to access source url. (Optional) |
margins | string | Set to CSS style margins like 10px, 5mm, 5in for all sides or 5px 5px 5px 5px (the order of margins is top, right, bottom, left). (Optional) |
mediaType | string | Uses print by default. Set to screen to convert HTML as it appears in a browser or print to convert as it appears for printing or none to set none as mediaType for CSS styles. (Optional) |
name | string | File name for the generated output. (Optional) |
orientation | string | Set to Portrait or Landscape. Portrait is set by default. (Optional) |
paperSize | string | A4 is set by default. Can be Letter, Legal, Tabloid, Ledger, A0, A1, A2, A3, A4, A5, A6 or a custom size. Custom size can be set in px (pixels), mm or in (inches) with width and height separated by sp… |
printBackground | boolean | true by default. Set to false to disable printing of background. (Optional) |
profiles | string | Extra engine options for this endpoint as a JSON object encoded in a string. The options differ per endpoint; see https://developer.pdf.co/api/profiles. (Optional) |
email_to_pdf Email to PDF
Convert email to PDF. Ref: https://developer.pdf.co/api/pdf-from-email.md
| Parameter | Type | Description |
|---|---|---|
url * | string | URL to the source file (MSG, EML). Supports publicly accessible links including Google Drive, Dropbox, PDF.co Built-In Files Storage. Use 'upload_file' tool to upload local files. |
api_key | string | PDF.co API key. If not provided, will use X_API_KEY environment variable. (Optional) |
convertAttachments | boolean | Set to false if you don’t want to convert attachments from the original email and want to embed them as original files (as embedded PDF attachments). Converts attachments that are supported by the P… |
embedAttachments | boolean | Set to true to automatically embeds all attachments from original input email MSG or EML files into the final output PDF. Set it to false if you don’t want to embed attachments so it will convert on… |
expiration | Lifetime of the output link in minutes; the output file is deleted afterwards. API default is 60; the maximum depends on the plan. (Optional) | |
margins | string | Set to CSS style margins like 10px, 5mm, 5in for all sides or 5px 5px 5px 5px (the order of margins is top, right, bottom, left). (Optional) |
orientation | string | Set to Portrait or Landscape. Portrait is set by default. (Optional) |
paperSize | string | A4 is set by default. Can be Letter, Legal, Tabloid, Ledger, A0, A1, A2, A3, A4, A5, A6 or a custom size. Custom size can be set in px (pixels), mm or in (inches) with width and height separated by sp… |
profiles | string | Extra engine options for this endpoint as a JSON object encoded in a string. The options differ per endpoint; see https://developer.pdf.co/api/profiles. (Optional) |
excel_to_csv Excel to CSV
Convert Excel(XLS, XLSX) to CSV. Retiring on January 5, 2027: the underlying PDF.co API endpoint is being discontinued. The tool keeps working until that date and will be removed afterwards. Ref: https://developer.pdf.co/api/convert-from-excel/csv.md
| Parameter | Type | Description |
|---|---|---|
url * | string | URL to the source file (XLS, XLSX). Supports publicly accessible links including Google Drive, Dropbox, PDF.co Built-In Files Storage. Use 'upload_file' tool to upload local files. |
api_key | string | PDF.co API key. If not provided, will use X_API_KEY environment variable. (Optional) |
expiration | Lifetime of the output link in minutes; the output file is deleted afterwards. API default is 60; the maximum depends on the plan. (Optional) | |
httppassword | string | HTTP auth password if required to access source url. (Optional) |
httpusername | string | HTTP auth user name if required to access source url. (Optional) |
name | string | File name for the generated output. (Optional) |
profiles | string | Extra engine options for this endpoint as a JSON object encoded in a string. The options differ per endpoint; see https://developer.pdf.co/api/profiles. (Optional) |
worksheetIndex | string | Index of the worksheet to convert. (Optional) |
excel_to_json Excel to JSON
Convert Excel(XLS, XLSX) to JSON. Retiring on January 5, 2027: the underlying PDF.co API endpoint is being discontinued. The tool keeps working until that date and will be removed afterwards. Ref: https://developer.pdf.co/api/convert-from-excel/json.md
| Parameter | Type | Description |
|---|---|---|
url * | string | URL to the source file (XLS, XLSX). Supports publicly accessible links including Google Drive, Dropbox, PDF.co Built-In Files Storage. Use 'upload_file' tool to upload local files. |
api_key | string | PDF.co API key. If not provided, will use X_API_KEY environment variable. (Optional) |
expiration | Lifetime of the output link in minutes; the output file is deleted afterwards. API default is 60; the maximum depends on the plan. (Optional) | |
httppassword | string | HTTP auth password if required to access source url. (Optional) |
httpusername | string | HTTP auth user name if required to access source url. (Optional) |
name | string | File name for the generated output. (Optional) |
profiles | string | Extra engine options for this endpoint as a JSON object encoded in a string. The options differ per endpoint; see https://developer.pdf.co/api/profiles. (Optional) |
worksheetIndex | string | Index of the worksheet to convert. (Optional) |
excel_to_html Excel to HTML
Convert Excel(XLS, XLSX) to HTML. Retiring on January 5, 2027: the underlying PDF.co API endpoint is being discontinued. The tool keeps working until that date and will be removed afterwards. Ref: https://developer.pdf.co/api/convert-from-excel/html.md
| Parameter | Type | Description |
|---|---|---|
url * | string | URL to the source file (XLS, XLSX). Supports publicly accessible links including Google Drive, Dropbox, PDF.co Built-In Files Storage. Use 'upload_file' tool to upload local files. |
api_key | string | PDF.co API key. If not provided, will use X_API_KEY environment variable. (Optional) |
expiration | Lifetime of the output link in minutes; the output file is deleted afterwards. API default is 60; the maximum depends on the plan. (Optional) | |
httppassword | string | HTTP auth password if required to access source url. (Optional) |
httpusername | string | HTTP auth user name if required to access source url. (Optional) |
name | string | File name for the generated output. (Optional) |
profiles | string | Extra engine options for this endpoint as a JSON object encoded in a string. The options differ per endpoint; see https://developer.pdf.co/api/profiles. (Optional) |
worksheetIndex | string | Index of the worksheet to convert. (Optional) |
excel_to_txt Excel to text
Convert Excel(XLS, XLSX) to TXT. Retiring on January 5, 2027: the underlying PDF.co API endpoint is being discontinued. The tool keeps working until that date and will be removed afterwards. Ref: https://developer.pdf.co/api/convert-from-excel/text.md
| Parameter | Type | Description |
|---|---|---|
url * | string | URL to the source file (XLS, XLSX). Supports publicly accessible links including Google Drive, Dropbox, PDF.co Built-In Files Storage. Use 'upload_file' tool to upload local files. |
api_key | string | PDF.co API key. If not provided, will use X_API_KEY environment variable. (Optional) |
expiration | Lifetime of the output link in minutes; the output file is deleted afterwards. API default is 60; the maximum depends on the plan. (Optional) | |
httppassword | string | HTTP auth password if required to access source url. (Optional) |
httpusername | string | HTTP auth user name if required to access source url. (Optional) |
name | string | File name for the generated output. (Optional) |
profiles | string | Extra engine options for this endpoint as a JSON object encoded in a string. The options differ per endpoint; see https://developer.pdf.co/api/profiles. (Optional) |
worksheetIndex | string | Index of the worksheet to convert. (Optional) |
excel_to_xml Excel to XML
Convert Excel(XLS, XLSX) to XML. Retiring on January 5, 2027: the underlying PDF.co API endpoint is being discontinued. The tool keeps working until that date and will be removed afterwards. Ref: https://developer.pdf.co/api/convert-from-excel/xml.md
| Parameter | Type | Description |
|---|---|---|
url * | string | URL to the source file (XLS, XLSX). Supports publicly accessible links including Google Drive, Dropbox, PDF.co Built-In Files Storage. Use 'upload_file' tool to upload local files. |
api_key | string | PDF.co API key. If not provided, will use X_API_KEY environment variable. (Optional) |
expiration | Lifetime of the output link in minutes; the output file is deleted afterwards. API default is 60; the maximum depends on the plan. (Optional) | |
httppassword | string | HTTP auth password if required to access source url. (Optional) |
httpusername | string | HTTP auth user name if required to access source url. (Optional) |
name | string | File name for the generated output. (Optional) |
profiles | string | Extra engine options for this endpoint as a JSON object encoded in a string. The options differ per endpoint; see https://developer.pdf.co/api/profiles. (Optional) |
worksheetIndex | string | Index of the worksheet to convert. (Optional) |
excel_to_pdf Excel to PDF
Convert Excel(XLS, XLSX) to PDF. Ref: https://developer.pdf.co/api/convert-from-excel/pdf.md
| Parameter | Type | Description |
|---|---|---|
url * | string | URL to the source file (XLS, XLSX). Supports publicly accessible links including Google Drive, Dropbox, PDF.co Built-In Files Storage. Use 'upload_file' tool to upload local files. |
api_key | string | PDF.co API key. If not provided, will use X_API_KEY environment variable. (Optional) |
expiration | Lifetime of the output link in minutes; the output file is deleted afterwards. API default is 60; the maximum depends on the plan. (Optional) | |
httppassword | string | HTTP auth password if required to access source url. (Optional) |
httpusername | string | HTTP auth user name if required to access source url. (Optional) |
name | string | File name for the generated output. (Optional) |
profiles | string | Extra engine options for this endpoint as a JSON object encoded in a string. The options differ per endpoint; see https://developer.pdf.co/api/profiles. (Optional) |
worksheetIndex | string | Index of the worksheet to convert. (Optional) |
pdf_to_pdfa PDF to PDF/A
Convert a PDF to PDF/A-3b and validate the result with veraPDF. The job always runs in the background: this returns a job ID, and the result comes from 'wait_job_completion'. A result that is not compliant still finishes as success, so check `isCompliant` and `validationReportUrl` in the result. Ref: https://developer.pdf.co/api/pdf-to-pdfa.md
| Parameter | Type | Description |
|---|---|---|
url * | string | URL to the source PDF file. Supports publicly accessible links including Google Drive, Dropbox, PDF.co Built-In Files Storage. Use 'upload_file' tool to upload local files. |
api_key | string | PDF.co API key. If not provided, will use X_API_KEY environment variable. (Optional) |
expiration | Lifetime of the output and report links in minutes; the files are deleted afterwards. API default is 60; capped at seven days for PDF/A. (Optional) | |
name | string | File name for the converted PDF. The validation report is named after it. (Optional) |
pdf_to_e_invoice PDF to e-invoice
Create a Factur-X or ZUGFeRD e-invoice by embedding invoice XML into a PDF, converting it to PDF/A-3 and validating it with veraPDF and Mustang. The job always runs in the background: this returns a job ID, and the result comes from 'wait_job_completion'. An e-invoice that fails validation ends as a failed job and the charge is refunded; `validationReportUrl` in the result explains why. Ref: https://developer.pdf.co/api/pdf-to-e-invoice.md
| Parameter | Type | Description |
|---|---|---|
profile * | string | Invoice profile family: 'facturx' (Factur-X) or 'zugferd' (ZUGFeRD). |
url * | string | URL to the source PDF file. Supports publicly accessible links including Google Drive, Dropbox, PDF.co Built-In Files Storage. Use 'upload_file' tool to upload local files. |
xml_url * | string | URL to the invoice XML (CrossIndustryInvoice) to embed. Use a public or temporary presigned URL; the HTTP auth inputs do not apply to it. The XML decides the conformance level (MINIMUM, BASIC WL, BASI… |
api_key | string | PDF.co API key. If not provided, will use X_API_KEY environment variable. (Optional) |
expiration | Lifetime of the output and report links in minutes; the files are deleted afterwards. API default is 60. (Optional) | |
httppassword | string | HTTP auth password for the source PDF URL only. (Optional) |
httpusername | string | HTTP auth user name for the source PDF URL only. (Optional) |
name | string | File name for the output PDF. (Optional) |
markdown_to_pdf Markdown to PDF
Convert Markdown into a PDF (Letter portrait, fixed stylesheet) with tables, code blocks, footnotes, images and CJK text. The job always runs in the background: this returns a job ID, and the result comes from 'wait_job_completion'. A successful result can carry `warnings` (for example an image that could not be loaded was omitted); check them before using the PDF. Ref: https://developer.pdf.co/api/pdf-from-markdown.md
| Parameter | Type | Description |
|---|---|---|
api_key | string | PDF.co API key. If not provided, will use X_API_KEY environment variable. (Optional) |
expiration | Lifetime of the output link in minutes, from 1 to 10080; the file is deleted afterwards. API default is 60. (Optional) | |
markdown | string | Markdown text to convert (UTF-8, up to 4 MiB). Provide either this or 'url', not both. Use absolute URLs for images; relative paths cannot be resolved from inline text. |
name | string | File name for the output PDF. Defaults to markdown.pdf. (Optional) |
url | string | Public HTTP(S) URL to a UTF-8 Markdown file (up to 4 MiB). Provide either this or 'markdown', not both. Relative images and links resolve against this URL. |
get_job_check Check job status
Check the status and results of a job Status can be: - working: background job is currently in work or does not exist. - success: background job was successfully finished. - failed: background job failed for some reason (see message for more details). - aborted: background job was aborted. - unknown: unknown background job id. Available only when force is set to true for input request.
| Parameter | Type | Description |
|---|---|---|
job_id * | string | The ID of the job to get the status of |
api_key | string | PDF.co API key. If not provided, will use X_API_KEY environment variable. (Optional) |
wait_job_completion Wait for job completion
Wait for a job to complete
| Parameter | Type | Description |
|---|---|---|
job_id * | string | The ID of the job to get the status of |
api_key | string | PDF.co API key. If not provided, will use X_API_KEY environment variable. (Optional) |
interval | integer | The interval to check the status of the job (seconds) |
timeout | integer | The timeout to wait for the job to complete (seconds) |
upload_file Upload file
Upload a file to the PDF.co API
| Parameter | Type | Description |
|---|---|---|
file_path * | string | The absolute path to the file to upload |
api_key | string | PDF.co API key. If not provided, will use X_API_KEY environment variable. (Optional) |
pdf_merge Merge PDFs
Merge PDF from two or more PDF, DOC, XLS, images, even ZIP with documents and images into a new PDF. Ref: https://developer.pdf.co/api/merge/various-files.md
| Parameter | Type | Description |
|---|---|---|
url * | string | URLs to the source files as a comma-separated list. Supports PDF, DOC, DOCX, RTF, TXT, XLS, XLSX, CSV, images, and more. Supports publicly accessible links including Google Drive, Dropbox, PDF.co Buil… |
api_key | string | PDF.co API key. If not provided, will use X_API_KEY environment variable. (Optional) |
expiration | Lifetime of the output link in minutes; the output file is deleted afterwards. API default is 60; the maximum depends on the plan. (Optional) | |
httppassword | string | HTTP auth password if required to access source url. (Optional) |
httpusername | string | HTTP auth user name if required to access source url. (Optional) |
name | string | File name for the generated output. (Optional) |
profiles | string | Extra engine options for this endpoint as a JSON object encoded in a string. The options differ per endpoint; see https://developer.pdf.co/api/profiles. (Optional) |
pdf_split Split PDF
Split a PDF into multiple PDF files using page indexes or page ranges. Ref: https://developer.pdf.co/api/pdf-split/by-pages.md
| Parameter | Type | Description |
|---|---|---|
pages * | string | Comma-separated indices of pages (or page ranges) that you want to use. The first-page index is 1. For example: '1,3,5-7' or '1-2,4-'. Use '*' to split every page into separate files. |
url * | string | URL to the source PDF file. Supports publicly accessible links including Google Drive, Dropbox, PDF.co Built-In Files Storage. Use 'upload_file' tool to upload local files. |
api_key | string | PDF.co API key. If not provided, will use X_API_KEY environment variable. (Optional) |
expiration | Lifetime of the output link in minutes; the output file is deleted afterwards. API default is 60; the maximum depends on the plan. (Optional) | |
httppassword | string | HTTP auth password if required to access source url. (Optional) |
httpusername | string | HTTP auth user name if required to access source url. (Optional) |
name | string | Base file name for the generated output files. (Optional) |
password | string | Password of the PDF file. (Optional) |
profiles | string | Extra engine options for this endpoint as a JSON object encoded in a string. The options differ per endpoint; see https://developer.pdf.co/api/profiles. (Optional) |
read_pdf_forms_info Read PDF form fields
Extracts information about fillable PDF fields from an input PDF file. Ref: https://developer.pdf.co/api/forms/info-reader.md
| Parameter | Type | Description |
|---|---|---|
url * | string | URL to the source PDF file. Supports publicly accessible links including Google Drive, Dropbox, PDF.co Built-In Files Storage. Use 'upload_file' tool to upload local files. |
api_key | string | PDF.co API key. If not provided, will use X_API_KEY environment variable. (Optional) |
expiration | Lifetime of the output link in minutes; the output file is deleted afterwards. API default is 60; the maximum depends on the plan. (Optional) | |
httppassword | string | HTTP auth password if required to access source url. (Optional) |
httpusername | string | HTTP auth user name if required to access source url. (Optional) |
password | string | Password of PDF file. (Optional) |
profiles | string | Extra engine options for this endpoint as a JSON object encoded in a string. The options differ per endpoint; see https://developer.pdf.co/api/profiles. (Optional) |
fill_forms Fill PDF forms
Fill existing form fields in a PDF document. Example fields format: [ { "fieldName": "field_name_from_form_info", "pages": "1", "text": "Value to fill" } ] Use 'read_pdf_forms_info' first to get the fieldName values of the form. Ref: https://developer.pdf.co/api/pdf-add.md
| Parameter | Type | Description |
|---|---|---|
fields * | array | List of fields to fill. Each field is a dict with 'fieldName', 'pages', and 'text' properties. |
url * | string | URL to the source PDF file. Supports publicly accessible links including Google Drive, Dropbox, PDF.co Built-In Files Storage. Use 'upload_file' tool to upload local files. |
api_key | string | PDF.co API key. If not provided, will use X_API_KEY environment variable. (Optional) |
expiration | Lifetime of the output link in minutes; the output file is deleted afterwards. API default is 60; the maximum depends on the plan. (Optional) | |
httppassword | string | HTTP auth password if required to access source url. (Optional) |
httpusername | string | HTTP auth user name if required to access source url. (Optional) |
name | string | File name for the generated output. (Optional) |
profiles | string | Extra engine options for this endpoint as a JSON object encoded in a string. The options differ per endpoint; see https://developer.pdf.co/api/profiles. (Optional) |
create_fillable_forms Create fillable PDF forms
Create new fillable form elements in a PDF document. Example annotations format: [ { "text": "prefilled text", "x": 10, "y": 30, "size": 12, "pages": "0-", "type": "TextField", "id": "textfield1" }, { "x": 100, "y": 150, "size": 12, "pages": "0-", "type": "Checkbox", "id": "checkbox1" } ] Ref: https://developer.pdf.co/api/pdf-add.md
| Parameter | Type | Description |
|---|---|---|
annotations * | array | List of form annotations to create. Each annotation can be a textfield or checkbox with properties like 'x', 'y', 'size', 'pages', 'type', and 'id'. |
url * | string | URL to the source PDF file. Supports publicly accessible links including Google Drive, Dropbox, PDF.co Built-In Files Storage. Use 'upload_file' tool to upload local files. |
api_key | string | PDF.co API key. If not provided, will use X_API_KEY environment variable. (Optional) |
expiration | Lifetime of the output link in minutes; the output file is deleted afterwards. API default is 60; the maximum depends on the plan. (Optional) | |
httppassword | string | HTTP auth password if required to access source url. (Optional) |
httpusername | string | HTTP auth user name if required to access source url. (Optional) |
name | string | File name for the generated output. (Optional) |
profiles | string | Extra engine options for this endpoint as a JSON object encoded in a string. The options differ per endpoint; see https://developer.pdf.co/api/profiles. (Optional) |
find_text Find text in PDF
Find text in PDF and get coordinates. Supports regular expressions. Ref: https://developer.pdf.co/api/pdf-find/basic.md
| Parameter | Type | Description |
|---|---|---|
searchString * | string | Text to search. Can support regular expressions if regexSearch is set to True. |
url * | string | URL to the source PDF file. Supports publicly accessible links including Google Drive, Dropbox, PDF.co Built-In Files Storage. Use 'upload_file' tool to upload local files. |
api_key | string | PDF.co API key. If not provided, will use X_API_KEY environment variable. (Optional) |
expiration | Lifetime of the output link in minutes; the output file is deleted afterwards. API default is 60; the maximum depends on the plan. (Optional) | |
httppassword | string | HTTP auth password if required to access source url. (Optional) |
httpusername | string | HTTP auth user name if required to access source url. (Optional) |
pages | string | Comma-separated list of page indices (or ranges) to process. Leave empty for all pages. Example: '0,2-5,7-'. The first-page index is 0. (Optional) |
password | string | Password of the PDF file. (Optional) |
profiles | string | Extra engine options for this endpoint as a JSON object encoded in a string. The options differ per endpoint; see https://developer.pdf.co/api/profiles. (Optional) |
regexSearch | boolean | Set to True to enable regular expressions in the search string. (Optional) |
wordMatchingMode | string | Values can be either SmartMatch, ExactMatch, or None. (Optional) |
find_table Find tables in PDF
Find tables in PDF and get their coordinates. Ref: https://developer.pdf.co/api/pdf-find/table.md
| Parameter | Type | Description |
|---|---|---|
url * | string | URL to the source PDF file. Supports publicly accessible links including Google Drive, Dropbox, PDF.co Built-In Files Storage. Use 'upload_file' tool to upload local files. |
api_key | string | PDF.co API key. If not provided, will use X_API_KEY environment variable. (Optional) |
expiration | Lifetime of the output link in minutes; the output file is deleted afterwards. API default is 60; the maximum depends on the plan. (Optional) | |
httppassword | string | HTTP auth password if required to access source url. (Optional) |
httpusername | string | HTTP auth user name if required to access source url. (Optional) |
pages | string | Comma-separated list of page indices (or ranges) to process. Leave empty for all pages. Example: '0,2-5,7-'. The first-page index is 0. (Optional) |
password | string | Password of the PDF file. (Optional) |
profiles | string | Extra engine options for this endpoint as a JSON object encoded in a string. The options differ per endpoint; see https://developer.pdf.co/api/profiles. (Optional) |
pdf_make_searchable Make PDF searchable
Convert scanned PDF documents or image files into a text-searchable PDF. Runs OCR and adds an invisible text layer that can be used for text search. Ref: https://developer.pdf.co/api/pdf-change-text-searchable/searchable.md
| Parameter | Type | Description |
|---|---|---|
url * | string | URL to the source file. Supports publicly accessible links including Google Drive, Dropbox, PDF.co Built-In Files Storage. Use 'upload_file' tool to upload local files. |
api_key | string | PDF.co API key. If not provided, will use X_API_KEY environment variable. (Optional) |
expiration | Lifetime of the output link in minutes; the output file is deleted afterwards. API default is 60; the maximum depends on the plan. (Optional) | |
httppassword | string | HTTP auth password if required to access source url. (Optional) |
httpusername | string | HTTP auth user name if required to access source url. (Optional) |
lang | string | Language for OCR for scanned documents. Default is 'eng'. See PDF.co docs for supported languages. (Optional, Default: 'eng') |
name | string | File name for the generated output. (Optional) |
pages | string | Comma-separated page indices (e.g., '0, 1, 2-' or '1, 3-7'). Use '!' for inverted page numbers (e.g., '!0' for last page). Processes all pages if None. (Optional) |
password | string | Password of the PDF file. (Optional) |
profiles | string | Extra engine options for this endpoint as a JSON object encoded in a string. The options differ per endpoint; see https://developer.pdf.co/api/profiles. (Optional) |
pdf_make_unsearchable Make PDF unsearchable
Make existing PDF document non-searchable by removing the text layer from it. Ref: https://developer.pdf.co/api/pdf-change-text-searchable/unsearchable.md
| Parameter | Type | Description |
|---|---|---|
url * | string | URL to the source file. Supports publicly accessible links including Google Drive, Dropbox, PDF.co Built-In Files Storage. Use 'upload_file' tool to upload local files. |
api_key | string | PDF.co API key. If not provided, will use X_API_KEY environment variable. (Optional) |
expiration | Lifetime of the output link in minutes; the output file is deleted afterwards. API default is 60; the maximum depends on the plan. (Optional) | |
httppassword | string | HTTP auth password if required to access source url. (Optional) |
httpusername | string | HTTP auth user name if required to access source url. (Optional) |
name | string | File name for the generated output. (Optional) |
pages | string | Comma-separated page indices (e.g., '0, 1, 2-' or '1, 3-7'). Use '!' for inverted page numbers (e.g., '!0' for last page). Processes all pages if None. (Optional) |
password | string | Password of the PDF file. (Optional) |
profiles | string | Extra engine options for this endpoint as a JSON object encoded in a string. The options differ per endpoint; see https://developer.pdf.co/api/profiles. (Optional) |
pdf_add_password Add PDF password
Add password protection to a PDF file. Ref: https://developer.pdf.co/api/pdf-password/add.md
| Parameter | Type | Description |
|---|---|---|
owner_password * | string | The main owner password that is used for document encryption and for setting/removing restrictions. |
url * | string | URL to the source PDF file. Supports publicly accessible links including Google Drive, Dropbox, PDF.co Built-In Files Storage. Use 'upload_file' tool to upload local files. |
allow_accessibility_support | boolean | Allow or prohibit content extraction for accessibility needs. |
allow_assembly_document | boolean | Allow or prohibit assembling the document. |
allow_content_extraction | boolean | Allow or prohibit copying content from PDF document. |
allow_fill_forms | boolean | Allow or prohibit the filling of interactive form fields (including signature fields) in the PDF documents. |
allow_modify_annotations | boolean | Allow or prohibit interacting with text annotations and forms in PDF document. |
allow_modify_document | boolean | Allow or prohibit modification of PDF document. |
allow_print_document | boolean | Allow or prohibit printing PDF document. |
api_key | string | PDF.co API key. If not provided, will use X_API_KEY environment variable. (Optional) |
encryption_algorithm | string | Encryption algorithm. Valid values: RC4_40bit, RC4_128bit, AES_128bit, AES_256bit. AES_128bit or higher is recommended. |
expiration | Lifetime of the output link in minutes; the output file is deleted afterwards. API default is 60; the maximum depends on the plan. (Optional) | |
httppassword | string | HTTP auth password if required to access source url. (Optional) |
httpusername | string | HTTP auth user name if required to access source url. (Optional) |
name | string | File name for the generated output. (Optional) |
password | string | Password of the PDF file if it's already password-protected. (Optional) |
print_quality | string | Allowed printing quality. Valid values: HighResolution, LowResolution. |
profiles | string | Extra engine options for this endpoint as a JSON object encoded in a string. The options differ per endpoint; see https://developer.pdf.co/api/profiles. (Optional) |
user_password | string | The optional user password will be asked for viewing and printing document. |
pdf_remove_password Remove PDF password
Remove password protection from a PDF file. Ref: https://developer.pdf.co/api/pdf-password/remove.md
| Parameter | Type | Description |
|---|---|---|
url * | string | URL to the source PDF file. Supports publicly accessible links including Google Drive, Dropbox, PDF.co Built-In Files Storage. Use 'upload_file' tool to upload local files. |
api_key | string | PDF.co API key. If not provided, will use X_API_KEY environment variable. (Optional) |
expiration | Lifetime of the output link in minutes; the output file is deleted afterwards. API default is 60; the maximum depends on the plan. (Optional) | |
httppassword | string | HTTP auth password if required to access source url. (Optional) |
httpusername | string | HTTP auth user name if required to access source url. (Optional) |
name | string | File name for the generated output. (Optional) |
password | string | Password of the PDF file to be removed. (Optional) |
profiles | string | Extra engine options for this endpoint as a JSON object encoded in a string. The options differ per endpoint; see https://developer.pdf.co/api/profiles. (Optional) |
pdf_info_reader Get PDF information
Get detailed information about a PDF document - number of pages, metadata, security, form fields, and more. Ref: https://developer.pdf.co/api/pdf-info-reader.md
| Parameter | Type | Description |
|---|---|---|
url * | string | URL to the source PDF file. Supports publicly accessible links including Google Drive, Dropbox, PDF.co Built-In Files Storage. Use 'upload_file' tool to upload local files. |
api_key | string | PDF.co API key. If not provided, will use X_API_KEY environment variable. (Optional) |
expiration | Lifetime of the output link in minutes; the output file is deleted afterwards. API default is 60; the maximum depends on the plan. (Optional) | |
httppassword | string | HTTP auth password if required to access source url. (Optional) |
httpusername | string | HTTP auth user name if required to access source url. (Optional) |
password | string | Password of the PDF file. (Optional) |
profiles | string | Extra engine options for this endpoint as a JSON object encoded in a string. The options differ per endpoint; see https://developer.pdf.co/api/profiles. (Optional) |
ai_invoice_parser AI invoice parser
AI Invoice Parser: Extracts data from invoices using AI. Ref: https://developer.pdf.co/api/ai-invoice-parser.md
| Parameter | Type | Description |
|---|---|---|
url * | string | URL to the source PDF file. Supports publicly accessible links including Google Drive, Dropbox, PDF.co Built-In Files Storage. Use 'upload_file' tool to upload local files. |
api_key | string | PDF.co API key. If not provided, will use X_API_KEY environment variable. (Optional) |
extract_attachments Extract PDF attachments
Extracts attachments from a source PDF file. Ref: https://developer.pdf.co/api/pdf-extract-attachments.md
| Parameter | Type | Description |
|---|---|---|
url * | string | URL to the source PDF file. |
api_key | string | PDF.co API key. If not provided, will use X_API_KEY environment variable. (Optional) |
expiration | Lifetime of the output link in minutes; the output file is deleted afterwards. API default is 60; the maximum depends on the plan. (Optional) | |
httppassword | string | HTTP auth password if required to access source url. (Optional) |
httpusername | string | HTTP auth user name if required to access source url. (Optional) |
password | string | Password of PDF file. (Optional) |
profiles | string | Extra engine options for this endpoint as a JSON object encoded in a string. The options differ per endpoint; see https://developer.pdf.co/api/profiles. (Optional) |
pdf_add_annotations_images_fields Add annotations, images and fields
Add text, images, forms, other PDFs, fill forms, links to external sites and external PDF files. You can update or modify PDF and scanned PDF files. This tool supports three main ways to add content: 1. **annotations**: Add text, links, shapes, etc. Properties: text, x, y, size, pages, color, link, fontName, fontItalic, fontBold, fontStrikeout, fontUnderline 2. **images**: Add images or other PDF content Properties: url, x, y, width, height, pages 3. **fields**: Fill existing form fields Properties: fieldName, pages, text, fontName, size, fontBold, fontItalic, fontStrikeout, fontU…
| Parameter | Type | Description |
|---|---|---|
url * | string | URL to the source PDF file. Supports publicly accessible links including Google Drive, Dropbox, PDF.co Built-In Files Storage. Use 'upload_file' tool to upload local files. |
annotations | array | Array of annotation objects to add text, links, shapes, etc. Each object can have: 'text' (string), 'x' (number), 'y' (number), 'size' (number), 'pages' (string), 'color' (string hex), 'link' (string… |
api_key | string | PDF.co API key. If not provided, will use X_API_KEY environment variable. (Optional) |
encrypt | boolean | Encrypt output file. (Optional) |
expiration | integer | Set the expiration time for the output link in minutes. After this specified duration, any generated output file(s) will be automatically deleted. (Optional) |
fields | array | Array of form field objects to fill PDF form fields. Each object can have: 'fieldName' (string), 'pages' (string), 'text' (string), 'fontName' (string), 'size' (number), 'fontBold' (boolean), 'fontIta… |
flatten | boolean | Flatten filled form fields and annotations into PDF content. Set to true to disable editing of filled form fields in the output PDF. (Optional) |
httppassword | string | HTTP auth password if required to access source url. (Optional) |
httpusername | string | HTTP auth user name if required to access source url. (Optional) |
images | array | Array of image objects to add images to PDF. Each object can have: 'url' (string), 'x' (number), 'y' (number), 'width' (number), 'height' (number), 'pages' (string). (Optional) |
name | string | File name for the generated output. (Optional) |
password | string | Password for the PDF file. (Optional) |
profiles | string | Extra engine options for this endpoint as a JSON object encoded in a string. The options differ per endpoint; see https://developer.pdf.co/api/profiles. (Optional) |