PDF.co

v0.0.13
io.github.pdfdotco/pdfco-mcp Checked 22 hours ago Published 7 days ago

Official 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

ParameterTypeDescription
url *stringURL 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_keystringPDF.co API key. If not provided, will use X_API_KEY environment variable. (Optional)
expirationLifetime of the output link in minutes; the output file is deleted afterwards. API default is 60; the maximum depends on the plan. (Optional)
httppasswordstringHTTP auth password if required to access source url. (Optional)
httpusernamestringHTTP auth user name if required to access source url. (Optional)
langstringLanguage for OCR for scanned documents. Default is 'eng'. See PDF.co docs for supported languages. (Optional, Default: 'eng')
line_groupingstringEnables line grouping within table cells when set to '1'. (Optional)
namestringFile name for the generated output. (Optional)
pagesstringComma-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)
passwordstringPassword of the PDF file. (Optional)
profilesstringExtra 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)
rectstringDefines coordinates for extraction (e.g., '51.8,114.8,235.5,204.0'). (Optional)
unwrapbooleanUnwrap 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

ParameterTypeDescription
url *stringURL 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_keystringPDF.co API key. If not provided, will use X_API_KEY environment variable. (Optional)
expirationLifetime of the output link in minutes; the output file is deleted afterwards. API default is 60; the maximum depends on the plan. (Optional)
httppasswordstringHTTP auth password if required to access source url. (Optional)
httpusernamestringHTTP auth user name if required to access source url. (Optional)
langstringLanguage for OCR for scanned documents. Default is 'eng'. See PDF.co docs for supported languages. (Optional, Default: 'eng')
line_groupingstringEnables line grouping within table cells when set to '1'. (Optional)
namestringFile name for the generated output. (Optional)
pagesstringComma-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)
passwordstringPassword of the PDF file. (Optional)
profilesstringExtra 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)
rectstringDefines coordinates for extraction (e.g., '51.8,114.8,235.5,204.0'). (Optional)
unwrapbooleanUnwrap 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

ParameterTypeDescription
url *stringURL 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_keystringPDF.co API key. If not provided, will use X_API_KEY environment variable. (Optional)
expirationLifetime of the output link in minutes; the output file is deleted afterwards. API default is 60; the maximum depends on the plan. (Optional)
httppasswordstringHTTP auth password if required to access source url. (Optional)
httpusernamestringHTTP auth user name if required to access source url. (Optional)
langstringLanguage for OCR for scanned documents. Default is 'eng'. See PDF.co docs for supported languages. (Optional, Default: 'eng')
line_groupingstringEnables line grouping within table cells when set to '1'. (Optional)
namestringFile name for the generated output. (Optional)
pagesstringComma-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)
passwordstringPassword of the PDF file. (Optional)
profilesstringExtra 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)
rectstringDefines coordinates for extraction (e.g., '51.8,114.8,235.5,204.0'). (Optional)
unwrapbooleanUnwrap 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

ParameterTypeDescription
url *stringURL 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_keystringPDF.co API key. If not provided, will use X_API_KEY environment variable. (Optional)
expirationLifetime of the output link in minutes; the output file is deleted afterwards. API default is 60; the maximum depends on the plan. (Optional)
httppasswordstringHTTP auth password if required to access source url. (Optional)
httpusernamestringHTTP auth user name if required to access source url. (Optional)
langstringLanguage for OCR for scanned documents. Default is 'eng'. See PDF.co docs for supported languages. (Optional, Default: 'eng')
line_groupingstringEnables line grouping within table cells when set to '1'. (Optional)
namestringFile name for the generated output. (Optional)
pagesstringComma-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)
passwordstringPassword of the PDF file. (Optional)
profilesstringExtra 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)
rectstringDefines coordinates for extraction (e.g., '51.8,114.8,235.5,204.0'). (Optional)
unwrapbooleanUnwrap 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

