0CodeKit icon

0CodeKit

A toolbox of no-code utilities

Actions108

Overview

The node "0CodeKit" is a versatile toolbox of no-code utilities that supports multiple resources and operations, including AI-powered PDF OCR (Optical Character Recognition). Specifically, the AI - PDF OCR operation extracts text content from a PDF document provided via a URL. This functionality is useful for automating data extraction from PDFs such as invoices, reports, contracts, or scanned documents where text needs to be digitized for further processing.

Practical examples include:

  • Extracting text from scanned PDF documents for indexing or search.
  • Automating data entry by extracting structured information from PDF forms.
  • Feeding extracted text into other AI workflows for sentiment analysis, translation, or summarization.

Properties

Name Meaning
PDF URL The URL of the PDF file from which to extract text using AI-based OCR.
Code Variables A collection of user-defined code variables (name/ID and value) that can be passed to the code editor for custom scripting or dynamic input.

Note: The "Code Variables" property allows adding multiple variables, each with a selectable variable name or ID and an associated string value. This is useful when running custom code within the node's environment.

Output

The node outputs JSON data representing the result of the requested operation. For the AI - PDF OCR operation, the output JSON will contain the extracted text content from the specified PDF.

  • The exact structure depends on the API response but typically includes fields with recognized text segments.
  • If multiple items are processed, the output is an array of results.
  • The node does not explicitly handle binary data output for this operation; it focuses on textual extraction.

Dependencies

  • Requires an API key credential for authentication with the underlying 0CodeKit service.
  • The node makes HTTP POST requests to the endpoint path ai/pdfocr with the PDF URL parameter.
  • No additional external dependencies are indicated in the source code.

Troubleshooting

  • Common issues:

    • Invalid or inaccessible PDF URL: Ensure the URL is publicly accessible or properly authenticated if needed.
    • Unsupported PDF format or encrypted PDFs may cause extraction failures.
    • Network connectivity issues affecting API calls.
    • Missing or invalid API key credential will prevent successful requests.
  • Error messages:

    • Errors thrown during execution are caught and returned as error strings if "Continue On Fail" is enabled.
    • Typical errors relate to HTTP request failures or invalid parameters.
  • Resolution tips:

    • Verify the PDF URL is correct and reachable.
    • Check API key validity and permissions.
    • Enable "Continue On Fail" to handle partial failures gracefully.
    • Review API documentation for any rate limits or usage restrictions.

Links and References

  • n8n Expressions Documentation — for using expressions in variable definitions.
  • 0CodeKit official API documentation (not provided here, but recommended to consult for detailed API behavior).

This summary is based solely on static analysis of the provided source code and property definitions without runtime execution.

Discussion