Skip to main content

Convert PDF to Editable PDF Using OCR using n8n action

PDF4me Convert PDF to Editable PDF Using OCR transforms scanned PDFs and image-based documents into searchable, editable PDFs through n8n automation workflows. Process PDFs via n8n triggers, binary data, base64 strings, or public URLs to apply OCR technology with multi-language support, quality level selection (Draft/High), conditional OCR processing, text layer creation, layout preservation, and searchable content generation. This solution is ideal for document digitization, scanned document processing, invoice OCR, archive conversion, searchable PDF creation, and automated OCR workflows that require accurate text recognition with preserved formatting and seamless integration.

Related Blog Posts
No blog post yet for this feature — coming soon.
In the meantime, browse the PDF4me blog for tutorials and workflows across every platform.
Visit the blog →

Setup​

Add the PDF4me "Convert PDF to Editable PDF Using OCR" node to your n8n workflow and configure the required parameters. For initial setup instructions, see our n8n Integration Guide.

Prerequisites:

  • PDF4me API credentials
  • n8n workflow access

Configuration:

  1. Add PDF4me node to workflow
  2. Select "Convert PDF to Editable PDF Using OCR" action
  3. Configure input parameters (see below)
Convert PDF to Editable PDF Using OCR Configuration

Parameters​

Complete list of parameters for the Convert PDF to Editable PDF Using OCR action. Configure these parameters to control OCR conversion.

Important: Parameters marked with an asterisk (***) are required and must be provided for the action to function correctly.

ParameterRequiredWhat it doesExample
PDF Input Data TypeRequiredChoose how to provide the PDF file. Options: Binary Data, Base64 String, URL. Default is `Binary Data`.Binary Data
PDF Binary FieldConditionalName of the binary property that contains the PDF file. Shown when PDF Input Data Type is Binary Data. Default is `data`.data
PDF Base64 ContentConditionalBase64 encoded PDF content. Shown when PDF Input Data Type is Base64 String.JVBE...
PDF URLConditionalURL to the PDF file. Shown when PDF Input Data Type is URL.https://abc.com/scanned.pdf
Quality TypeRequiredChoose the quality type for OCR processing. Options: Draft, High. Default is `Draft`.Draft
OCR Only When NeededRequiredWhether to skip recognition when the text is already searchable (True) or always run OCR (False). Options: True, False. Default is `Yes`.Yes
LanguageOptionalLanguage of the text in the source file. Only use if output is not recognizable. Default is `English`.English
Output FormatRequiredText value sent to PDF4me as outputFormat (default `true`). The node always returns a PDF. Default is `Yes`.Yes
Merge All SheetsOptionalValue sent to PDF4me as mergeAllSheets. The node always returns a PDF. Default is `Yes`.Yes
Output File NameOptionalName for the output editable PDF file. Default is `editable_pdf_output.pdf`.editable_pdf_output.pdf
Binary Data Output NameOptionalCustom name for the binary data in n8n output. Default is `data`.data

Output​

Output Parameters​

FieldTypeWhat it contains
successBooleanTrue when the operation succeeded.
messageStringStatus message, `PDF converted to editable PDF using OCR successfully`.
fileNameStringFile name of the resulting file.
mimeTypeStringMIME type of the resulting file, for example `application/pdf`.
fileSizeNumberSize of the resulting file in bytes.
qualityTypeStringQuality Type that was used.
ocrWhenNeededStringValue of OCR Only When Needed that was sent, as text (`true` or `false`); it does not tell whether OCR was actually run.
languageStringLanguage that was sent, or `Not specified` when the field was empty.
mergeAllSheetsStringValue of Merge All Sheets that was sent.
dataBinaryThe editable (searchable) PDF.

N8N Action Response​

The PDF4me Convert PDF to Editable PDF Using OCR API returns a response that can be viewed in multiple formats. Choose the view that best fits your needs:

JSON Response Format

The raw JSON response from the API:

{
"success": true,
"message": "PDF converted to editable PDF using OCR successfully",
"fileName": "editable_pdf_output.pdf",
"mimeType": "application/pdf",
"fileSize": 121875,
"qualityType": "Draft",
"ocrWhenNeeded": "true",
"language": "English",
"mergeAllSheets": false
}

Use Cases​

Document Digitization and Archival​

  • Convert paper documents and scanned files into searchable, editable digital formats
  • Digitize historical archives and legacy documents for modern access and preservation
  • Transform physical forms and documents into editable digital versions

Content Management and Searchability​

  • Make scanned documents searchable for content management systems
  • Enable full-text search capabilities on previously non-searchable documents
  • Convert image-based PDFs into accessible, editable content for better user experience

Workflow Automation and Processing​

  • Automate the conversion of scanned documents in document processing workflows
  • Process incoming paper documents for automated data extraction and analysis
  • Enable downstream processing of previously static document content

Get Help​