vandeseer / easytable

Small table drawing library built upon Apache PDFBox
MIT License
239 stars 91 forks source link

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

Open KVSRAKESH opened 2 years ago

KVSRAKESH commented 2 years ago

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.

vandeseer commented 2 years ago

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