vandeseer / easytable

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

Fill cell with hex code color #120

Closed NtsCiccio closed 3 years ago

NtsCiccio commented 3 years ago

Hi, is possible to fill a Cell with an hex code color?

vandeseer commented 3 years ago

You can use Color.decode for that:

TextCell.builder()
  .text("...")
  .textColor(Color.decode("#ff00ff"))
  .backgroundColor(Color.decode("#111111"))
  .build()` 
NtsCiccio commented 3 years ago

thanks again, is there another way to contact you without opening issues?

vandeseer commented 3 years ago

Hey, I suggest opening a question on stackoverflow tagging it with pdfbox and maybe mentioning easytable in the title or so. Then others can answer as well and the solution can be found easily, too.