ParameterTypeDescription
url *stringURL 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_keystringPDF.co API key. If not provided, will use X_API_KEY environment variable. (Optional)
expirationLifetime of the output link in minutes; the output file is deleted afterwards. API default is 60; the maximum depends on the plan. (Optional)
httppasswordstringHTTP auth password if required to access source url. (Optional)
httpusernamestringHTTP auth user name if required to access source url. (Optional)
langstringLanguage for OCR for scanned documents. Default is 'eng'. See PDF.co docs for supported languages. (Optional, Default: 'eng')
line_groupingstringEnables line grouping within table cells when set to '1'. (Optional)
namestringFile name for the generated output. (Optional)
pagesstringComma-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)
passwordstringPassword of the PDF file. (Optional)
profilesstringExtra 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)
rectstringDefines coordinates for extraction (e.g., '51.8,114.8,235.5,204.0'). (Optional)
unwrapbooleanUnwrap 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

ParameterTypeDescription
url *stringURL 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_keystringPDF.co API key. If not provided, will use X_API_KEY environment variable. (Optional)
expirationLifetime of the output link in minutes; the output file is deleted afterwards. API default is 60; the maximum depends on the plan. (Optional)
httppasswordstringHTTP auth password if required to access source url. (Optional)
httpusernamestringHTTP auth user name if required to access source url. (Optional)
langstringLanguage for OCR for scanned documents. Default is 'eng'. See PDF.co docs for supported languages. (Optional, Default: 'eng')
line_groupingstringEnables line grouping within table cells when set to '1'. (Optional)
namestringFile name for the generated output. (Optional)
pagesstringComma-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)
passwordstringPassword of the PDF file. (Optional)
profilesstringExtra 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)
rectstringDefines coordinates for extraction (e.g., '51.8,114.8,235.5,204.0'). (Optional)
unwrapbooleanUnwrap 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

ParameterTypeDescription
url *stringURL 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_keystringPDF.co API key. If not provided, will use X_API_KEY environment variable. (Optional)
expirationLifetime of the output link in minutes; the output file is deleted afterwards. API default is 60; the maximum depends on the plan. (Optional)
httppasswordstringHTTP auth password if required to access source url. (Optional)
httpusernamestringHTTP auth user name if required to access source url. (Optional)
langstringLanguage for OCR for scanned documents. Default is 'eng'. See PDF.co docs for supported languages. (Optional, Default: 'eng')
line_groupingstringEnables line grouping within table cells when set to '1'. (Optional)
namestringFile name for the generated output. (Optional)
pagesstringComma-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)
passwordstringPassword of the PDF file. (Optional)
profilesstringExtra 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)
rectstringDefines coordinates for extraction (e.g., '51.8,114.8,235.5,204.0'). (Optional)
unwrapbooleanUnwrap 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

ParameterTypeDescription
url *stringURL 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_keystringPDF.co API key. If not provided, will use X_API_KEY environment variable. (Optional)
expirationLifetime of the output link in minutes; the output file is deleted afterwards. API default is 60; the maximum depends on the plan. (Optional)
httppasswordstringHTTP auth password if required to access source url. (Optional)
httpusernamestringHTTP auth user name if required to access source url. (Optional)
langstringLanguage for OCR for scanned documents. Default is 'eng'. See PDF.co docs for supported languages. (Optional, Default: 'eng')
line_groupingstringEnables line grouping within table cells when set to '1'. (Optional)
namestringFile name for the generated output. (Optional)
pagesstringComma-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)
passwordstringPassword of the PDF file. (Optional)
profilesstringExtra 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)
rectstringDefines coordinates for extraction (e.g., '51.8,114.8,235.5,204.0'). (Optional)
typestringType of image to convert to. (jpg, png, webp, tiff) (Optional)
unwrapbooleanUnwrap 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

ParameterTypeDescription
url *stringURL 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_keystringPDF.co API key. If not provided, will use X_API_KEY environment variable. (Optional)
autosizebooleanControls automatic page sizing. If true, page dimensions adjust to content. If false, uses worksheet’s page setup. (Optional)
expirationLifetime of the output link in minutes; the output file is deleted afterwards. API default is 60; the maximum depends on the plan. (Optional)
httppasswordstringHTTP auth password if required to access source url. (Optional)
httpusernamestringHTTP auth user name if required to access source url. (Optional)
namestringFile name for the generated output. (Optional)
pagesstringComma-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)
profilesstringExtra 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

