Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [reportlab]

A library for generating PDF in Python.

reportlab
0 votes
0 answers
13 views

Can't get form elements to align properly using pymupdf and reportlab

I'm writing a program that takes form files and turns them into interactive PDF forms by using markers to locate and draw form elements. I've gotten my radio buttons to align on the page properly but ...
 BurgundyE30's user avatar
0 votes
0 answers
8 views

Generate Multi-Page PDF Reports in Python with Tables, Headers, Footers, and Adjustable Cell Data (using reportlab)

I want to Generate Multi-Page PDF Reports in Python with Tables, Headers, Footers, and Adjustable Cell Data (using reportlab) However, the fontsize is not changing for the content of the table for a ...
Jose's user avatar
  • 9
0 votes
0 answers
26 views

Generating PDF Reports with Mathematical Expressions Using Python

I'm working on generating a report that includes numerous mathematical expressions such as matrices, vectors, and equations. I'm planning to use Python for this task. One of the most commonly used ...
Siddhu's user avatar
  • 48
0 votes
0 answers
40 views

Adding Emojis to python Reportlab pdf

I am dynamically generating pdf files. My text has emojis but I can't seem to correctly display them. I tried using Symbola font it worked but some of the emojis are missing and the emojis are black ...
Dhia Ammar's user avatar
-4 votes
0 answers
55 views

To make a Letterhead consisting of Company Name, Logo, Address using Python , PDFminer, Regex , Canvas, ReportLab and any other tools

Create a letterhead in pdf format,using python in which we can use pdfminer,extract text ,regex, and any other tools as such.That letterhead should contain name, logo of that company and company ...
Craka's user avatar
  • 43
0 votes
0 answers
14 views

ValueError when using Hyperlink in header of multipage PDF

The building of the document fails when I try to build a multipage-pdf with a table as a header containing a hyperlink paragraph. Everything works fine if the pdf consists of only one page (i.e. the '...
Mirco's user avatar
  • 1
0 votes
0 answers
12 views

Change option colors in AcroForm Reportlab

class InteractiveDropdown(Flowable): def __init__(self, text='Choose Here'): Flowable.__init__(self) self.text = text def draw(self): self.canv.saveState() ...
Manissha Rajeindran's user avatar
1 vote
1 answer
42 views

reportlab pdfgen does not create PDF

I need some help on a PDF report creation process I am currently working on, with reportlab.pdfgen on Python 3.10. I use the following code: def create_pdf_report(calc_output, project_id): ...
rower2000's user avatar
0 votes
0 answers
17 views

ReportLab's Text and Canvas objects not aligned although using the same left margin

I would like to have the same left adjustment for my text and some objects that I will have on my canvas. This is the code I am using: def on_first_dummy_page(canvas, doc): canvas.saveState() ...
Milan's user avatar
  • 289
1 vote
1 answer
21 views

How to resume \n read from excel file in output pdf file - reportlab python

I am trying to read from excel file and generate the output file using reportlab library in python. Now the text in excel file is as below :- When I am reading it into pdf I am not able to resume ...
Ravindra's user avatar
0 votes
0 answers
18 views

How to show long text in footer as long with the total number of pages?

I use the following code to add page index and total page number to the output pdf. Before that, I could add long text as footer. I don't know how to get the canvas in PageNumCanvas as in footer. How ...
user1424739's user avatar
  • 13.1k
1 vote
0 answers
21 views

Using Django and reportlab to create a pdf. Report is failing when I try to include a field that is tied to a foreign key

My attempt at making a pdf fails with a server500 error when I attempt to export a field that is created by a foreign key. I believe this to somehow be the problem, as all other fields work as ...
Coolmike's user avatar
0 votes
0 answers
31 views

Python PDF package for presenting output generated by plotly charts maps and pandas dataframes with some text comments

Which python package would you recommend to generate a simple report containing: Tables from pandas dataframe, somewhat prettified Charts and maps generated by plotly Some comments to the two above ...
Maks's user avatar
  • 11
0 votes
0 answers
17 views

How can I define the y-axis position for each article in a PDF file using the ReportLab package in Python?

I'm currently using ReportLab in Python to generate PDF documents with two frames, where each frame should display two paragraphs. However, the output I'm getting looks like the following: My code: ...
Arduin's user avatar
  • 233
0 votes
1 answer
37 views

How to add a link to an object in a PDF using reportlab?

I am trying to make an infographic and I want to add social media links to it. I started off with reportlab, since this module supposedly can add links to output pdf files, but I can't get it work. I ...
Gábor's user avatar
  • 1

15 30 50 per page
1
2 3 4 5
88