Actions132
- AI Actions
- Extract Text From Document
- Check Content Policy
- Detect Adult Content
- Detect Brand
- Detect Color
- Detect Email Type
- Detect Faces
- Extract Entities
- Extract Contact Information
- Extract Customizable Information From Text
- Fuzzy Text Matcher
- Generate Image
- Generate JavaScript Code
- Generate Python Code
- Detect Language
- Detect Mood
- Extract Text From PDF
- Recognize Objects in Image
- Extract Text From Image
- Redact Sensitive Information From PDF
- Remove Background Image
- Summarize Text
- Transcribe
- Translate Text
- Image Actions
- Business Actions
- Convert Actions
- Generate Actions
- Crypto Actions
- Operator Actions
- Storage Actions
- Scheduler Actions
- Text Actions
- Chart Actions
- Code Actions
- Calculate Actions
- Date and Time Actions
- PDF Actions
- Compress PDF File
- Count PDF Pages
- Create Empty PDF
- Decrypt PDF
- Convert DOCX to PDF
- Draw Image on PDF
- Draw Text on PDF
- Encrypt PDF
- Convert HTML to PDF
- Convert Markdown to PDF
- Manage PDF Metadata
- Merge PDF Files
- Add PDF Pages
- Remove PDF Pages
- Resize PDF Pages
- Rotate PDF Pages
- Convert PDF to Base64
- Convert PDF to Image
- Split PDF File
- Add Image Watermark to PDF
- Add Text Watermark to PDF
- Shortened URL Actions
AI → Extract Text From PDF
AI-generatedOverview
The node provides a utility to extract text content from PDF documents using AI-powered OCR (Optical Character Recognition). It is designed to process PDF files accessible via a URL and return the extracted textual data. This functionality is useful in scenarios where you need to digitize or analyze the contents of scanned PDFs, automate data extraction from invoices, reports, or any document stored as PDF, and integrate this capability into workflows without manual intervention.
For example, you could use this node to:
- Automatically extract text from PDF invoices received by email for further processing.
- Convert scanned PDF reports into searchable text for indexing or analysis.
- Extract textual data from PDF forms submitted online.
Properties
| Name | Meaning |
|---|---|
| PDF URL | The URL of the PDF document to extract text from using AI. Example: https://example.com/document.pdf |
Output
The node outputs JSON data containing the extracted text from the provided PDF document. The exact structure is not detailed in the source code snippet, but typically it would include fields such as the recognized text content, possibly segmented by pages or blocks.
If the node supports binary data output (not explicitly shown here), it would likely represent the original PDF or processed images, but based on the provided information, the focus is on JSON text extraction results.
Dependencies
- Requires an API key credential for authentication with the external AI service at
https://prod.0codekit.com. - The node sends a POST request to the
/ai/pdfocrendpoint with the PDF URL in the request body. - Proper network access to the PDF URL must be ensured for successful retrieval and processing.
Troubleshooting
Common issues:
- Invalid or inaccessible PDF URL: Ensure the URL is publicly accessible or accessible from the n8n environment.
- Authentication errors: Verify that the API key credential is correctly configured and valid.
- Large or complex PDFs might cause timeouts or incomplete extraction.
Error messages:
- "Failed to fetch PDF": Check the URL and network connectivity.
- "Authentication failed": Confirm API key validity and permissions.
- "Extraction error": Could indicate unsupported PDF format or corrupted file; try with a different PDF.
Links and References
- OCR Technology Overview
- PDF Specification
- 0CodeKit API Documentation (if available) (hypothetical link based on baseURL)