Change the color of pdf pages alternatively using iText pdf in java
问题 I'm creating report based on client activity. I'm creating this report with the help of the iText PDF library. I want to create the first two pages with a blue background color (for product name and disclaimer notes) and the remaining pages in white (without a background color). I colored two pages at the very beginning of report with blue using following code. Rectangle pageSize = new Rectangle(PageSize.A4); pageSize.setBackgroundColor(new BaseColor(84, 141, 212)); Document document = new