Language:

Search

Generating PDFs from SVG input (Python)

  • Share this:
post-title
post-title

Did you think of svglib?

It looks really good, especially as the pdf tool in Django's docs

 

from svglib.svglib import svg2rlg
from reportlab.graphics import renderPDF

drawing = svg2rlg("file_name.svg")
renderPDF.drawToFile(drawing, "file_name.pdf")
Ammar Javed

Ammar Javed

Still Learning | Still Searching | Still Exploring | The secret of your success is determined by your daily agenda.