Skip to main content

Convert PDF to Excel using n8n action

PDF4me Convert PDF to Excel transforms PDF documents into structured Excel spreadsheets through n8n automation workflows. Process PDFs via n8n triggers, binary data, base64 strings, or public URLs to extract tables, forms, and data with intelligent table detection, accurate cell formatting, column/row preservation, multi-sheet support, and OCR capabilities for scanned documents. This solution is ideal for financial reporting, data analysis, invoice processing, form digitization, business intelligence workflows, and automated data extraction that require accurate PDF parsing with professional Excel formatting and seamless integration.

Setup

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

Parameters

Complete list of parameters for the Convert PDF to Excel action. Configure these parameters to control PDF to Excel 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 Excel conversion
• Draft: Fast conversion, 1 API call per file (simple PDFs)
• High: Accurate conversion, 2 API calls per page (complex/scanned PDFs)
• Different quality levels provide varying accuracy
Draft
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
Merge All Sheets***BooleanMulti-Sheet Consolidation
• Control whether all detected tables merge into one worksheet
• true = combines all tables into single worksheet
• false = creates separate worksheets for each table
• Default is false
true
Output Format***StringExcel Output Format Specification
• Defines the output format structure
• Controls presentation and layout of Excel spreadsheet
• Must be provided in string format
• Determines Excel file formatting
"formatted"
OCR When Needed***StringOCR Processing Control
• Control whether OCR processing is applied
• Use for image-based PDFs or scanned documents
• Determines if OCR should extract text and table data
• Must be in string format
"true"
Output File Name***StringExcel Output Filename
• Specify the name for the generated Excel file
• Must include .xlsx extension
• PDF4me ensures unique naming and format validation
PDF_to_EXCEL_output.xlsx
Document Name***StringSource PDF Reference
• Specify the name of the source PDF file
• For reference and tracking purposes
• Helps with processing tracking
output.pdf
Binary Data Output Name***StringBinary Data Output Mapping
• Define the variable name for accessing generated Excel binary data
• Used in subsequent workflow actions
• Essential for workflow automation
data

Output

Output Parameters

ParameterTypeDescriptionExample
fileNameStringPDF4me generated Excel filename - The complete filename of the successfully generated Excel document with proper .xlsx extension. PDF4me ensures unique naming and validates file format compliance for seamless integration with downstream processesPDF_to_EXCEL_output.xlsx
fileSizeNumberPDF4me Excel file size in bytes - The exact size of the generated Excel file in bytes, provided by PDF4me for storage planning, bandwidth optimization, and file transfer monitoring. Essential for enterprise document management and workflow automation7817
successBooleanPDF4me conversion status indicator - Boolean flag indicating the success or failure of the PDF-to-Excel conversion process. PDF4me returns true for successful conversions and false for any errors, enabling robust error handling in automated workflowstrue
originalFileNameStringPDF4me 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 Excel documents in enterprise workflowsoutput.pdf
qualityTypeStringPDF4me conversion quality used - Indicates the quality level that was applied during the PDF to Excel conversion process. Shows which quality setting (Draft, Standard, 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 data extraction accuracyEnglish
ocrUsedBooleanPDF4me OCR processing indicator - Boolean flag indicating whether OCR (Optical Character Recognition) was applied during the conversion process. Useful for understanding the processing method used for the PDF documenttrue
mergeAllSheetsBooleanPDF4me sheet consolidation indicator - Boolean flag indicating whether all detected tables from the PDF were merged into a single Excel worksheet or kept as separate worksheetstrue
messageStringPDF4me conversion status message - Human-readable status message providing details about the conversion process result. Includes success confirmation or error details for troubleshootingPDF converted to Excel successfully

N8N Action Response

The PDF4me Convert PDF to Excel 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": "PDF_to_EXCEL_output.xlsx",
"fileSize": 7817,
"success": true,
"originalFileName": "output.pdf",
"qualityType": "Draft",
"language": "English",
"ocrUsed": true,
"mergeAllSheets": true,
"message": "PDF converted to Excel successfully"
}

Use Cases

Financial Data Analysis and Reporting

  • Convert PDF financial statements, invoices, and accounting reports to Excel format for data analysis, financial modeling, and business intelligence applications
  • Process PDF bank statements, transaction reports, and financial documents by converting them to Excel format for budget analysis, expense tracking, and financial planning
  • Transform PDF audit reports, compliance documents, and regulatory filings to Excel format for data manipulation, trend analysis, and regulatory reporting

Business Intelligence and Data Processing

  • Convert PDF reports, analytics dashboards, and business metrics to Excel format for further analysis, data visualization, and decision-making support
  • Process PDF survey results, market research, and customer data by converting them to Excel format for statistical analysis, reporting, and business insights
  • Transform PDF inventory reports, sales data, and operational metrics to Excel format for performance analysis, forecasting, and strategic planning

Research and Academic Data Analysis

  • Convert PDF research data, scientific reports, and academic studies to Excel format for statistical analysis, data visualization, and research collaboration
  • Process PDF survey data, experimental results, and research findings by converting them to Excel format for data analysis, hypothesis testing, and academic reporting
  • Transform PDF census data, demographic reports, and statistical publications to Excel format for research analysis, trend identification, and academic studies

Get Help