# PDF.co — Pipedream Connect

> PDF.co is a API platform for data extraction from PDF, spreadsheets, barcodes. 300+ integrations supported.

- API slug: `pdf_co` (use in MCP headers and tool keys)
- Auth: API key (Pipedream-managed)
- Categories: File Storage
- Website: https://pdf.co
- This page (HTML): https://pipedream.com/apps/pdf-co
- Tools: 17 actions · 0 triggers

## Connect via MCP (recommended)

- Endpoint: `https://remote.mcp.pipedream.net/v3`
- Headers: `Authorization: Bearer <token>` · `x-pd-project-id` · `x-pd-environment` · `x-pd-external-user-id` · `x-pd-app-slug: pdf_co`

```ts
import { Client } from "@modelcontextprotocol/sdk/client/index.js"
import { StreamableHTTPClientTransport } from "@modelcontextprotocol/sdk/client/streamableHttp.js"
import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const accessToken = await pd.rawAccessToken

const transport = new StreamableHTTPClientTransport(
  new URL("https://remote.mcp.pipedream.net/v3"),
  {
    requestInit: {
      headers: {
        Authorization: `Bearer ${accessToken}`,
        "x-pd-project-id": process.env.PIPEDREAM_PROJECT_ID!,
        "x-pd-environment": "production",
        "x-pd-external-user-id": "{external_user_id}", // any stable ID for this user in your system
        "x-pd-app-slug": "pdf_co",
      },
    },
  },
)

const mcp = new Client({ name: "my-agent", version: "1.0.0" })
await mcp.connect(transport)

const { tools } = await mcp.listTools()

// e.g. run Add PDF security:
const result = await mcp.callTool({
  name: "pdf_co-pdf-add-security",
  arguments: {
    async: true,
    name: "Name",
  },
})
```

Docs: [MCP guide](https://pipedream.com/docs/connect/mcp/developers.md)

## API proxy

For a PDF.co endpoint with no pre-built tool, the proxy forwards your request with the connected user's credentials attached.

```bash
# The path segment is the target URL, URL-safe base64 encoded:
# https://api.pdf.co/v1/account/credit/balance

curl "https://api.pipedream.com/v1/connect/{project_id}/proxy/aHR0cHM6Ly9hcGkucGRmLmNvL3YxL2FjY291bnQvY3JlZGl0L2JhbGFuY2U?external_user_id={external_user_id}&account_id=apn_xxxxxxx" \
  -H "Authorization: Bearer {access_token}" \
  -H "x-pd-environment: production"
```

Docs: [API proxy guide](https://pipedream.com/docs/connect/api-proxy.md)

## SDK

```ts
import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const result = await pd.actions.run({
  id: "pdf_co-pdf-add-security",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    pdf_co: { authProvisionId: "apn_xxxxxxx" },
    async: true,
    name: "Name",
  },
})
```

Docs: [Managed auth guide](https://pipedream.com/docs/connect/managed-auth/quickstart.md) · [Tools guide](https://pipedream.com/docs/connect/components.md)

## Actions (17)

### `pdf_co-pdf-add-security` — Add PDF security (Write)

Add PDF security. See docs here

Full schema: https://pipedream.com/apps/pdf-co/actions/pdf-add-security.md

### `pdf_co-anything-to-pdf-converter` — Anything to PDF Converter (Read-only)

Convert CSV, XLS, XLSX, DOC, DOCX, RTF, TXT, XPS, JPG, PNG, TIFF, URL, EMAIL to PDF. See docs here

Full schema: https://pipedream.com/apps/pdf-co/actions/anything-to-pdf-converter.md

### `pdf_co-barcode-generator` — Barcode Generator (Write)

Generate high quality barcode images. Supports QR Code, DataMatrix, Code 39, Code 128, PDF417 and many other barcode types. See docs here

Full schema: https://pipedream.com/apps/pdf-co/actions/barcode-generator.md

### `pdf_co-barcode-reader` — Barcode Reader (Read-only)

Read barcodes from images and PDF. Can read all popular barcode types from QR Code and Code 128, EAN to DataMatrix, PDF417, GS1 and many other barcodes. See docs here

Full schema: https://pipedream.com/apps/pdf-co/actions/barcode-reader.md

### `pdf_co-custom-api-call` — Custom API Call (Write)

Custom API Call. See docs here

Full schema: https://pipedream.com/apps/pdf-co/actions/custom-api-call.md

### `pdf_co-document-classifier` — Document Classifier (Write)

Auto classification of incoming documents. See docs here

Full schema: https://pipedream.com/apps/pdf-co/actions/document-classifier.md

### `pdf_co-document-parser` — Document Parser (Read-only)

Document Parser can automatically parse PDF, JPG, PNG document to extract fields, tables, values, barcodes from invoices, statements, orders and other PDF and scanned documents. See docs here

Full schema: https://pipedream.com/apps/pdf-co/actions/document-parser.md

### `pdf_co-document-toggle-searchable` — Document Toggle Searchable (Write)

Turn PDF and scanned JPG, PNG images into text-searchable PDF or text-unsearchable. See docs here

Full schema: https://pipedream.com/apps/pdf-co/actions/document-toggle-searchable.md

### `pdf_co-html-to-pdf-converter` — HTML to PDF Converter (Read-only)

Convert HTML code snippet into full featured PDF. See docs here

Full schema: https://pipedream.com/apps/pdf-co/actions/html-to-pdf-converter.md

### `pdf_co-pdf-find-table` — PDF Find Table (Read-only)

AI powered document analysis can scan your document for tables and return the array of tables on pages with coordinates and information about columns detected in these tables. See docs here

Full schema: https://pipedream.com/apps/pdf-co/actions/pdf-find-table.md

### `pdf_co-pdf-info-reader` — PDF Info Reader (Read-only)

Get detailed information about the PDF document, properties and security permissions. See docs here

Full schema: https://pipedream.com/apps/pdf-co/actions/pdf-info-reader.md

### `pdf_co-pdf-merge` — PDF Merge (Write)

Merge PDF from two or more PDF files into a new one. See docs here

Full schema: https://pipedream.com/apps/pdf-co/actions/pdf-merge.md

### `pdf_co-pdf-split-by-pages` — PDF Split by Page Index (Write)

Split PDF by page index. See docs here

Full schema: https://pipedream.com/apps/pdf-co/actions/pdf-split-by-pages.md

### `pdf_co-pdf-split-by-text-search` — PDF Split Text Search (Read-only)

Split PDF by text search. See docs here

Full schema: https://pipedream.com/apps/pdf-co/actions/pdf-split-by-text-search.md

### `pdf_co-pdf-to-anything-converter` — PDF to Anything Converter (Read-only)

Convert PDF to CSV, JSON, Text, XLS, XLSX See docs here

Full schema: https://pipedream.com/apps/pdf-co/actions/pdf-to-anything-converter.md

### `pdf_co-pdf-remove-security` — Remove PDF security (Write)

Remove PDF security. See docs here

Full schema: https://pipedream.com/apps/pdf-co/actions/pdf-remove-security.md

### `pdf_co-pdf-search-text` — Search Text in PDF (Read-only)

Search text in PDF and get coordinates. Supports regular expressions. See docs here

Full schema: https://pipedream.com/apps/pdf-co/actions/pdf-search-text.md

---

- All apps: https://pipedream.com/apps — index: https://pipedream.com/llms.txt
- Pipedream docs for agents: https://pipedream.com/docs/llms.txt
