Tran Vinh Quang
Tran Vinh Quang

Reputation: 595

Set background color for paragraph using iText Java

I'm working with iText PDF Java and having problems when I want to set background color for each paragraph.

enter image description here

In this PDF, I have 3 paragraphs with 3 different color.

I have try using Chunk but it not meet with my target.

Chunk only set background for text not paragraph.

Please give advise to do it

Upvotes: 1

Views: 2586

Answers (1)

Tran Vinh Quang
Tran Vinh Quang

Reputation: 595

I think the answer is using table and set background color for each cell.

Upvotes: 5

Related Questions