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.
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:
- Add PDF4me node to workflow
- Select "Convert PDF to Editable PDF Using OCR" action
- Configure input parameters (see below)

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.
| Parameter | Required | What it does | Example |
|---|---|---|---|
| PDF Input Data Type | Required | Choose how to provide the PDF file. Options: Binary Data, Base64 String, URL. Default is `Binary Data`. | Binary Data |
| PDF Binary Field | Conditional | Name of the binary property that contains the PDF file. Shown when PDF Input Data Type is Binary Data. Default is `data`. | data |
| PDF Base64 Content | Conditional | Base64 encoded PDF content. Shown when PDF Input Data Type is Base64 String. | JVBE... |
| PDF URL | Conditional | URL to the PDF file. Shown when PDF Input Data Type is URL. | https://abc.com/scanned.pdf |
| Quality Type | Required | Choose the quality type for OCR processing. Options: Draft, High. Default is `Draft`. | Draft |
| OCR Only When Needed | Required | Whether to skip recognition when the text is already searchable (True) or always run OCR (False). Options: True, False. Default is `Yes`. | Yes |
| Language | Optional | Language of the text in the source file. Only use if output is not recognizable. Default is `English`. | English |
| Output Format | Required | Text value sent to PDF4me as outputFormat (default `true`). The node always returns a PDF. Default is `Yes`. | Yes |
| Merge All Sheets | Optional | Value sent to PDF4me as mergeAllSheets. The node always returns a PDF. Default is `Yes`. | Yes |
| Output File Name | Optional | Name for the output editable PDF file. Default is `editable_pdf_output.pdf`. | editable_pdf_output.pdf |
| Binary Data Output Name | Optional | Custom name for the binary data in n8n output. Default is `data`. | data |
Output
Output Parameters
| Field | Type | What it contains |
|---|---|---|
success | Boolean | True when the operation succeeded. |
message | String | Status message, `PDF converted to editable PDF using OCR successfully`. |
fileName | String | File name of the resulting file. |
mimeType | String | MIME type of the resulting file, for example `application/pdf`. |
fileSize | Number | Size of the resulting file in bytes. |
qualityType | String | Quality Type that was used. |
ocrWhenNeeded | String | Value of OCR Only When Needed that was sent, as text (`true` or `false`); it does not tell whether OCR was actually run. |
language | String | Language that was sent, or `Not specified` when the field was empty. |
mergeAllSheets | String | Value of Merge All Sheets that was sent. |
data | Binary | The 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
- Table
- Schema
- Binary
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
}
Table View
Response data in a structured table format:
| Parameter | Value |
|---|---|
| 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 |
Schema View
The data structure and types of the response:
success: ✓ true
message: AB PDF converted to editable PDF using OCR successfully
fileName: AB editable_pdf_output.pdf
mimeType: AB application/pdf
fileSize: # 121875
qualityType: AB Draft
ocrWhenNeeded: AB true
language: AB English
mergeAllSheets: ✓ false
Type Indicators:
AB= String#= Number✓= Boolean
Binary Data View
The actual editable PDF file data and metadata:
data
─────────────────────────────────────────
File Name: editable_pdf_output.pdf
File Extension: pdf
Mime Type: application/pdf
File Size: 119.0 KB
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