OpenPDF icon indicating copy to clipboard operation
OpenPDF copied to clipboard

Table over multiple pages with cell borders

Open Alexandru-Pirvu opened this issue 5 years ago • 5 comments

Hello! I am trying to create a table which spans over multiple pages. I want the cells to have space between them and the only way I found to do this is to add an "invisible" bottom border to the cell. It is not perfect, but it works. If I add spacing, it also adds space on the sides, and I don't want that.

The problem is that I get a NPE when the table reaches page 2, and it is because the cellGraphics object on the context is set to null at this line

Is this a bug or am I doing something wrong?

Alexandru-Pirvu avatar Feb 26 '20 09:02 Alexandru-Pirvu

Hello! I am trying to create a table which spans over multiple pages. I want the cells to have space between them and the only way I found to do this is to add an "invisible" bottom border to the cell. It is not perfect, but it works. If I add spacing, it also adds space on the sides, and I don't want that.

The problem is that I get a NPE when the table reaches page 2, and it is because the cellGraphics object on the context is set to null at this line

Is this a bug or am I doing something wrong?

Could you please share an example code that causes this?

vic0075 avatar May 10 '20 02:05 vic0075

Hi @Alexandru-Pirvu , have you found a solution for this issue? Pull requests are welcome!

asturio avatar Feb 04 '21 19:02 asturio

Hi, I'd like to work on this issue for a school project. Thanks!

zengleo avatar Oct 21 '21 01:10 zengleo

Pull requests are welcome.

asturio avatar Oct 23 '21 08:10 asturio

Pull requests are still welcome.

asturio avatar Mar 08 '24 19:03 asturio