Convert PDF to editable PDF using OCR
Connector ID: PDF OCR
PDF files can be created with scanned images and pictures of text, without much difference in the quality of content from the source image. OCR method is aptly used in this feature of PDF4me.
- Method: POST
- Endpoint: /api/v2/ConvertOcrPdf
Parameters
- File ContentBase64, Required
Map source PDF file content from the previous action
- File NameString, Required
Source file name with proper file extension
- Quality TypeString, Required
Choose the quality type.
- Draft - Suitable for normal PDFs, consumes 1 API call per file
- High - Suitable for PDFs generated from Images and scanned documents. Consumes 2 API calls per page
- OCR Only When NeededString, Required
Set ‘true’ to skip doing recognition if the text is already searchable
- LanguageString
Specify the language of the text in the source file. Only use if the output is not recognizable
- Output FormatString, Required
The output must be in string format.
- isAsyncboolean, Required
The isAsync must be in boolean format.
true
false
Output
- File ContentBinary
Output file content from PDF4me action
- File NameString
Output file name from PDF4me action
Header
Content-Type:application/json
Authorization: Please copy key from the link.
Payload
{
"docContent": "Please put PDF base64 content",
"docName": "output.pdf",
"qualityType": "Draft",
"ocrWhenNeeded": "true",
"language": "English",
"outputFormat": "true",
"mergeAllSheets": true
}
PDF4me api samples
- CSharp(C#)
- Java
- JavaScript
- Python
- Salesforce
- n8n
- Google Script
- AWS Lambda