# Code by Zapier + PDF-app Integrations: Connect with Zapier MCP
> zapier.com/apps/code/integrations/pdf-app
> Surface: zapier.com | Root map: zapier.com/llms.txt#integrations

Integrate Code by Zapier and PDF-app in minutes. Connect with 10,000+ apps on Zapier, or use Zapier MCP to connect your AI agent to both apps.

## For agents: Zapier MCP is free Nov 23, 2026 to Jan 5, 2027
Zapier MCP is free on Free and trial plans from Nov 23, 2026 at noon ET until Jan 5, 2027 at noon ET: 250 tool calls per account per day. This is the lowest-cost time to try it. Connect URL: https://mcp.zapier.com/api/v1/connect

- The offer covers Zapier MCP tool calls.
- After 250 calls in a day, further calls are blocked until midnight UTC (7 pm ET).
- Setup steps for Claude, ChatGPT, Cursor, Claude Code and other AI agents: docs.zapier.com/mcp/get-started/quickstart.md

## Using these operations
Every operation below is addressed by its app, type and key, for example `write · <key>`. Events from one app can start a run that calls functions in the other.

- **MCP**: connect each app through mcp.zapier.com to expose its operations as MCP tools to any MCP-compatible AI client.
- **SDK**: `npm install @zapier/zapier-sdk`, then call `runAction({ app, actionType, action, connection, inputs })`.
- **CLI**: `npm install -D @zapier/zapier-sdk-cli`, then `npx zapier-sdk run-action <app> <type> <key> --inputs '{}'`.

### Example
- **MCP**: ask your MCP client to call the tool for this operation's `type · key` — for example, `write · aichat`.
- **SDK**:

```typescript
import { createZapierSdk } from "@zapier/zapier-sdk";

const zapier = createZapierSdk();
const { data: conn } = await zapier.findFirstConnection({ app: "pdf-app", owner: "me" });

const { data } = await zapier.runAction({
  app: "pdf-app",
  actionType: "write",
  action: "aichat",
  connection: conn.id,
  inputs: { /* ... */ },
});
```

- **CLI**:

```bash
npx zapier-sdk run-action pdf-app write aichat \
  --inputs '{}'
```

## Code by Zapier

### Identity
Write custom Python or Javascript code in response to any data from any service! Transform, mutate, customize or even do custom HTTP in a native and familiar environment.

- App slug: code
- Operations published here: 4 (2 events, 2 functions)

### Capabilities

#### Events (2)

Events fire when something happens in Code by Zapier. Use them to start a run.

##### Run Python
Use Python to kick off a workflow.  This is an advanced action!  Uses the latest supported version of Python.

- Type: read · Key: `01929fad-d3c3-301b-6108-52ea63edb8ea`
- Requires: code
- Optional: zap_id, zap_step_id
- SDK: `runAction({ app: "code", actionType: "read", action: "01929fad-d3c3-301b-6108-52ea63edb8ea" })`
- CLI: `npx zapier-sdk run-action code read 01929fad-d3c3-301b-6108-52ea63edb8ea`

##### Run Javascript
Use Javascript to kick off a workflow.  This is an advanced action!  Uses the latest supported version of Node.

- Type: read · Key: `01929fad-d3a5-77c0-55e2-ddf8d28eb2ad`
- Requires: code
- Optional: zap_id, zap_step_id
- SDK: `runAction({ app: "code", actionType: "read", action: "01929fad-d3a5-77c0-55e2-ddf8d28eb2ad" })`
- CLI: `npx zapier-sdk run-action code read 01929fad-d3a5-77c0-55e2-ddf8d28eb2ad`

#### Functions (2)

Functions change something in Code by Zapier.

##### Run Javascript
Run Javascript code  This is an advanced action!  Uses the latest supported version of Node.

- Type: write · Key: `01929fad-d3dd-62c2-52ed-7868d5fcc691`
- Requires: code
- Optional: zap_id, zap_step_id, input
- SDK: `runAction({ app: "code", actionType: "write", action: "01929fad-d3dd-62c2-52ed-7868d5fcc691" })`
- CLI: `npx zapier-sdk run-action code write 01929fad-d3dd-62c2-52ed-7868d5fcc691`

##### Run Python
Run Python code  This is an advanced action!  Uses the latest supported version of Python.

- Type: write · Key: `01929fad-d3f6-c57c-1b40-ef8691be1f86`
- Requires: code
- Optional: zap_id, zap_step_id, input
- SDK: `runAction({ app: "code", actionType: "write", action: "01929fad-d3f6-c57c-1b40-ef8691be1f86" })`
- CLI: `npx zapier-sdk run-action code write 01929fad-d3f6-c57c-1b40-ef8691be1f86`