ParameterTypeDescription
url *stringURL 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_keystringPDF.co API key. If not provided, will use X_API_KEY environment variable. (Optional)
autosizebooleanControls automatic page sizing. If true, page dimensions adjust to content. If false, uses worksheet’s page setup. (Optional)
expirationLifetime of the output link in minutes; the output file is deleted afterwards. API default is 60; the maximum depends on the plan. (Optional)
httppasswordstringHTTP auth password if required to access source url. (Optional)
httpusernamestringHTTP auth user name if required to access source url. (Optional)
namestringFile name for the generated output. (Optional)
pagesstringComma-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)
profilesstringExtra 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 ```

ParameterTypeDescription
url *stringURL 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_keystringPDF.co API key. If not provided, will use X_API_KEY environment variable. (Optional)
expirationLifetime of the output link in minutes; the output file is deleted afterwards. API default is 60; the maximum depends on the plan. (Optional)
httppasswordstringHTTP auth password if required to access source url. (Optional)
httpusernamestringHTTP auth user name if required to access source url. (Optional)
namestringFile name for the generated output. (Optional)
pagesstringComma-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)
profilesstringExtra 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…

ParameterTypeDescription
url *stringURL to the source file (external webpage URL).
DoNotWaitFullLoadbooleanfalse 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_keystringPDF.co API key. If not provided, will use X_API_KEY environment variable. (Optional)
expirationLifetime of the output link in minutes; the output file is deleted afterwards. API default is 60; the maximum depends on the plan. (Optional)
footerstringUser definable HTML for the footer to be applied on every page footer. (Optional)
headerstringUser definable HTML for the header to be applied on every page header. (Optional)
httppasswordstringHTTP auth password if required to access source url. (Optional)
httpusernamestringHTTP auth user name if required to access source url. (Optional)
marginsstringSet 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)
mediaTypestringUses 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)
namestringFile name for the generated output. (Optional)
orientationstringSet to Portrait or Landscape. Portrait is set by default. (Optional)
paperSizestringA4 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…
printBackgroundbooleantrue by default. Set to false to disable printing of background. (Optional)
profilesstringExtra 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…

ParameterTypeDescription
html *stringInput 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.
DoNotWaitFullLoadbooleanfalse 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_keystringPDF.co API key. If not provided, will use X_API_KEY environment variable. (Optional)
expirationLifetime of the output link in minutes; the output file is deleted afterwards. API default is 60; the maximum depends on the plan. (Optional)
footerstringUser definable HTML for the footer to be applied on every page footer. (Optional)
headerstringUser definable HTML for the header to be applied on every page header. (Optional)
httppasswordstringHTTP auth password if required to access source url. (Optional)
httpusernamestringHTTP auth user name if required to access source url. (Optional)
marginsstringSet 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)
mediaTypestringUses 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)
namestringFile name for the generated output. (Optional)
orientationstringSet to Portrait or Landscape. Portrait is set by default. (Optional)
paperSizestringA4 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…
printBackgroundbooleantrue by default. Set to false to disable printing of background. (Optional)
profilesstringExtra 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

ParameterTypeDescription
url *stringURL 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_keystringPDF.co API key. If not provided, will use X_API_KEY environment variable. (Optional)
convertAttachmentsbooleanSet 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…
embedAttachmentsbooleanSet 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…
expirationLifetime of the output link in minutes; the output file is deleted afterwards. API default is 60; the maximum depends on the plan. (Optional)
marginsstringSet 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)
orientationstringSet to Portrait or Landscape. Portrait is set by default. (Optional)
paperSizestringA4 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…
profilesstringExtra 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

ParameterTypeDescription
url *stringURL 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_keystringPDF.co API key. If not provided, will use X_API_KEY environment variable. (Optional)
expirationLifetime of the output link in minutes; the output file is deleted afterwards. API default is 60; the maximum depends on the plan. (Optional)
httppasswordstringHTTP auth password if required to access source url. (Optional)
httpusernamestringHTTP auth user name if required to access source url. (Optional)
namestringFile name for the generated output. (Optional)
profilesstringExtra 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)
worksheetIndexstringIndex 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

ParameterTypeDescription
url *stringURL 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_keystringPDF.co API key. If not provided, will use X_API_KEY environment variable. (Optional)
expirationLifetime of the output link in minutes; the output file is deleted afterwards. API default is 60; the maximum depends on the plan. (Optional)
httppasswordstringHTTP auth password if required to access source url. (Optional)
httpusernamestringHTTP auth user name if required to access source url. (Optional)
namestringFile name for the generated output. (Optional)
profilesstringExtra 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)
worksheetIndexstringIndex 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

ParameterTypeDescription
url *stringURL 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_keystringPDF.co API key. If not provided, will use X_API_KEY environment variable. (Optional)
expirationLifetime of the output link in minutes; the output file is deleted afterwards. API default is 60; the maximum depends on the plan. (Optional)
httppasswordstringHTTP auth password if required to access source url. (Optional)
httpusernamestringHTTP auth user name if required to access source url. (Optional)
namestringFile name for the generated output. (Optional)
profilesstringExtra 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)
worksheetIndexstringIndex 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

ParameterTypeDescription
url *stringURL 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_keystringPDF.co API key. If not provided, will use X_API_KEY environment variable. (Optional)
expirationLifetime of the output link in minutes; the output file is deleted afterwards. API default is 60; the maximum depends on the plan. (Optional)
httppasswordstringHTTP auth password if required to access source url. (Optional)
httpusernamestringHTTP auth user name if required to access source url. (Optional)
namestringFile name for the generated output. (Optional)
profilesstringExtra 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)
worksheetIndexstringIndex 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

ParameterTypeDescription
url *stringURL 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_keystringPDF.co API key. If not provided, will use X_API_KEY environment variable. (Optional)
expirationLifetime of the output link in minutes; the output file is deleted afterwards. API default is 60; the maximum depends on the plan. (Optional)
httppasswordstringHTTP auth password if required to access source url. (Optional)
httpusernamestringHTTP auth user name if required to access source url. (Optional)
namestringFile name for the generated output. (Optional)
profilesstringExtra 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)
worksheetIndexstringIndex 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

ParameterTypeDescription
url *stringURL 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_keystringPDF.co API key. If not provided, will use X_API_KEY environment variable. (Optional)
expirationLifetime of the output link in minutes; the output file is deleted afterwards. API default is 60; the maximum depends on the plan. (Optional)
httppasswordstringHTTP auth password if required to access source url. (Optional)
httpusernamestringHTTP auth user name if required to access source url. (Optional)
namestringFile name for the generated output. (Optional)
profilesstringExtra 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)
worksheetIndexstringIndex 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

ParameterTypeDescription
url *stringURL 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_keystringPDF.co API key. If not provided, will use X_API_KEY environment variable. (Optional)
expirationLifetime 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)
namestringFile 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

ParameterTypeDescription
profile *stringInvoice profile family: 'facturx' (Factur-X) or 'zugferd' (ZUGFeRD).
url *stringURL 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 *stringURL 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_keystringPDF.co API key. If not provided, will use X_API_KEY environment variable. (Optional)
expirationLifetime of the output and report links in minutes; the files are deleted afterwards. API default is 60. (Optional)
httppasswordstringHTTP auth password for the source PDF URL only. (Optional)
httpusernamestringHTTP auth user name for the source PDF URL only. (Optional)
namestringFile 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

ParameterTypeDescription
api_keystringPDF.co API key. If not provided, will use X_API_KEY environment variable. (Optional)
expirationLifetime of the output link in minutes, from 1 to 10080; the file is deleted afterwards. API default is 60. (Optional)
markdownstringMarkdown 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.
namestringFile name for the output PDF. Defaults to markdown.pdf. (Optional)
urlstringPublic 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.

ParameterTypeDescription
job_id *stringThe ID of the job to get the status of
api_keystringPDF.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

ParameterTypeDescription
job_id *stringThe ID of the job to get the status of
api_keystringPDF.co API key. If not provided, will use X_API_KEY environment variable. (Optional)
intervalintegerThe interval to check the status of the job (seconds)
timeoutintegerThe timeout to wait for the job to complete (seconds)

upload_file Upload file

Upload a file to the PDF.co API

ParameterTypeDescription
file_path *stringThe absolute path to the file to upload
api_keystringPDF.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

ParameterTypeDescription
url *stringURLs 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_keystringPDF.co API key. If not provided, will use X_API_KEY environment variable. (Optional)
expirationLifetime of the output link in minutes; the output file is deleted afterwards. API default is 60; the maximum depends on the plan. (Optional)
httppasswordstringHTTP auth password if required to access source url. (Optional)
httpusernamestringHTTP auth user name if required to access source url. (Optional)
namestringFile name for the generated output. (Optional)
profilesstringExtra 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

ParameterTypeDescription
pages *stringComma-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 *stringURL 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_keystringPDF.co API key. If not provided, will use X_API_KEY environment variable. (Optional)
expirationLifetime of the output link in minutes; the output file is deleted afterwards. API default is 60; the maximum depends on the plan. (Optional)
httppasswordstringHTTP auth password if required to access source url. (Optional)
httpusernamestringHTTP auth user name if required to access source url. (Optional)
namestringBase file name for the generated output files. (Optional)
passwordstringPassword of the PDF file. (Optional)
profilesstringExtra 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

ParameterTypeDescription
url *stringURL 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_keystringPDF.co API key. If not provided, will use X_API_KEY environment variable. (Optional)
expirationLifetime of the output link in minutes; the output file is deleted afterwards. API default is 60; the maximum depends on the plan. (Optional)
httppasswordstringHTTP auth password if required to access source url. (Optional)
httpusernamestringHTTP auth user name if required to access source url. (Optional)
passwordstringPassword of PDF file. (Optional)
profilesstringExtra 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

ParameterTypeDescription
fields *arrayList of fields to fill. Each field is a dict with 'fieldName', 'pages', and 'text' properties.
url *stringURL 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_keystringPDF.co API key. If not provided, will use X_API_KEY environment variable. (Optional)
expirationLifetime of the output link in minutes; the output file is deleted afterwards. API default is 60; the maximum depends on the plan. (Optional)
httppasswordstringHTTP auth password if required to access source url. (Optional)
httpusernamestringHTTP auth user name if required to access source url. (Optional)
namestringFile name for the generated output. (Optional)
profilesstringExtra 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

ParameterTypeDescription
annotations *arrayList of form annotations to create. Each annotation can be a textfield or checkbox with properties like 'x', 'y', 'size', 'pages', 'type', and 'id'.
url *stringURL 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_keystringPDF.co API key. If not provided, will use X_API_KEY environment variable. (Optional)
expirationLifetime of the output link in minutes; the output file is deleted afterwards. API default is 60; the maximum depends on the plan. (Optional)
httppasswordstringHTTP auth password if required to access source url. (Optional)
httpusernamestringHTTP auth user name if required to access source url. (Optional)
namestringFile name for the generated output. (Optional)
profilesstringExtra 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

ParameterTypeDescription
searchString *stringText to search. Can support regular expressions if regexSearch is set to True.
url *stringURL 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_keystringPDF.co API key. If not provided, will use X_API_KEY environment variable. (Optional)
expirationLifetime of the output link in minutes; the output file is deleted afterwards. API default is 60; the maximum depends on the plan. (Optional)
httppasswordstringHTTP auth password if required to access source url. (Optional)
httpusernamestringHTTP auth user name if required to access source url. (Optional)
pagesstringComma-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)
passwordstringPassword of the PDF file. (Optional)
profilesstringExtra 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)
regexSearchbooleanSet to True to enable regular expressions in the search string. (Optional)
wordMatchingModestringValues 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

ParameterTypeDescription
url *stringURL 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_keystringPDF.co API key. If not provided, will use X_API_KEY environment variable. (Optional)
expirationLifetime of the output link in minutes; the output file is deleted afterwards. API default is 60; the maximum depends on the plan. (Optional)
httppasswordstringHTTP auth password if required to access source url. (Optional)
httpusernamestringHTTP auth user name if required to access source url. (Optional)
pagesstringComma-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)
passwordstringPassword of the PDF file. (Optional)
profilesstringExtra 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

ParameterTypeDescription
url *stringURL 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_keystringPDF.co API key. If not provided, will use X_API_KEY environment variable. (Optional)
expirationLifetime of the output link in minutes; the output file is deleted afterwards. API default is 60; the maximum depends on the plan. (Optional)
httppasswordstringHTTP auth password if required to access source url. (Optional)
httpusernamestringHTTP auth user name if required to access source url. (Optional)
langstringLanguage for OCR for scanned documents. Default is 'eng'. See PDF.co docs for supported languages. (Optional, Default: 'eng')
namestringFile name for the generated output. (Optional)
pagesstringComma-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)
passwordstringPassword of the PDF file. (Optional)
profilesstringExtra 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

ParameterTypeDescription
url *stringURL 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_keystringPDF.co API key. If not provided, will use X_API_KEY environment variable. (Optional)
expirationLifetime of the output link in minutes; the output file is deleted afterwards. API default is 60; the maximum depends on the plan. (Optional)
httppasswordstringHTTP auth password if required to access source url. (Optional)
httpusernamestringHTTP auth user name if required to access source url. (Optional)
namestringFile name for the generated output. (Optional)
pagesstringComma-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)
passwordstringPassword of the PDF file. (Optional)
profilesstringExtra 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

ParameterTypeDescription
owner_password *stringThe main owner password that is used for document encryption and for setting/removing restrictions.
url *stringURL 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_supportbooleanAllow or prohibit content extraction for accessibility needs.
allow_assembly_documentbooleanAllow or prohibit assembling the document.
allow_content_extractionbooleanAllow or prohibit copying content from PDF document.
allow_fill_formsbooleanAllow or prohibit the filling of interactive form fields (including signature fields) in the PDF documents.
allow_modify_annotationsbooleanAllow or prohibit interacting with text annotations and forms in PDF document.
allow_modify_documentbooleanAllow or prohibit modification of PDF document.
allow_print_documentbooleanAllow or prohibit printing PDF document.
api_keystringPDF.co API key. If not provided, will use X_API_KEY environment variable. (Optional)
encryption_algorithmstringEncryption algorithm. Valid values: RC4_40bit, RC4_128bit, AES_128bit, AES_256bit. AES_128bit or higher is recommended.
expirationLifetime of the output link in minutes; the output file is deleted afterwards. API default is 60; the maximum depends on the plan. (Optional)
httppasswordstringHTTP auth password if required to access source url. (Optional)
httpusernamestringHTTP auth user name if required to access source url. (Optional)
namestringFile name for the generated output. (Optional)
passwordstringPassword of the PDF file if it's already password-protected. (Optional)
print_qualitystringAllowed printing quality. Valid values: HighResolution, LowResolution.
profilesstringExtra 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_passwordstringThe 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

ParameterTypeDescription
url *stringURL 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_keystringPDF.co API key. If not provided, will use X_API_KEY environment variable. (Optional)
expirationLifetime of the output link in minutes; the output file is deleted afterwards. API default is 60; the maximum depends on the plan. (Optional)
httppasswordstringHTTP auth password if required to access source url. (Optional)
httpusernamestringHTTP auth user name if required to access source url. (Optional)
namestringFile name for the generated output. (Optional)
passwordstringPassword of the PDF file to be removed. (Optional)
profilesstringExtra 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

ParameterTypeDescription
url *stringURL 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_keystringPDF.co API key. If not provided, will use X_API_KEY environment variable. (Optional)
expirationLifetime of the output link in minutes; the output file is deleted afterwards. API default is 60; the maximum depends on the plan. (Optional)
httppasswordstringHTTP auth password if required to access source url. (Optional)
httpusernamestringHTTP auth user name if required to access source url. (Optional)
passwordstringPassword of the PDF file. (Optional)
profilesstringExtra 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

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

ParameterTypeDescription
url *stringURL to the source PDF file.
api_keystringPDF.co API key. If not provided, will use X_API_KEY environment variable. (Optional)
expirationLifetime of the output link in minutes; the output file is deleted afterwards. API default is 60; the maximum depends on the plan. (Optional)
httppasswordstringHTTP auth password if required to access source url. (Optional)
httpusernamestringHTTP auth user name if required to access source url. (Optional)
passwordstringPassword of PDF file. (Optional)
profilesstringExtra 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…

ParameterTypeDescription
url *stringURL 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.
annotationsarrayArray 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_keystringPDF.co API key. If not provided, will use X_API_KEY environment variable. (Optional)
encryptbooleanEncrypt output file. (Optional)
expirationintegerSet the expiration time for the output link in minutes. After this specified duration, any generated output file(s) will be automatically deleted. (Optional)
fieldsarrayArray 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…
flattenbooleanFlatten filled form fields and annotations into PDF content. Set to true to disable editing of filled form fields in the output PDF. (Optional)
httppasswordstringHTTP auth password if required to access source url. (Optional)
httpusernamestringHTTP auth user name if required to access source url. (Optional)
imagesarrayArray 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)
namestringFile name for the generated output. (Optional)
passwordstringPassword for the PDF file. (Optional)
profilesstringExtra 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)