# Zapier — PDFGate Integrations
> zapier.com/apps/pdfgate/integrations
> Surface: zapier.com | Root map: zapier.com/llms.txt#integrations

## 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

## Identity
PDFGate is a fast, developer-friendly HTML-to-PDF API with support for forms, custom styling, and full browser rendering.

- App slug: pdfgate
- Operations published here: 14 (2 events, 10 functions, 2 queries)

## Authentication
Zapier connects to PDFGate 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 pdfgate
```

## Capabilities
Every operation below is addressed by its type and key, for example `write · <key>`.

Zap editor: every operation below is also configurable without code at zapier.com/apps/pdfgate/integrations — useful for a human in the loop, not usually for an agent calling the SDK or MCP directly.

### Getting Started
- **MCP**: connect PDFGate through mcp.zapier.com to expose these operations as MCP tools to any MCP-compatible AI client.
- **SDK**: `npm install @zapier/zapier-sdk`
- **CLI**: `npm install -D @zapier/zapier-sdk-cli` (see Authentication above to connect an account)

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

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

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

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

- **CLI**:

```bash
npx zapier-sdk run-action pdfgate write compressPdf \
  --inputs '{}'
```

Paginating results: some calls return more than fits in one response — for example, listing PDFGate's actions, or a search action's matches. In TypeScript, iterate with `.pages()` or `.items()` rather than assuming a single page:

```typescript
for await (const action of zapier.listActions({ app: "pdfgate" }).items()) {
  console.log(action.key);
}
```

From the shell, the same `--cursor`/`--max-items`/`--page-size` flags work on `list-actions` and directly on `run-action`. Add `--json` for output a script can parse instead of formatted text:

```bash
npx zapier-sdk list-actions pdfgate --page-size 50 --max-items 200 --json
```

### Events (2)

Events fire when something happens in PDFGate. Use them to start a run.

#### Envelope Completed
Triggers when all recipients have signed a PDFGate envelope.

- Type: read · Key: `envelopeCompleted`
- Requires: nothing
- SDK: `runAction({ app: "pdfgate", actionType: "read", action: "envelopeCompleted" })`
- CLI: `npx zapier-sdk run-action pdfgate read envelopeCompleted`

#### Envelope Sent
Triggers when a PDFGate envelope is sent to recipients and signing has begun.

- Type: read · Key: `envelopeSent`
- Requires: nothing
- SDK: `runAction({ app: "pdfgate", actionType: "read", action: "envelopeSent" })`
- CLI: `npx zapier-sdk run-action pdfgate read envelopeSent`

### Functions (10)

Functions change something in PDFGate.

#### Compress PDF
Compress a PDF to reduce its file size without changing visual content.

- Type: write · Key: `compressPdf`
- Requires: documentId
- Optional: linearize, preSignedUrlExpiresIn, metadata
- SDK: `runAction({ app: "pdfgate", actionType: "write", action: "compressPdf" })`
- CLI: `npx zapier-sdk run-action pdfgate write compressPdf`

#### Create Envelope
Create a signing envelope from one or more existing PDFGate documents.

- Type: write · Key: `createEnvelope`
- Requires: requesterName, sourceDocumentId, documentName, recipient1Email, recipient1Name
- Optional: documentsInstructions, recipient1Role, reminderIntervalDays, reminderAttempts, recipient2Email, recipient2Name, recipient2Role, recipient3Email, recipient3Name, recipient3Role, recipient4Email, recipient4Name, recipient4Role, metadata
- SDK: `runAction({ app: "pdfgate", actionType: "write", action: "createEnvelope" })`
- CLI: `npx zapier-sdk run-action pdfgate write createEnvelope`

#### Delete Document
Delete a stored PDFGate document by ID.

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

#### Extract PDF Form Data
Extract form field data from a fillable PDF and return it as a JSON object.

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

#### Flatten PDF
Flatten an interactive PDF into a static, non-editable PDF.

- Type: write · Key: `flattenPdf`
- Requires: documentId
- Optional: preSignedUrlExpiresIn, metadata
- SDK: `runAction({ app: "pdfgate", actionType: "write", action: "flattenPdf" })`
- CLI: `npx zapier-sdk run-action pdfgate write flattenPdf`

#### Generate PDF
Generate a PDF from a URL or raw HTML.

- Type: write · Key: `generatePdf`
- Requires: nothing
- Optional: url, html, preSignedUrlExpiresIn, pageSizeType, enableFormFields, width, height, orientation, header, footer, marginTop, marginBottom, marginLeft, marginRight, timeout, javascript, css, emulateMediaType, waitForSelector, clickSelector, clickSelectorChainSetup, waitForNetworkIdle, delay, loadImages, scale, pageRanges, printBackground, userAgent, httpHeaders, authenticationUsername, authenticationAccessCode, viewportWidth, viewportHeight, metadata
- SDK: `runAction({ app: "pdfgate", actionType: "write", action: "generatePdf" })`
- CLI: `npx zapier-sdk run-action pdfgate write generatePdf`

#### Protect PDF
Encrypt a PDF and optionally apply permission restrictions.

- Type: write · Key: `protectPdf`
- Requires: documentId
- Optional: preSignedUrlExpiresIn, algorithm, userAccessCode, ownerAccessCode, disableEditing, disableCopy, disablePrint, encryptMetadata, metadata
- SDK: `runAction({ app: "pdfgate", actionType: "write", action: "protectPdf" })`
- CLI: `npx zapier-sdk run-action pdfgate write protectPdf`

#### Send Envelope
Send a signing envelope to its recipients.

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

#### Upload File
Upload a PDF from a URL so it can be referenced by other PDFGate operations.

- Type: write · Key: `uploadFile`
- Requires: url
- Optional: preSignedUrlExpiresIn, metadata
- SDK: `runAction({ app: "pdfgate", actionType: "write", action: "uploadFile" })`
- CLI: `npx zapier-sdk run-action pdfgate write uploadFile`

#### Watermark PDF
Apply a text watermark to a PDF.

- Type: write · Key: `watermarkPdf`
- Requires: documentId, text
- Optional: fontSize, fontColor, font, opacity, rotate, yPosition, xPosition, preSignedUrlExpiresIn, metadata
- SDK: `runAction({ app: "pdfgate", actionType: "write", action: "watermarkPdf" })`
- CLI: `npx zapier-sdk run-action pdfgate write watermarkPdf`

### Queries (2)

Queries read from PDFGate and return data. They change nothing.

#### Get Document
Retrieve a PDFGate document by ID.

- Type: search · Key: `getDocument`
- Requires: documentId
- Optional: preSignedUrlExpiresIn
- SDK: `runAction({ app: "pdfgate", actionType: "search", action: "getDocument" })`
- CLI: `npx zapier-sdk run-action pdfgate search getDocument`

#### Get Envelope
Retrieve a PDFGate envelope by ID.

- Type: search · Key: `getEnvelope`
- Requires: envelopeId
- SDK: `runAction({ app: "pdfgate", actionType: "search", action: "getEnvelope" })`
- CLI: `npx zapier-sdk run-action pdfgate search getEnvelope`

## Popular integrations
- [PDFGate + Gmail](zapier.com/apps/pdfgate/integrations/gmail.md)
- [PDFGate + Microsoft Outlook](zapier.com/apps/pdfgate/integrations/microsoft-outlook.md)
- [PDFGate + Airtable](zapier.com/apps/pdfgate/integrations/airtable.md)
- [PDFGate + ActiveCampaign](zapier.com/apps/pdfgate/integrations/activecampaign.md)

## Links
- Full app page: zapier.com/apps/pdfgate/integrations
- MCP: zapier.com/mcp/pdfgate
- SDK: npmjs.com/package/@zapier/zapier-sdk