Documentation

Welcome to the Document Template Processing Service documentation.

Quick Start

  1. Installation - Get the service running
  2. Usage Guide - Quick start and overview
  3. API Endpoints - Complete API reference
  4. Document Templates - Create Jinja2 templates
  5. 🔍 DocX Linter - NEW: Template validation and error detection
  6. Examples - Working code samples

Comprehensive Guides

🚀 Installation Guide

Complete setup instructions from local development to production deployment.

📋 Usage Guide

Quick start guide with essential concepts and links to detailed sections.

🔌 API Endpoints

Complete API reference with parameters, responses, and examples for all endpoints.

📄 Document Templates

Learn how to create Word templates with Jinja2 syntax:

  • Variable substitution and conditional logic
  • Loops and advanced template patterns
  • Best practices and troubleshooting

🖼️ Image Support

Advanced image processing capabilities:

  • Base64 encoding for React applications
  • Size specifications and optimization
  • Template integration and troubleshooting

🔍 DocX LinterNEW

Comprehensive template validation system:

  • Automatic syntax checking and error detection
  • Integrated validation before document processing
  • Configurable linting options and quality analysis
  • Detailed error reporting with suggestions

🚫 Error Handling

Understanding and debugging errors:

  • HTTP status codes and error types
  • Structured error responses
  • Common issues and debugging strategies

💡 Examples

Complete practical examples:

  • Invoice generation with complex data
  • React, Node.js, and Python integration
  • Postman testing and real-world use cases

🐳 Integration Guide

Docker Compose setup and integration patterns for existing applications.


Architecture Overview

The service combines three powerful technologies:

  • docxtpl - Python library for Word template processing
  • Jinja2 - Template engine for dynamic content
  • Gotenberg - Microservice for PDF conversion

Features

Unified API - Single endpoint with smart mode detection
Image Support - Inline images with Base64 encoding
Template Linting - NEW: Automatic validation before processing
Error Handling - Comprehensive error reporting
Docker Ready - Complete containerization
React Friendly - Optimized for modern web applications
Backward Compatible - No breaking changes for existing integrations


Support

For questions and support:

  1. Check the Error Handling guide
  2. Try the Examples for working code
  3. Review the API Endpoints reference
  4. Create an issue in the GitHub repository

Copyright © 2024, Etherisc GmbH Originally created by M.B.C.M (PapiHack)


Copyright © 2024 Etherisc GmbH. Distributed under the MIT license.