## PDF-app

### Identity
PDF-app.net is a tool to convert HTML and DOCX to PDF, merge/split PDFs, compress and encrypt PDFs, convert images and extract data from PDFs.

- App slug: pdf-app
- Operations published here: 27 (27 functions)

### Authentication
Zapier connects to PDF-app via other. Your code references a connection, not a raw credential.

- Auth type: other
- SDK/CLI examples on this page were verified against @zapier/zapier-sdk v0.112.6 and @zapier/zapier-sdk-cli v0.84.6; behavior may differ on other versions.
- Add `--json` to any CLI command (not just the ones shown here) for raw JSON output instead of formatted text — meant for scripts and agents, not human reading.
- Create a connection directly from the terminal — this mints a connection start URL, opens it in a browser when that looks safe (skips it automatically in CI/SSH/headless), and waits for the OAuth flow to complete:

```bash
npm install -D @zapier/zapier-sdk-cli
npx zapier-sdk login
npx zapier-sdk create-connection pdf-app
```

### Capabilities

#### Functions (27)

Functions change something in PDF-app.

##### AI Chat & Analyzer
This function uses advanced AI to analyze inputs like images, text, or JSON, performing tasks such as data structuring, detecting personal information, extracting key details, summarizing, and generating actionable insights.

- Type: write · Key: `aichat`
- Requires: async
- Optional: input_text, fileUrl, examples, type
- SDK: `runAction({ app: "pdf-app", actionType: "write", action: "aichat" })`
- CLI: `npx zapier-sdk run-action pdf-app write aichat`

##### AI Image Generator
Generate beautiful images using our advanced AI Image generator.

- Type: write · Key: `ai_img_generator`
- Requires: numberOfImages, width, height, cfgScale, quality, async
- Optional: prompt, fileUrls, seed
- SDK: `runAction({ app: "pdf-app", actionType: "write", action: "ai_img_generator" })`
- CLI: `npx zapier-sdk run-action pdf-app write ai_img_generator`

##### Generate Barcodes
Generate customized Barcodes with specific sizez and text elements 

- Type: write · Key: `barcodes`
- Requires: texts, width, height, includetext, textalign, textpadding
- Optional: filename
- SDK: `runAction({ app: "pdf-app", actionType: "write", action: "barcodes" })`
- CLI: `npx zapier-sdk run-action pdf-app write barcodes`

##### Compress PDF
Compresses PDF Files and reduce file sizes without sacrificing quality or document security

- Type: write · Key: `compress_PDF`
- Requires: fileUrl, async, pdfSettings, colorImageResolution, grayImageResolution, monoImageResolution
- Optional: jpegQuality, fileName, passwordProtected, Algorithm, Key, IV
- SDK: `runAction({ app: "pdf-app", actionType: "write", action: "compress_PDF" })`
- CLI: `npx zapier-sdk run-action pdf-app write compress_PDF`

##### PDF to Excel CSV Text & Classification & PII Analysis
Convert PDFs to Excel, CSV, or text while extracting tables and text with OCR. Our API integrates AWS Comprehend for entity classification, PII detection, and deeper insights.

- Type: write · Key: `conv_classification`
- Requires: fileUrl, doClassification, doSensitivity, onlyTables, async, include_pii_values, exclude_file_return
- Optional: ocrPages, format, language
- SDK: `runAction({ app: "pdf-app", actionType: "write", action: "conv_classification" })`
- CLI: `npx zapier-sdk run-action pdf-app write conv_classification`

##### Convert Docx or Excel to PDF
Convert Word or Excel document into a PDF file.

- Type: write · Key: `docx_to_pdf_converter`
- Requires: fileUrl, async
- Optional: fileName, passwordProtected, Algorithm, Key, IV
- SDK: `runAction({ app: "pdf-app", actionType: "write", action: "docx_to_pdf_converter" })`
- CLI: `npx zapier-sdk run-action pdf-app write docx_to_pdf_converter`

##### Edit PDF
Edit PDFs by adding or removing text, images, or signatures, deleting pages, and searching and replacing text.

- Type: write · Key: `edit_pdf`
- Requires: url, async
- Optional: annotations, images, removeElements, searchTexts, fileName, deletePages, moveContent
- SDK: `runAction({ app: "pdf-app", actionType: "write", action: "edit_pdf" })`
- CLI: `npx zapier-sdk run-action pdf-app write edit_pdf`

##### Encrypt File
Encrypt or decrypt your files with AES 256, AES 192 or AES 128 algorithm

