A newer version of the Gradio SDK is available: 6.14.0
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
Build and run with Docker:
docker-compose up --buildAccess the API documentation at
http://localhost:8000/docs
API Endpoints
- POST
/convert- Convert DOCX to PDF - GET
/health- Health check endpoint