Other operations (Get, Download, Delete)

Beyond generating documents, the PDFMonkey node supports several other operations to manage your documents.

Get Document

The Get Document operation retrieves information about a previously generated document.

When to use it

  • Check the status of a document that's being generated

  • Retrieve the download URL later in your workflow

  • Get metadata attached to a document

  • Verify a document exists before processing

Configuration

Required fields:

  • Document ID: The ID of the document to retrieve

Example:

Document ID: {{ $json.documentId }}

Output

Returns complete document information:

Document status values

  • pending - Document is queued for generation

  • generating - Document is currently being generated

  • success - Document generated successfully

  • failure - Generation failed

Use case: Polling for completion

If you generated a document with Wait for Document disabled, you can poll for its completion:

circle-info

Better approach: Use webhooks

Instead of polling, consider using the PDFMonkey Trigger to be notified when documents are ready.

Download File

The Download File operation downloads a generated PDF as binary data.

When to use it

  • Download a PDF that was generated earlier

  • Get the binary data separately from generation

  • Re-download a document for processing

Configuration

Required fields:

  • Document ID: The ID of the document to download

Optional fields:

  • Binary Property Name: Name for the binary data (default: data)

Example:

Output

The PDF is stored as binary data and can be used in:

  • Email attachments

  • File storage nodes (Google Drive, Dropbox, etc.)

  • FTP uploads

  • Further processing nodes

Use case: Download and email later

circle-info

Generate Document has built-in download

If you're generating and immediately downloading, use the Download File option in the Generate Document operation instead of a separate Download File node.

Delete Document

The Delete Document operation permanently removes a document from PDFMonkey.

When to use it

  • Clean up after sending a document

  • Remove documents containing sensitive data

  • Manage storage quotas

  • Implement document retention policies

Configuration

Required fields:

  • Document ID: The ID of the document to delete

Example:

Output

Returns a success confirmation:

circle-exclamation

Use case: Auto-cleanup after email

Use case: Delete after storage

circle-info

TTL as alternative

Consider using PDFMonkey's automatic deletion (TTL) feature instead of manually deleting documents. You can set documents to auto-delete after a certain time during generation.

Combining operations

Example: Generate, store, and cleanup

Example: Conditional download based on status

Example: Re-generate and replace

Error handling

All operations can fail for various reasons:

  • Document not found - Invalid document ID

  • Network errors - Connection issues

  • Permission errors - Invalid credentials

  • Rate limits - Too many requests

Use n8n's error handling:

Rate limits and quotas

Keep in mind:

  • API rate limits: PDFMonkey may rate-limit excessive API calls

  • Document quotas: Your plan has monthly generation limits

  • Storage limits: Documents are stored for a limited time

For high-volume workflows:

  • Add Wait nodes between operations

  • Use batch processing

  • Consider upgrading your PDFMonkey plan

Document generation options in n8nchevron-rightReacting to generated documents in n8nchevron-rightAutomatic deletion (TTL)chevron-right

Last updated

Was this helpful?