View as Markdown
Fileforge icon

Fileforge ACTION

Generate PDF

Generate a PDF from provided HTML. See the documentation
  • Action
  • Writes data
  • API key
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's Fileforge account once, then configure and run Generate PDF from your backend or agent.

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: "fileforge-generate-pdf",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    fileforge: { authProvisionId: "apn_xxxxxxx" },
    files: ["File Paths or URLs"],
    test: true,
  },
})

console.log(result)

SCHEMA

Inputs

Pipedream supplies the connected account. Your application provides the operation-specific values below. Dynamic inputs are resolved against that user's account.

Generate PDF inputs
Property Type Description
files File Paths or URLs string[]
The HTML files to convert to PDF. For each entry, provide either a file URL or a path to a file in the /tmp directory (for example, /tmp/myFile.pdf)
Required
test Test boolean
Generate a test document instead of a production document. The generated document will contain a watermark. Defaults to true.
Optional
expiresAt Expires At string
The expiration timestamp for the PDF in ISO 8601 format
Optional
fileName Filename string
The desired filename for the generated PDF.
Optional
allowViewing Allow Viewing boolean
Specifies whether viewing is allowed.
Optional
syncDir SyncDir dir
Optional

REFERENCE

Tool details

Behavior hints are published with the component in the Pipedream registry and surface as MCP tool annotations, so an agent can reason about a tool before it calls it.

Registry key
fileforge-generate-pdf
Version
0.1.3
App
Fileforge
Authentication
API key
Read-only
No
Destructive
No
Open world
Yes