pyfpdf
pyfpdf copied to clipboard
Simple PDF generation for Python (FPDF PHP port)
Hey! I found the library useful in my research and I would like to give the due credit with a citation. I couldn't find a citation anywhere else, please direct...
Using the following code on a Letter sized page works almost as expected... ptr=Printer('LAB') doc=ptr.canvas doc.set_font("Arial", size=12) doc.set_margins(.0625,.0625) for l in labels: doc.add_page() doc.ln(.25) for line in [(''+line) for line...
For now it seams like it is not possible to insert tables in the header, which could be handy for example when someone is making an catalogue
I tried to open an existing image from an URL and produced the follwing error message: File "C:\CAE\Python\lib\site-packages\fpdf\image_parsing.py", line 23, in load_resource f = BytesIO(urlopen(filename).read()) NameError: name 'urlopen' is not...
I try to test pyfpdf with outputting Chinese pdf on my Fedora21. Here are the codes: ``` python pdf = FPDF() pdf.add_page() pdf.add_font('fireflysung', '', '/usr/share/fonts/fireflysung/fireflysung.ttf', uni=True) pdf.set_font('fireflysung', '', 16) pdf.write(10,...
  `UnicodeEncodeError: 'latin-1' codec can't encode characters in position xx-yy: ordinal not in range(256)` example of Russian text: `сижу на энергетиках, плотно`
It seems that the length of a range was computed as a negative value in ttfonts.py causing a warning with out of range numbers (and the misguided attempt to change...
The same image if I use in my local code. It is working properly but not working in AWS Lambda code. I am getting following error. **FPDF error: Not a...
I don't know how, But the result pdf have empty pages. I search about the error but I have to use `pdf.set_auto_page_break(0)` which should not be because the outputed pdf...