Skip to content

Sebidev/design-to-pdf-converter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Design-to-PDF Converter

This Python project converts a design described in a JSON file into a print-ready PDF. It supports both SVG vector graphics and raster images (e.g., PNG, JPG), placing them precisely at specified coordinates on a custom-sized canvas.

Features

  • JSON-based design configuration
  • Embeds SVG vector graphics using svglib and reportlab as true vector content
  • Supports PNG/JPG images with rotation
  • Automatically sets the PDF page size based on canvas_width and canvas_height
  • Outputs a final PDF with all assets positioned correctly

Requirements

Install all required packages with:

python3 -m venv .venv
source .venv/bin/activate
pip install PyMuPDF --only-binary=:all:
pip install -r requirements.txt
python design-to-pdf-converter.py

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages