> ## Documentation Index
> Fetch the complete documentation index at: https://docs.pdf.co/llms.txt
> Use this file to discover all available pages before exploring further.

# PDF.co API and n8n Integration Guide

> PDF.co provides various document files processing like extraction, editing, conversion and more. You can integrate them with your n8n workflow by using the n8n HTTP Request node to leverage the full power of document automation.

## Comprehensive API Capabilities

### **1. Document Intelligence & Parsing**

* **AI-Powered Document Parser**: Extract structured data from invoices, receipts, forms, and custom documents
* **Document Classifier**: Automatically categorize and route documents
* **AI Invoice Parser**: Specialized invoice data extraction with high accuracy
* **Optical Mark Recognition**: Read checkboxes, radio buttons, and fillable fields

### **2. PDF Manipulation & Processing**

* **PDF Split & Merge**: Combine multiple PDFs or split by pages, text search, or barcode detection
* **PDF Form Operations**: Fill forms, create fillable forms, and extract form data
* **Text Operations**: Search, replace, add, or delete text with precision
* **Image Integration**: Add signatures, images, and replace text with images
* **Page Management**: Rotate, delete, and reorganize PDF pages
* **Security Features**: Password protection and user-controlled encryption

### **3. Format Conversion Excellence**

* **From PDF**: Convert to CSV, JSON, TEXT, XLS, XLSX, XML, HTML, JPG, PNG, WEBP, TIFF
* **To PDF**: Generate from HTML, URL, images, CSV, XLS, Word documents, and HTML templates
* **Spreadsheet Processing**: Convert XLS/XLSX to CSV, JSON, HTML, TXT, XML

### **4. Barcode & QR Code Support**

* **Barcode Generation**: Create various barcode formats programmatically
* **Barcode Reading**: Extract data from existing barcodes in documents

### 5. **Email & Communication**

* **Email Integration**: Send and decode emails, convert emails to PDF
* **PDF from Email**: Generate PDFs from email content

## How to Call PDF.co API on n8n

1. **Add an **[**HTTP Request Node**](https://docs.n8n.io/integrations/builtin/core-nodes/n8n-nodes-base.httprequest/)** to your n8n workflow**

   <img src="https://mintcdn.com/pdfco/tXGo3rbTS_pEF5es/images/integrations/n8n/n8n-http-request-node.png?fit=max&auto=format&n=tXGo3rbTS_pEF5es&q=85&s=bce4c8d85a6ca0296306744c37a3c8a5" alt="N8n Http Request Node Pn" width="1788" height="696" data-path="images/integrations/n8n/n8n-http-request-node.png" />
2. **Input the API method and URL**

   <img src="https://mintcdn.com/pdfco/tXGo3rbTS_pEF5es/images/integrations/n8n/n8n-http-request-pdfco-api.png?fit=max&auto=format&n=tXGo3rbTS_pEF5es&q=85&s=66568338f798061e85b6519f6ec4e089" alt="N8n Http Request Pdfco Api Pn" width="932" height="528" data-path="images/integrations/n8n/n8n-http-request-pdfco-api.png" />

   You can find all of our API endpoint URLs on our [doc page](https://docs.pdf.co/api-reference). Make sure you add `https://api.pdf.co` before inputting the URL shown on our doc page. Here's the sample URL input:

   ```
   <https://api.pdf.co/v1/xls/convert/to/pdf>
   ```
3. Use `Predefined Credential Type` for Authentication and choose PDF.co API from the selection menu.

   <img src="https://mintcdn.com/pdfco/tXGo3rbTS_pEF5es/images/integrations/n8n/n8n-http-credential-type.png?fit=max&auto=format&n=tXGo3rbTS_pEF5es&q=85&s=a80d4eee63877b1f5d3f92d771923ee1" alt="N8n Http Credential Type Pn" width="928" height="686" data-path="images/integrations/n8n/n8n-http-credential-type.png" />
4. Add your PDF.co credentials by inputting your PDF.co API Key, which you can get from the [PDF.co dashboard](https://app.pdf.co).

   <img src="https://mintcdn.com/pdfco/tXGo3rbTS_pEF5es/images/integrations/n8n/n8n-http-input-pdfco-credential.png?fit=max&auto=format&n=tXGo3rbTS_pEF5es&q=85&s=3fbdfdac0bd5c624e8fa1a7fcb5cc107" alt="N8n Http Input Pdfco Credential Pn" width="1998" height="518" data-path="images/integrations/n8n/n8n-http-input-pdfco-credential.png" />
5. Toggle the Send Body switch to `ON` and select **JSON** from the dropdown.

   <img src="https://mintcdn.com/pdfco/tXGo3rbTS_pEF5es/images/integrations/n8n/n8n-http-request-body.png?fit=max&auto=format&n=tXGo3rbTS_pEF5es&q=85&s=09d036b8a40c83cf24c65e3552b9d624" alt="N8n Http Request Body Pn" width="924" height="1114" data-path="images/integrations/n8n/n8n-http-request-body.png" />
6. You can input the body parameters by using the parameter field or input directly as **JSON** instead (see the sample below).

   ```
   {
     "url": "<https://pdfco-test-files.s3.us-west-2.amazonaws.com/document-parser/sample-invoice.pdf>",
     "callback": "<https://example.com/callback/url/you/provided>"
   }
   ```
