Skip to content Skip to sidebar Skip to footer

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

Solution 1:

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();

Post a Comment for "Why This Pageevent Cover The Content Of Page Using Itext Library?"