Skip to main content

Convert PDF to Word using n8n action

PDF4me Convert PDF to Word transforms PDF documents into fully editable Word files through n8n automation workflows. Process PDFs via n8n triggers, binary data, base64 strings, or public URLs to generate DOCX files with intelligent paragraph detection, preserved formatting, extracted text and images, table structure retention, OCR support for scanned documents, and editable content layers. This solution is ideal for document editing, content repurposing, template creation, contract modification, proposal editing, and automated Word generation workflows that require accurate PDF conversion with professional formatting and seamless integration.

Setup

Add the PDF4me "Convert PDF to Word" 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 Word" action
  3. Configure input parameters (see below)
Convert PDF to Word

Parameters

Complete list of parameters for the Convert PDF to Word action. Configure these parameters to control PDF to Word conversion.

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

ParameterTypeDescriptionExample
Input Data Type***StringPDF Input Format Selection
• Choose the format of your PDF data input
• PDF4me supports multiple input types
• Options: Binary Data, Base64 String, or URL
Binary Data
Input Binary FieldBinaryBinary PDF File Input (Required if Binary Data)
• Reference PDF file from previous n8n node or file upload
• PDF4me processes binary PDF files with automatic format detection
• Required when Input Data Type is "Binary Data"
{{ $binary.data }}
Base64 Document ContentStringBase64 Encoded PDF Input (Required if Base64 String)
• Provide PDF data as base64 encoded string
• PDF4me automatically decodes and processes the PDF content
• Required when Input Data Type is "Base64 String"
UEsDBBQABgAI...
File URLStringPublic PDF URL Input (Required if URL)
• Provide a public/open permission URL to the PDF file
• PDF4me downloads and processes the file from URL
• Required when Input Data Type is "URL"
https://abc.com/sample.pdf
Quality Type***EnumConversion Quality Setting
• Choose the quality level for PDF to Word conversion
• Draft: Fast, 1 API call per file (simple PDFs)
• High: Accurate, 2 API calls per page (complex/scanned PDFs)
• Different quality levels provide varying accuracy
Draft
OCR Language***StringOCR Language Setting
• Specify the language of text in the source PDF file
• Use only if output text is not recognizable
• Optimizes OCR processing for better text recognition
• Common values: English, German, French, Spanish
English
Output File Name***StringWord Output Filename
• Specify the name for the generated Word file
• Must include .docx extension
• PDF4me ensures unique naming and format validation
converted_document.docx
Document Name***StringSource PDF Reference
• Specify the name of the source PDF file
• For reference and tracking purposes
• Helps with processing tracking
document.pdf
Binary Data Output Name***StringBinary Data Output Mapping
• Define the variable name for accessing generated Word binary data
• Used in subsequent workflow actions
• Essential for workflow automation
data

Advanced Options

The following parameters are available in the Advanced Options section and are optional:

ParameterTypeDescriptionExample
Custom ProfilesStringCustom Configuration Profiles
• Set additional options using custom profiles
• JSON-like format containing predefined parameters
• Enables advanced Word generation settings
• Optional for specialized requirements
{ "outputDataFormat": "base64", "preserveFormatting": true }
Max RetriesNumberRetry Attempt Limit
• Specify maximum retry attempts for failed conversions
• PDF4me automatically retries up to specified limit
• Useful for handling temporary network issues
• Default is 3
3
Merge All SheetsBooleanContent Consolidation Control
• Control whether all content merges into single Word document
• true = combines all content into one cohesive document
• false = creates separate sections
• Default is false
false
Preserve Output FormatBooleanFormatting Preservation
• Control whether original formatting and layout is preserved
• true = maintains visual fidelity and formatting
• false = creates plain document with basic formatting
• Default is true
true
Retry Delay (Seconds)NumberRetry Delay Interval
• Specify delay in seconds between retry attempts
• PDF4me waits before attempting next retry
• Helps prevent overwhelming the service
• Default is 5
5
Use OCR When NeededBooleanIntelligent OCR Activation
• Automatically enable OCR for scanned images or non-selectable text
• PDF4me intelligently detects when OCR is required
• Improves text extraction accuracy
• Default is true
true

Output

Output Parameters

ParameterTypeDescriptionExample
fileNameStringPDF4me generated Word filename - The complete filename of the successfully generated Word document with proper .docx extension. PDF4me ensures unique naming and validates file format compliance for seamless integration with downstream processesconverted_document.docx
mimeTypeStringPDF4me Word MIME type - The MIME type of the generated Word file, indicating the file format for proper handling in web applications and file systemsapplication/vnd.openxmlformats-officedocument.wordprocessingml.document
fileSizeNumberPDF4me Word file size in bytes - The exact size of the generated Word file in bytes, provided by PDF4me for storage planning, bandwidth optimization, and file transfer monitoring. Essential for enterprise document management and workflow automation8782
successBooleanPDF4me conversion status indicator - Boolean flag indicating the success or failure of the PDF-to-Word conversion process. PDF4me returns true for successful conversions and false for any errors, enabling robust error handling in automated workflowstrue
inputDataTypeStringPDF4me input data format used - Indicates the type of input data that was processed (base64, binary, or URL). Useful for understanding the input method used in the conversion processbase64
sourceFileNameStringPDF4me source PDF reference - The original PDF filename that was processed by PDF4me's conversion engine. This reference is maintained for audit trails, debugging purposes, and tracking the source of generated Word documents in enterprise workflowsdocument.pdf
qualityTypeStringPDF4me conversion quality used - Indicates the quality level that was applied during the PDF to Word conversion process. Shows which quality setting (Draft or High) was used for the conversionDraft
languageStringPDF4me OCR language used - Shows the language setting that was applied during the conversion process for optimal text recognition and content extraction accuracyEnglish

N8N Action Response

The PDF4me Convert PDF to Word 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:

{
"fileName": "converted_document.docx",
"mimeType": "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
"fileSize": 8782,
"success": true,
"inputDataType": "base64",
"sourceFileName": "document.pdf",
"qualityType": "Draft",
"language": "English"
}

Use Cases

Document Editing and Content Management

  • Convert PDF documents to Word format for collaborative editing, content updates, and document revision workflows that require multiple team members to make changes
  • Process scanned documents and PDF reports by converting them to Word format for text editing, formatting adjustments, and content modification
  • Transform PDF contracts, agreements, and legal documents to Word format for editing, negotiation, and version control in legal and business processes

Content Migration and System Integration

  • Migrate PDF content to Word format for integration with content management systems, document workflows, and collaborative platforms that require editable document formats
  • Convert PDF reports and analytics documents to Word format for further analysis, data manipulation, and integration with business intelligence tools
  • Process PDF forms and templates by converting them to Word format for customization, branding updates, and template modification

Academic and Research Applications

  • Convert PDF research papers, academic articles, and scholarly documents to Word format for editing, annotation, and collaborative research projects
  • Process PDF textbooks and educational materials by converting them to Word format for content adaptation, localization, and curriculum development
  • Transform PDF theses, dissertations, and academic submissions to Word format for editing, formatting, and submission to academic institutions

Get Help