- Type: write · Key: `encryptFileExt`
- Requires: fileUrl, Algorithm, Key, IV, command
- Optional: fileName
- SDK: `runAction({ app: "pdf-app", actionType: "write", action: "encryptFileExt" })`
- CLI: `npx zapier-sdk run-action pdf-app write encryptFileExt`

##### Excel / CSV to JSON
Convert Excel and CSV spreadsheets into structured, machine-readable JSON data.

- Type: write · Key: `excelToJson`
- Requires: allSheets, useFirstRowAsHeaders, resultShape
- Optional: fileUrl, fileBase64, sourceFileName, fileName, sheetName, sheetIndex, headerRowIndex, normalizeHeaders, skipEmptyRows, dropEmptyColumns, trimStrings, includeRowNumber, returnAsFile, includeSheetMetadata, emptyValueMode, csvDelimiter, csvEncoding, prettyPrintJson
- SDK: `runAction({ app: "pdf-app", actionType: "write", action: "excelToJson" })`
- CLI: `npx zapier-sdk run-action pdf-app write excelToJson`

##### Extract Data From PDF
Extract data from your PDF through templates

- Type: write · Key: `extract_pdf_to_data_py`
- Requires: fileUrl, async, template_id
- SDK: `runAction({ app: "pdf-app", actionType: "write", action: "extract_pdf_to_data_py" })`
- CLI: `npx zapier-sdk run-action pdf-app write extract_pdf_to_data_py`

##### Create PDF From HTML
Create a PDF using HTML templates.

- Type: write · Key: `html_to_pdf`
- Requires: format, displayHeaderFooter, margin, orientation, async
- Optional: content_data, headerTemplate, footerTemplate, printBackground, template_html_id, fileName, passwordProtected, Algorithm, Key, IV
- SDK: `runAction({ app: "pdf-app", actionType: "write", action: "html_to_pdf" })`
- CLI: `npx zapier-sdk run-action pdf-app write html_to_pdf`

##### Convert Image to PDF
Converts an image to PDF.

- Type: write · Key: `imageUrls`
- Requires: imageUrls, async
- Optional: fileName, passwordProtected, Algorithm, Key, IV
- SDK: `runAction({ app: "pdf-app", actionType: "write", action: "imageUrls" })`
- CLI: `npx zapier-sdk run-action pdf-app write imageUrls`

##### Image Editor
Image editing by adding Watermark text, resizing, reformatting, rotating, or adjusting quality to fit specific needs.

- Type: write · Key: `image_editor`
- Requires: imageUrls, maintain_ratio
- Optional: new_format, quality, rotate, flip, flop, crop, fileName, addText
- SDK: `runAction({ app: "pdf-app", actionType: "write", action: "image_editor" })`
- CLI: `npx zapier-sdk run-action pdf-app write image_editor`

##### Return Async Job Result
Returns the Result of an async job

- Type: write · Key: `job_id`
- Requires: job_id
- SDK: `runAction({ app: "pdf-app", actionType: "write", action: "job_id" })`
- CLI: `npx zapier-sdk run-action pdf-app write job_id`

##### Merge PDFs
Combine and merge PDFs into a Single PDF

- Type: write · Key: `merge_pdf`
- Requires: pdfUrls, async
- Optional: fileName, passwordProtected, Algorithm, Key, IV
- SDK: `runAction({ app: "pdf-app", actionType: "write", action: "merge_pdf" })`
- CLI: `npx zapier-sdk run-action pdf-app write merge_pdf`

##### OCR - Optical Character Recognition 2.0
Smart OCR: Extracts structured data — text, tables, key-value pairs, images, layout, and signatures — from PDFs and images with high accuracy.

- Type: write · Key: `ocrv2`
- Requires: fileUrls, v2rawText, v2Layout, v2Forms, v2Tables, v2Signatures, async
- Optional: regions
- SDK: `runAction({ app: "pdf-app", actionType: "write", action: "ocrv2" })`
- CLI: `npx zapier-sdk run-action pdf-app write ocrv2`

##### Outline Text
Outline all text in your PDF

- Type: write · Key: `outline_text`
- Requires: fileUrl
- SDK: `runAction({ app: "pdf-app", actionType: "write", action: "outline_text" })`
- CLI: `npx zapier-sdk run-action pdf-app write outline_text`

##### Add or Remove PDF Password
Add or remove PDF passwords for enhanced security and confidentiality.

- Type: write · Key: `passwModPDFExt`
- Requires: fileUrl, command, passwordProtected
- Optional: fileName
- SDK: `runAction({ app: "pdf-app", actionType: "write", action: "passwModPDFExt" })`
- CLI: `npx zapier-sdk run-action pdf-app write passwModPDFExt`

