py-pdf/fpdf2

How to remove table heading column showing in all pages?

Closed this issue ยท 5 comments

Screenshot 2024-05-01 115653
in first page and second page showing this table heading column so how to show it only in first page

Hi @mithun2003

Have you read the documentation section on the subject?
cf. https://py-pdf.github.io/fpdf2/Tables.html#disable-table-headings

There is currently no way to only have headings at the very beginning of the table. They will always be repeated after every page break.

There should really be a flag like repeat_headings=True to modify this behaviour.
Any takers?

There should really be a flag like repeat_headings=True to modify this behaviour.
Any takers?

Agreed.
I think I misunderstood @mithun2003 problem at first, sorry ๐Ÿ˜…
I'm on it!

I opened PR #1153 to implement this.

You are both welcome to review it ๐Ÿ™‚

PR #1153 is merged, but not released yet.

In the meantime it can be tested this way:

pip install git+https://github.com/py-pdf/fpdf2.git@master