vandeseer / easytable

Small table drawing library built upon Apache PDFBox

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Question/Feature Request: Adding multiple elements into a single cell

KVSRAKESH opened this issue · comments

Hi, I using easytable from past few months, it is amazing. But, I found difficulty in adding multiple elements to a single cell. Like, adding multiple differently styled text in same cell and adding both image and text in same cell. I tried creating a custom cell following the Q/A in readme but was unable to do the bove things. Dont know if this feature is not present or I was not able to get the thing even it is possible.

Hi @KVSRAKESH

glad you like the library.

It's possible to create a cell type of its own in order to achieve what you want. But that's a bit more involved. Maybe check out the different cell type implementations for a little inspiration. You can modify what is drawn by a custom drawer class and there you can access the content stream with the coordinates of the current cell.

Best,
Stefan