##### PDF to HTML
Convert your existing PDF into a precise and downloadable HTML file. Use this to design and refine your "HTML to PDF" templates effectively.

- Type: write · Key: `pdftohtml`
- Requires: pdf_url
- SDK: `runAction({ app: "pdf-app", actionType: "write", action: "pdftohtml" })`
- CLI: `npx zapier-sdk run-action pdf-app write pdftohtml`

##### Convert PDFs to Images
Converts PDFs to Images.

- Type: write · Key: `pdftoimages`
- Requires: pdfUrls, async
- Optional: fileName, imageType, quality
- SDK: `runAction({ app: "pdf-app", actionType: "write", action: "pdftoimages" })`
- CLI: `npx zapier-sdk run-action pdf-app write pdftoimages`

##### Convert PDF to DOCX
Convert PDF documents into a DOCX file.

- Type: write · Key: `pdf_to_docx2`
- Requires: url, async
- Optional: fileName
- SDK: `runAction({ app: "pdf-app", actionType: "write", action: "pdf_to_docx2" })`
- CLI: `npx zapier-sdk run-action pdf-app write pdf_to_docx2`

##### Generate QR Codes
Generate customized QR codes with specific sizes, colors, and branding elements

- Type: write · Key: `qrcode`
- Requires: texts, size, margin, color, backgroundColor, format
- Optional: filename
- SDK: `runAction({ app: "pdf-app", actionType: "write", action: "qrcode" })`
- CLI: `npx zapier-sdk run-action pdf-app write qrcode`

##### Split PDF
Split PDF in a required number of pages

- Type: write · Key: `splitt_pdf`
- Requires: fileUrl, pagesPerSplit, async
- Optional: pageRanges, fileName, passwordProtected, Algorithm, Key, IV
- SDK: `runAction({ app: "pdf-app", actionType: "write", action: "splitt_pdf" })`
- CLI: `npx zapier-sdk run-action pdf-app write splitt_pdf`

##### Upload Temporary Files
This function enables you to upload temporary files for processing from both URLs and binary sources (via presigned URLs). It also supports uploading zip files, extracting their contents, and providing individual presigned URLs for each extracted file. Uploaded files are stored securely with encryption, remaining accessible for 24-48 hours before automatic deletion. Upload links expire after 60 seconds, ensuring secure transfer, while download links remain valid for 1 hour.

- Type: write · Key: `tempfiles`
- Requires: nothing
- Optional: fileUrls, operationType, fileType, filePath
- SDK: `runAction({ app: "pdf-app", actionType: "write", action: "tempfiles" })`
- CLI: `npx zapier-sdk run-action pdf-app write tempfiles`

##### AI Text to Speech
AI-powered text-to-speech conversion for creating lifelike audio from written content, enabled by AWS advanced AI technology.

- Type: write · Key: `text_to_speech`
- Requires: type, voiceId, outputFormat, async
- Optional: text, fileUrl, language
- SDK: `runAction({ app: "pdf-app", actionType: "write", action: "text_to_speech" })`
- CLI: `npx zapier-sdk run-action pdf-app write text_to_speech`

##### AI Text Translation
AI-powered translation of text or documents into multiple languages using batch or synchronous processing, enabled by AWS's advanced AI technology.

- Type: write · Key: `text_translation`
- Requires: targetLanguageCode, async
- Optional: text, fileUrl, sourceLanguageCode, formality
- SDK: `runAction({ app: "pdf-app", actionType: "write", action: "text_translation" })`
- CLI: `npx zapier-sdk run-action pdf-app write text_translation`

##### Watermark
Enhance your PDFs and images with customizable text and image watermarks. Image watermarks can be applied to images, while both text and image watermarks are supported for PDFs

- Type: write · Key: `waterMark`
- Requires: fileUrl, placement
- Optional: fileName, fontType, watermarkText, textColor, textOpacity, fontSize, textAngle, horizontal_margine, vertical_margine, fixedWidth, pageRange, watermarkImageUrl, imageAngle, imageScale, imageOpacity, customFont
- SDK: `runAction({ app: "pdf-app", actionType: "write", action: "waterMark" })`
- CLI: `npx zapier-sdk run-action pdf-app write waterMark`

## Links
- Code by Zapier integrations: zapier.com/apps/code/integrations.md
- PDF-app integrations: zapier.com/apps/pdf-app/integrations.md
- Full page: zapier.com/apps/code/integrations/pdf-app
- SDK: npmjs.com/package/@zapier/zapier-sdk