xhtml2pdf
xhtml2pdf copied to clipboard
HTML/CSS to PDF converter based on Python. Most current fork/version by Chris Glass: https://github.com/chrisglass/xhtml2pdf
Added a patch for png images given at http://groups.google.com/group/xhtml2pdf/browse_thread/thread/b8504718a36fc4ed
I fixed a bug with expanding tables, when his cols has no width defined.
I'm getting segmentation fault in pisa either by using the xhtml2pdf cli tool or when trying to import pisa: $ xhtml2pdf -h Segmentation fault $ python Python 2.6.4 (r264:75706, Jan...
Patch for crash caused by lack of support for transparent PNGs resulting in an AttributeError: 'NoneType' object has no attribute 'bands' and the PDF to not be generated.
Using pisa.CreatePDF does not close or flush the pisaContext document. As such, you cannot manipulate or move the PDF until the requesting method has finished because the last chunk is...
maybe this simple workaround will be useful? ``` try: set except NameError: from sets import Set as set # Python 2.3 fallback ``` then use `set` instead `sets.Set` in line...
I would like to have the total number of pages available as a tag, like pdf:totalpages or smth. Is that not in there for performance reasons (I suppose you'd have...
http://www.xhtml2pdf.com/demo
Although pisa_reportlab is able to process input elements of types "radio" and "select", pisa_parser allows only "text", "hidden", and "checkbox". Perhaps "radio" and "select" should be added to TAGS["input"]. It...
cssParser does not recognize escaped characters within string because the backslash character is consumed by the first group `[\t !#$%&(-~]`. For example, the following string in a css file makes...