$39

Translate English PDFs to Any 2 Languages with Cost Tracking via Google Translate & ConvertAPI

Buy this

Translate English PDFs to Any 2 Languages with Cost Tracking via Google Translate & ConvertAPI

$39

This n8n template automates PDF translation into 1 or 2 target languages while maintaining professional formatting. Users submit PDFs via web form and receive translated documents via email with preserved headings, paragraphs, and bullet points.

Key Features:

  • Dual-Language Translation - Translate PDFs into 1 or 2 target languages in a single submission (20+ languages supported including Hindi, Telugu, Spanish, French, German, Chinese, Japanese)
  • Format Preservation - Maintains original document structure with headings, paragraphs, and bullet points intact in professional A4 PDFs
  • Automated Cost Tracking - Calculates and logs translation expenses in real-time; stores data in n8n Data Table for analytics and budget management
  • Smart Workflow Routing - Conditional branching processes only selected languages; parallel translation for dual-language efficiency
  • Web Form Interface - User-friendly upload form with email delivery; no technical knowledge required for end users
  • Professional Email Delivery - Automated notifications with translated PDFs and detailed cost breakdown included
  • Production-Ready - Comprehensive error handling, modular design, and detailed documentation throughout workflow
  • Multi-Service Integration - Google Translate API + ConvertAPI + Gmail + n8n Data Table work seamlessly together

🎯 Use Cases

Use Cases

  1. International Business Contracts
    • Legal teams translate English contracts into Hindi and Spanish for regional partners, tracking translation costs per document for client billing and budget management.
  2. Multilingual Product Documentation
    • SaaS companies convert English user manuals into French and German for European markets, monitoring translation expenses across multiple product releases for cost forecasting.
  3. Educational Content Distribution
    • E-learning platforms translate English course materials into Telugu and Tamil for Indian students, tracking per-document costs to optimize content localization budgets.
  4. Healthcare Patient Information
    • Medical facilities translate English health guidelines into Spanish and Chinese for diverse patient populations, logging translation costs for insurance reimbursement and compliance reporting.
  5. Marketing Campaign Materials
    • Marketing agencies convert English promotional PDFs into Japanese and Korean for Asian market campaigns, tracking translation expenses per campaign for ROI analysis and client invoicing.

🔄 Workflow Architecture


Trigger & Pre-Processing

Accepts PDF uploads via web form, extracts user email and language selections, converts PDF to text, and transforms content into structured HTML with preserved formatting for translation.

Branch Control

Checks if a second target language was selected and routes the workflow accordingly—always processes Language 1, conditionally processes Language 2 only if specified.

Language Translation

Translates structured HTML content using Google Translate API, injects custom CSS styling, converts translated HTML to professional PDFs via ConvertAPI, and finalizes PDF files with language-specific naming.

Join & EMail Prep

Merges translated PDF outputs from both lanes (Language 1 and optional Language 2), assembles email data with proper attachments, and prepares user notification with document details.

Cost Logging

Calculates translation expenses including Google Translate character costs, ConvertAPI PDF conversion fees, and Gmail delivery costs, then stores detailed cost breakdown in data table for analytics.

Send EMails

Routes to appropriate email node based on number of translations (1 or 2 PDFs), sends translated documents to user via Gmail with cost summary and professional formatting.

Buy this

Automate PDF translation into 1 or 2 languages with preserved formatting—upload via web form, translate with Google Translate API, convert to professional PDFs via ConvertAPI, and deliver via email with complete cost breakdowns. Built-in cost tracking logs every translation expense to n8n Data Table for budget management and analytics.

