Questions tagged [pisa]

Pisa is a Python HTML/XHTML/CSS to PDF converter

Pisa is a HTML/XHTML/CSS to PDF converter written in Python and based on Reportlab Toolkit, pyPDF, TechGame Networks CSS Library and HTML5lib

119 questions
1
vote
0 answers

UTF-8 encoding for xhtml2pdf in Django / media URI must start with /static/ or /media/

I am using xhtml2pdf package to generate a pdf file from an html template in my django application. The pdf file generates correctly (no errors), however, I have encountered a problem with UTF-8 encoding. My generated pdf file, instead of special…
Tomasz
  • 25
  • 5
1
vote
0 answers

How encode this string to export it to PDF

I'm trying to export to PDF a string containing UTF-8 characters. I have reduced my code to the following code to be able to reproduce it: source = """