PDF.co Action Block
The PDF.co Action Block provides comprehensive PDF manipulation capabilities using the PDF.co API. Extract text, convert formats, add content, and perform search/replace operations on PDF documents.
⚠️
API Key Required. You need a PDF.co API key to use this block. Get one at pdf.co (opens in a new tab).
Supported Actions
Extract Text from PDF
Extracts plain text content from a PDF document.
Configuration:
- Source PDF URL: URL of the PDF to extract text from
- Pages: Page range (e.g., "0-2") or leave empty for all
- Password: PDF password if the document is protected
Convert HTML to PDF
Generates a PDF document from HTML content.
Configuration:
- HTML: HTML content to convert
- Paper Size: A4, Letter, Legal, or Tabloid
- Orientation: Portrait or Landscape
Convert PDF to Format
Transforms a PDF into structured data formats.
Configuration:
- Source PDF URL: URL of the PDF to convert
- Output Format: JSON, CSV, or XML
- Pages: Page range
Add Text to PDF
Adds text annotations to a PDF document.
Configuration:
- Source PDF URL, Text, X/Y Coordinates, Font Size, Pages
Add Image to PDF
Adds an image overlay to a PDF document.
Configuration:
- Source PDF URL, Image URL, X/Y Coordinates, Width/Height, Pages
Search and Replace Text
Finds and replaces text within a PDF document.
Configuration:
- Source PDF URL, Search String, Replace String, Case Sensitive
Use Cases
- Extracting data from invoices and receipts
- Generating PDF reports from HTML templates
- Converting PDF tables to CSV for analysis
- Adding watermarks or stamps to documents
- Automating document processing pipelines