vandeseer / easytable

Small table drawing library built upon Apache PDFBox

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fill cell with hex code color

NtsCiccio opened this issue · comments

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

You can use Color.decode for that:

TextCell.builder()
  .text("...")
  .textColor(Color.decode("#ff00ff"))
  .backgroundColor(Color.decode("#111111"))
  .build()` 

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

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.