CONNECT APP
Build with PDF.co
File Storage
- API key
MCP
Give your agent PDF.co tools
Every PDF.co action is exposed as an MCP tool on Pipedream's remote server. Point a client at it with your end user's ID and Connect resolves that user's PDF.co account for each tool call — you store no tokens.
// accessToken: mint a short-lived token with the Connect SDK — see the MCP guide
const transport = new StreamableHTTPClientTransport(
new URL("https://remote.mcp.pipedream.net/v3"),
{
requestInit: {
headers: {
Authorization: `Bearer ${accessToken}`,
"x-pd-project-id": "{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",
},
})# access_token: mint a short-lived token with the Connect SDK — see the MCP guide
headers = {
"Authorization": f"Bearer {access_token}",
"x-pd-project-id": "{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",
}
async with streamablehttp_client("https://remote.mcp.pipedream.net/v3", headers=headers) as (read, write, _):
async with ClientSession(read, write) as session:
await session.initialize()
tools = await session.list_tools()
# e.g. run Add PDF security:
result = await session.call_tool("pdf_co-pdf-add-security", {
"async": True,
"name": "Name",
})API PROXY
Call the PDF.co API directly
For an endpoint with no pre-built tool, the Connect proxy forwards your request to the PDF.co API with the connected user's credentials attached. You store no tokens and write no refresh logic.
const resp = await pd.proxy.get({
externalUserId: "{external_user_id}", // any stable ID for this user in your system
accountId: "apn_xxxxxxx",
url: "https://api.pdf.co/v1/account/credit/balance",
})
// Any allowed PDF.co endpoint works here. Pipedream attaches the
// connected account's credentials to the outgoing request.# 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"SDK
Run PDF.co actions from your backend
Connect a user's PDF.co account once, then run Add PDF security on their behalf from your own code — TypeScript, Python, or plain HTTP.
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",
},
})from pipedream import Pipedream
pd = Pipedream(
client_id="{oauth_client_id}",
client_secret="{oauth_client_secret}",
project_id="{project_id}",
project_environment="production",
)
result = pd.actions.run(
id="pdf_co-pdf-add-security",
external_user_id="{external_user_id}", # any stable ID for this user in your system
configured_props={
"pdf_co": {"authProvisionId": "apn_xxxxxxx"},
"async": True,
"name": "Name",
},
)curl -X POST https://api.pipedream.com/v1/connect/{project_id}/actions/run \
-H "Content-Type: application/json" \
-H "X-PD-Environment: production" \
-H "Authorization: Bearer {access_token}" \
-d '{
"external_user_id": "{external_user_id}",
"id": "pdf_co-pdf-add-security",
"configured_props": {
"pdf_co": { "authProvisionId": "apn_xxxxxxx" },
"async": true,
"name": "Name"
}
}'TOOLS
PDF.co actions
On-demand operations your product or agent can configure and run on behalf of a connected user.
-
Add PDF security
actionAdd PDF security. See docs hereWritev0.0.2 -
Anything to PDF Converter
actionConvert CSV, XLS, XLSX, DOC, DOCX, RTF, TXT, XPS, JPG, PNG, TIFF, URL, EMAIL to PDF. See docs hereRead-onlyv0.0.2 -
Barcode Generator
actionGenerate high quality barcode images. Supports QR Code, DataMatrix, Code 39, Code 128, PDF417 and many other barcode types. See docs hereWritev0.0.3 -
Barcode Reader
actionRead 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 hereRead-onlyv0.0.2 -
Custom API Call
actionCustom API Call. See docs hereWritev0.0.2 -
Document Classifier
actionAuto classification of incoming documents. See docs hereWritev0.0.2 -
Document Parser
actionDocument 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 hereRead-onlyv0.0.3 -
Document Toggle Searchable
actionTurn PDF and scanned JPG, PNG images into text-searchable PDF or text-unsearchable. See docs hereWritev0.0.2 -
HTML to PDF Converter
actionConvert HTML code snippet into full featured PDF. See docs hereRead-onlyv0.0.2 -
PDF Find Table
actionAI 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 hereRead-onlyv0.0.2 -
PDF Info Reader
actionGet detailed information about the PDF document, properties and security permissions. See docs hereRead-onlyv0.0.2 -
PDF Merge
actionMerge PDF from two or more PDF files into a new one. See docs hereWritev0.0.2 -
PDF Split by Page Index
actionSplit PDF by page index. See docs hereWritev0.0.2 -
PDF Split Text Search
actionSplit PDF by text search. See docs hereRead-onlyv0.0.2 -
PDF to Anything Converter
actionConvert PDF to CSV, JSON, Text, XLS, XLSX See docs hereRead-onlyv0.0.2 -
Remove PDF security
actionRemove PDF security. See docs hereWritev0.0.2 -
Search Text in PDF
actionSearch text in PDF and get coordinates. Supports regular expressions. See docs hereRead-onlyv0.0.2
No PDF.co triggers are available yet.
MULTI-APP
Use PDF.co with other popular apps
Most products don't stop at one integration. Pair PDF.co with the other apps your users rely on, and ship use cases that span both.
- App slug
- pdf_co
- Authentication
- API key
- Categories
- File Storage
- Actions
- 17
- Triggers
- 0
- API proxy
- Available