API V2

Convert PDF to Word

Connector ID: Pdf To Word

Converting PDF files to word formats like docx may be possible in normal methods. When it is used in API, this feature of PDF4me can be combined with many other functions of documentation jobs.

  • Method: POST
  • Endpoint: /api/v2/ConvertPdfToWord

Parameters

File ContentBase64, Required

The content of the input file.

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

LanguageEnglish, Required

Specify the language of the text in the source file. Only use if the output is not recognizable.

Merge All SheetsBoolean, Required

The Merge All Sheets must be in boolean format.
true
false

Output FormatString, Required

Output format of PDF file, the output must be in string format.

is AsyncBoolean, 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": "test.pdf",
  "qualityType": "Draft",
  "language": "English",
  "mergeAllSheets": true,
  "outputFormat": "xyz",
  "ocrWhenNeeded": "true"
}

PDF4me api samples

CSharp(C#)
Java
JavaScript
Python
Salesforce
n8n
Google Script
AWS Lambda