Save 15-20 hours of development time building complex PDF processing, dual-language routing, and cost tracking logic from scratch Production-ready solution that preserves document formatting (headings, bullets, paragraphs) across 20+ languages while automatically calculating translation costs Deploy in 15 minutes with detailed setup instructions and start processing translations immediately One-time payment of $39 eliminates expensive per-document translation services that charge $50-200 per file Transparent cost tracking logs every translation expense to n8n Data Table for budget management and ROI analysis
Features : Multi-language Support: Translate to 20+ languages including Hindi, Telugu, Bengali, Spanish, French, German, and more Dual Translation: Optional second language translation in a single submission Format Preservation: Maintains headings, paragraphs, bullet points, and document structure Automatic Delivery: Translated PDFs sent via email with cost breakdown Cost Tracking: Records translation costs in a data table for analytics Clean PDF Output: Professional formatting with proper margins and typography
Supported Languages : Indian Languages: Hindi, Telugu, Bengali, Marathi, Tamil, Urdu, Gujarati, Kannada, Malayalam, Punjabi International Languages: English, Spanish, French, German, Italian, Portuguese, Russian, Japanese, Korean, Chinese
Prerequisites : Required Credentials Google Cloud Service Account (Translation Service Account) Enable Google Translate API Create service account with Translation API permissions Download JSON key file ConvertAPI Account (ConvertAPI_QueryAuth) Sign up at convertapi.com Get API secret key Configure as HTTP Query Auth in n8n Gmail OAuth2 (Gmail account) Enable Gmail API in Google Cloud Console Create OAuth 2.0 credentials Configure in n8n with required scopes n8n Data Table Create data table named cost_tracking Required columns: runId, ts, fileName, targetLangs, sourceCharacters, targetLanguages, convertApiCalls, emailsSent, cost_googleTranslate, cost_convertApi, cost_gmail, cost_total
Workflow Architecture : 1. Trigger & Pre-Processing Form Trigger: Web form accepts PDF uploads and language selections Process Form Data: Extracts form inputs and maps language codes Extract Text from PDF: Converts PDF to plain text 2. HTML Conversion Convert to HTML: Transforms extracted text into structured HTML with: Proper paragraph detection (based on sentence endings) Bullet list consolidation Heading identification CSS styling for print-friendly output 3. Branch Control Has 2nd Language?: Conditional node that determines if second translation is needed 4. Translation Pipeline Upper Lane (Language 1 - Always Runs): Translate to Language 1 (Google Translate API) Prepare HTML 1 (Injects CSS, creates binary) Convert HTML to PDF 1 (ConvertAPI) Finalize PDF 1 (Names file with language code) Lower Lane (Language 2 - Conditional): Translate to Language 2 (Google Translate API) Prepare HTML 2 (Injects CSS, creates binary) Convert HTML to PDF 2 (ConvertAPI) Finalize PDF 2 (Names file with language code) 5. Join & Email Preparation Merge Documents: Combines both PDF outputs Prepare Email: Assembles email data with attachments 6. Cost Tracking Cost – Build Record: Calculates costs for: Google Translate ($20 per million characters) ConvertAPI ($0.015 per PDF conversion) Gmail (typically $0) Data Table: Stores cost records for analytics 7. Email Delivery Send Two Attachments?: Routes to appropriate email node Send Email (2 PDFs): Sends both translations Send Email (1 PDF): Sends single translation
Installation : Import Workflow - Open n8n - Go to Workflows → Import from File - Select the JSON file Configure Credentials Add Google Cloud Service Account credentials Add ConvertAPI Query Auth credentials Add Gmail OAuth2 credentials Create and link Data Table Activate Workflow Click "Active" toggle to enable the workflow Note the form trigger URL Access Form Navigate to: https://your-n8n-instance.com/form/b780c2d6-216e-40bd-a6af-ddd6e24aa4b9 Customize path in Form Trigger node if needed
Usage: Open the translation form Fill in required fields: Your Email Address Upload Document (PDF only) First Target Language (required) Second Target Language (optional) Submit the form Receive translated PDFs via email (typically within 1-2 minutes)
Cost Structure: Current Pricing (Configurable in "Cost – Build record" node) Google Translate: $20 per 1 million characters ConvertAPI: $0.015 per PDF conversion Gmail: $0 per email Example Costs 10-page document (~5,000 characters) to 1 language: ~$0.12 10-page document to 2 languages: ~$0.23 50-page document (~25,000 characters) to 2 languages: ~$1.03 Technical Details Text Processing Features Paragraph Rejoining: Reconstructs paragraphs from hard-wrapped lines Bullet Detection: Identifies and formats bullet points (●, •) Sentence Detection: Recognizes multiple punctuation types (., !, ?, …, devanagari danda) Heading Detection: Automatically identifies headings based on patterns
Powered by