PDF.co
Generate, convert, edit, extract, parse, barcode, email, and automate PDF documents with PDF.co.
Tools
| Name | Description |
|---|---|
html_to_pdfConvert HTML content or a web page URL to PDF. | Convert HTML content or a web page URL to PDF. |
url_to_pdfRender a web page URL into a PDF document. | Render a web page URL into a PDF document. |
document_to_pdfConvert DOC, DOCX, RTF, TXT, XPS, PPT, or PPTX files to PDF. | Convert DOC, DOCX, RTF, TXT, XPS, PPT, or PPTX files to PDF. |
csv_to_pdfConvert a CSV file to PDF. | Convert a CSV file to PDF. |
image_to_pdfConvert JPG, PNG, or TIFF images into a PDF document. | Convert JPG, PNG, or TIFF images into a PDF document. |
email_to_pdfConvert EML or MSG email files to PDF and optionally include attachments. | Convert EML or MSG email files to PDF and optionally include attachments. |
merge_pdfsMerge multiple PDF file URLs into a single PDF. | Merge multiple PDF file URLs into a single PDF. |
merge_various_documentsMerge PDFs, Office files, images, emails, or ZIP inputs into a single PDF. | Merge PDFs, Office files, images, emails, or ZIP inputs into a single PDF. |
extract_textExtract text from PDF documents with OCR/layout processing. | Extract text from PDF documents with OCR/layout processing. |
pdf_to_text_simpleExtract plain text from a PDF with the fast non-OCR text endpoint. | Extract plain text from a PDF with the fast non-OCR text endpoint. |
pdf_to_csvConvert PDF or scanned tables to CSV. | Convert PDF or scanned tables to CSV. |
pdf_to_xlsConvert PDF to XLS spreadsheet format. | Convert PDF to XLS spreadsheet format. |
pdf_to_xlsxConvert PDF to XLSX spreadsheet format. | Convert PDF to XLSX spreadsheet format. |
pdf_to_jsonConvert PDF to structured JSON with metadata. | Convert PDF to structured JSON with metadata. |
pdf_to_json_aiConvert PDF and scanned images to JSON using PDF.co AI extraction. | Convert PDF and scanned images to JSON using PDF.co AI extraction. |
pdf_to_xmlConvert PDF to XML with text, tables, fonts, images, and positions. | Convert PDF to XML with text, tables, fonts, images, and positions. |
pdf_to_htmlConvert PDF to HTML with formatting preserved. | Convert PDF to HTML with formatting preserved. |
pdf_to_jpgConvert PDF pages to JPG images. | Convert PDF pages to JPG images. |
pdf_to_pngConvert PDF pages to PNG images. | Convert PDF pages to PNG images. |
pdf_to_tiffConvert PDF pages to TIFF images. | Convert PDF pages to TIFF images. |
pdf_to_webpConvert PDF pages to WEBP images. | Convert PDF pages to WEBP images. |
excel_to_pdfConvert XLS, XLSX, or CSV files to PDF. | Convert XLS, XLSX, or CSV files to PDF. |
excel_to_csvConvert XLS or XLSX files to CSV. | Convert XLS or XLSX files to CSV. |
excel_to_htmlConvert XLS, XLSX, or CSV files to HTML. | Convert XLS, XLSX, or CSV files to HTML. |
excel_to_jsonConvert XLS, XLSX, or CSV files to JSON. | Convert XLS, XLSX, or CSV files to JSON. |
excel_to_textConvert XLS, XLSX, or CSV files to text. | Convert XLS, XLSX, or CSV files to text. |
excel_to_xmlConvert XLS, XLSX, or CSV files to XML. | Convert XLS, XLSX, or CSV files to XML. |
get_pdf_infoRead PDF document metadata, security permissions, and page information. | Read PDF document metadata, security permissions, and page information. |
get_pdf_form_fieldsList fillable form fields inside a PDF. | List fillable form fields inside a PDF. |
extract_pdf_attachmentsExtract embedded attachments from a PDF file. | Extract embedded attachments from a PDF file. |
split_pdfSplit a PDF into multiple files by page numbers or ranges. | Split a PDF into multiple files by page numbers or ranges. |
split_pdf_by_text_or_barcodeSplit a PDF at pages matching text search or barcode patterns. | Split a PDF at pages matching text search or barcode patterns. |
compress_pdfCompress a PDF to reduce file size. | Compress a PDF to reduce file size. |
make_pdf_searchableRun OCR and add an invisible searchable text layer to a scanned PDF. | Run OCR and add an invisible searchable text layer to a scanned PDF. |
make_pdf_unsearchableRasterize a PDF into a flat image-only version. | Rasterize a PDF into a flat image-only version. |
rotate_pdf_pagesRotate selected pages in a PDF. | Rotate selected pages in a PDF. |
auto_rotate_pdf_pagesDetect and fix page rotation in scanned PDFs using OCR. | Detect and fix page rotation in scanned PDFs using OCR. |
delete_pdf_pagesDelete selected pages from a PDF. | Delete selected pages from a PDF. |
add_password_to_pdfAdd password protection and security restrictions to a PDF. | Add password protection and security restrictions to a PDF. |
remove_password_from_pdfRemove password protection or security restrictions from a PDF. | Remove password protection or security restrictions from a PDF. |
add_to_pdfAdd text, images, forms, links, or external PDF elements to a PDF. Provide PDF.co edit arrays in Additional Parameters JSON. | Add text, images, forms, links, or external PDF elements to a PDF. Provide PDF.co edit arrays in Additional Parameters JSON. |
find_textFind text or regular expressions in a PDF and return coordinates. | Find text or regular expressions in a PDF and return coordinates. |
find_table_aiDetect tables in PDFs and scanned documents using AI. | Detect tables in PDFs and scanned documents using AI. |
delete_textSearch for text and remove it from a PDF. | Search for text and remove it from a PDF. |
replace_textSearch for text in a PDF and replace it with new text. | Search for text in a PDF and replace it with new text. |
replace_text_with_imageSearch for text in a PDF and replace it with an image. | Search for text in a PDF and replace it with an image. |
ai_invoice_parserExtract structured JSON data from invoices using PDF.co AI parsing. | Extract structured JSON data from invoices using PDF.co AI parsing. |
document_classifierClassify incoming PDFs or images using keyword rules or built-in AI. | Classify incoming PDFs or images using keyword rules or built-in AI. |
parse_documentExtract fields, tables, values, and barcodes using PDF.co Document Parser templates. | Extract fields, tables, values, and barcodes using PDF.co Document Parser templates. |
list_document_parser_templatesList PDF.co Document Parser templates available to the account. | List PDF.co Document Parser templates available to the account. |
get_document_parser_templateRetrieve a PDF.co Document Parser template by ID. | Retrieve a PDF.co Document Parser template by ID. |
list_html_templatesList HTML templates available for HTML-to-PDF rendering. | List HTML templates available for HTML-to-PDF rendering. |
get_html_templateRetrieve a PDF.co HTML template by ID. | Retrieve a PDF.co HTML template by ID. |
barcode_generateGenerate QR Code, DataMatrix, Code 39, Code 128, PDF417, and other barcode images. | Generate QR Code, DataMatrix, Code 39, Code 128, PDF417, and other barcode images. |
barcode_readRead barcodes from images, TIFF files, PDFs, and scanned documents. | Read barcodes from images, TIFF files, PDFs, and scanned documents. |
email_decodeDecode an EML or MSG email file into headers, body, and parts. | Decode an EML or MSG email file into headers, body, and parts. |
email_extract_attachmentsExtract attachments from an EML or MSG email file. | Extract attachments from an EML or MSG email file. |
send_email_with_fileSend an email through PDF.co with optional file attachments. | Send an email through PDF.co with optional file attachments. |
get_account_balanceGet remaining PDF.co account credits. | Get remaining PDF.co account credits. |
check_jobCheck the status of a background job created by an async PDF.co API call. | Check the status of a background job created by an async PDF.co API call. |
generate_presigned_upload_urlGenerate a PDF.co presigned URL for uploading larger files. | Generate a PDF.co presigned URL for uploading larger files. |
upload_small_fileUpload a small local file to PDF.co temporary storage. | Upload a small local file to PDF.co temporary storage. |
upload_file_base64Upload a file to PDF.co temporary storage using a base64 payload. | Upload a file to PDF.co temporary storage using a base64 payload. |
upload_file_from_urlDownload a source URL into PDF.co temporary file storage. | Download a source URL into PDF.co temporary file storage. |
upload_to_presigned_urlPUT a file to a PDF.co presigned upload URL returned by Generate Presigned Upload URL. | PUT a file to a PDF.co presigned upload URL returned by Generate Presigned Upload URL. |
delete_temporary_fileDelete a temporary PDF.co file by URL. | Delete a temporary PDF.co file by URL. |
get_file_md5_hashCalculate the MD5 hash for a source file URL. | Calculate the MD5 hash for a source file URL. |
download_file_by_tokenDownload a PDF.co stored file by file token and return base64 bytes when the response is binary. | Download a PDF.co stored file by file token and return base64 bytes when the response is binary. |
custom_api_callMake a bounded custom API call to documented PDF.co endpoints. | Make a bounded custom API call to documented PDF.co endpoints. |
Triggers
| Name | Description |
|---|---|
job_callback_receivedReceive parsed PDF.co callback payloads from async jobs. PDF.co does not document a webhook signature scheme, so this trigger does not verify signatures. | Receive parsed PDF.co callback payloads from async jobs. PDF.co does not document a webhook signature scheme, so this trigger does not verify signatures. |
async_job_completed_pollingPoll one PDF.co async job and emit once when it reaches a terminal status. | Poll one PDF.co async job and emit once when it reaches a terminal status. |
Quick Start
import { WeavzClient } from '@weavz-io/sdk'
const weavz = new WeavzClient({ apiKey: 'wvz_...' })
const result = await weavz.actions.execute('pdf-co', 'html_to_pdf', {
workspaceId: '550e8400-e29b-41d4-a716-446655440000',
integrationAlias: 'pdf-co',
input: { /* ... */ },
})Related Integrations
Works well with
Frequently Asked Questions
How do I connect PDF.co to my app?
Use Weavz Hosted Connect for API Key authentication. Install the SDK, create a connection through the connect portal or API, then execute tools programmatically.
What tools does PDF.co support?
PDF.co supports 69 tools including HTML to PDF, URL to PDF, Document to PDF, CSV to PDF, Image to PDF, and more.
Can I use PDF.co with AI agents?
Yes. Add PDF.co to an MCP server in Tool Mode or Code Mode. Code Mode provides 3 meta-tools with on-demand API discovery so agents can compose stateful workflows without loading every action schema up front.
How do I connect PDF.co to ChatGPT or Claude?
Open the Weavz connector setup, sign in, choose a workspace, and add PDF.co as an approved app. ChatGPT, Claude, and other remote MCP clients can then call the scoped PDF.co tools exposed by that workspace.
Does PDF.co work with Claude Code, Cursor, Codex, and local agents?
Yes. Remote and local MCP clients can connect to a Weavz MCP endpoint for the workspace. Local coding agents can also use the Weavz CLI to inspect apps, discover actions, run approved PDF.co work, and execute Code Mode workflows from a terminal.
What can I ask an AI agent to do with PDF.co?
PDF.co exposes 69 tools, including HTML to PDF, URL to PDF, Document to PDF, CSV to PDF, Image to PDF, and more. Use Weavz to keep credentials scoped, require approval for sensitive work, and audit what the agent did.
Can PDF.co be used in stateful agent workflows?
Yes. Agents can combine PDF.co tools with Filesystem, State KV, Human Gates, input partials, and other workspace integrations while keeping execution scoped to the selected workspace or end user.
What authentication does PDF.co use?
PDF.co uses API Key. Weavz stores credentials securely and uses them for authorized action execution.
How much does the PDF.co integration cost?
The PDF.co integration is included on all Weavz plans including the free tier with 20,000 actions per month. No credit card required.
What triggers does PDF.co support?
PDF.co supports 2 triggers including Job Callback Received, Async Job Completed Polling.
Connect PDF.co in minutes
Get 20,000 free action executions every month. No credit card required.