A basic sample of generating PDF files using WeasyPrint/Django in a Docker container:
Explore the docs »
·
Report Bug
Table of Contents
This project demonstrates using WeasyPrint with Django to generate high-quality PDFs, all within a Docker container. By harnessing WeasyPrint's HTML-to-PDF capabilities and Django's dynamic rendering, users can produce customized PDF outputs. Docker encapsulates the dependencies, ensuring consistent results across different environments. The result is a reliable blueprint for seamless PDF generation in Django applications.
Before you start with the project setup, there are some prerequisites that you need to ensure are in place.
Before proceeding with this project, ensure that Docker is installed and running on your machine.
-
Clone the repo
git clone https://github.com/NinjyaMaster/Docker-Django-PDF-Generator-WeasyPrint.git
-
Run Docker
docker-compose up
-
Once Docker has finished starting up the services, open your web browser and navigate to:
http://localhost:8000/
Distributed under the MIT License. See LICENSE.txt
for more information.
Mia Noriko Watanabe - @linkedin
Project Link: https://github.com/NinjyaMaster/docker-nginx-certbot-react