Why This Pageevent Cover The Content Of Page Using Itext Library?
There is a PageEvent with border-line also apply background color for whole page but when this PageEvent applied the content of 'createPDF' hide. public class BlackBorder extends P
The rectangle covers the content because you programmed it this way.
If you want to add an opaque rectangle under the existing content, replace:
PdfContentBytecanvas= writer.getDirectContent();
with:
PdfContentBytecanvas= writer.getDirectContentUnder();
You may like these posts
Post a Comment for "Why This Pageevent Cover The Content Of Page Using Itext Library?"