vandeseer / easytable

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

Displaying text in a circular background inside a textcell #169

Open cmohankumar opened 2 months ago

cmohankumar commented 2 months ago

Hello there, I would like to display Text inside a textcell with circular background example: https://stackoverflow.com/questions/67134006/compose-create-text-with-circle-background can you pls let me know, how we can do this using easytable.

Thanks in advance

vandeseer commented 2 months ago

Hey @cmohankumar,

In theory that should be possible by creating a custom cell type and or custom cell drawer.

Best, Stefan

cmohankumar commented 2 months ago

Hi @vandeseer , Thankyou for the suggestion. Is there any sample code that i could follow to achieve this.

TIA. Mohan.

vandeseer commented 2 months ago

Maybe this gist might be of help: https://gist.github.com/vandeseer/5023d55b67c455596b2703e4a65df2d9

cmohankumar commented 2 months ago

Thankyou @vandeseer you are the best.

cmohankumar commented 2 months ago

Sorry to bother again @vandeseer , i am able to draw the circle now. However, I am not able add a text into the custom cell. Any assistance/snippet around this?