pdf-4 / README_ENHANCED.md
fokan's picture
Initial commit with static file serving and inline PDF viewing
623e14e

A newer version of the Gradio SDK is available: 6.14.0

Upgrade

Enhanced DOCX to PDF Converter

This is a completely redesigned version of the original DOCX to PDF converter with the following improvements:

Features

  • Professional FastAPI backend instead of Gradio
  • Full Docker support with optimized containerization
  • High-performance conversion with LibreOffice
  • Complete Arabic language support with RTL text handling
  • RESTful API with multiple input methods (multipart/form-data, base64)
  • Direct browser integration with CORS support
  • Batch processing capabilities
  • Comprehensive error handling and logging
  • Optimized resource usage

Requirements

  • Docker and Docker Compose
  • 4GB+ RAM recommended

Getting Started

  1. Build and run with Docker:

    docker-compose up --build
    
  2. Access the API documentation at http://localhost:8000/docs

API Endpoints

  • POST /convert - Convert DOCX to PDF
  • GET /health - Health check endpoint