Workflows
Blocks
Actions
PDF

PDF Action Block

The PDF Action Block provides local PDF processing capabilities including text extraction, text-to-PDF conversion, and image-to-PDF conversion. No external API required.

No authentication required. All PDF operations run locally using pdf-lib and pdf-parse.

Supported Actions

Extract Text from PDF

Extracts all text content from a PDF file.

Configuration:

  • PDF File URL: URL of the PDF to extract text from (supports {{variables}})

Output:

{
  "text": "Extracted text content...",
  "pages": 5
}

Text to PDF

Converts text content into a PDF document with automatic word-wrapping and pagination.

Configuration:

  • Text: Text content to convert (supports {{variables}})

Features:

  • A4 page size (595x842)
  • Helvetica font at 12pt
  • Automatic word-wrap with 50px margins
  • Auto-pagination when content exceeds page height

Output: Base64-encoded PDF data URL

Image to PDF

Converts an image (PNG or JPG) into a PDF document.

Configuration:

  • Image URL: URL of the image to convert (supports {{variables}})

Features:

  • Supports PNG and JPEG formats
  • Automatically scales images to fit A4 page size
  • 30px margins on all sides

Output: Base64-encoded PDF data URL

Use Cases

  • Extracting text from uploaded PDF documents for processing
  • Generating PDF reports from workflow data
  • Converting receipt images to PDF for archiving
  • Creating PDF documents from email or chat content
Indite Documentation v1.6.0
PrivacyTermsSupport