Most voted "reportlab" questions
6 questions
Sort by count of
-
2
votes1
answer6781
viewsCenter text in python
Good afternoon, I’m creating a program to generate certificates, but I’m having trouble centralizing the names, how could I do that? For every name is of a size. I tried the center(), but it didn’t…
-
1
votes0
answers185
viewsHow to position an image in reportlab using pdfrw as flowable?
I’m using the reportlab to generate reports. I can define the creation process in four steps: 1) take the data via API, 2) filter the data, 3) generate the graphics with the matplotlib and 4) insert…
-
0
votes1
answer130
viewsHow to create a PDF from a list
want to create a PDF from a list but this resulting the following error: C:\Users\nicperei\Desktop\pyCodes>py web.py Traceback (most recent call last): File "web.py", line 22, in <module>…
-
0
votes1
answer65
viewsMatplotlib graphics are overwriting themselves
I’m trying to generate a report with several charts generated by matplotlib, however, I realize that after generating the graphics they are overwriting others that have already been created, follows…
-
-1
votes1
answer169
viewsPixel size of a Python String
I would like to know how to make a code in Python that checks the size of a string (in pixels). Guess: we have a string 'ALCON BOTTON FISH 50G' I would like to know what its pixel size to center in…
-
-1
votes1
answer69
viewsHow to use canvas and Simpledoctemplate to each other? (reportlab)
I’m doing the exporting of reports through the library reportlab. To insert the text I used the canvas module, and wrote this code that works well. from reportlab.pdfgen import canvas pdf =…