I'm drawing black boxes in a pdf and it draws them perfectly but when I generate the pdf, and I open it with Acrobat Pro the boxes can be modified. How can I make the box layer merge with the pdf?
PDPage page = document.getPage(i-1);
PDPageContentStream contentStream = new PDPageContentStream(document,page, true, true, true);
contentStream.setStrokingColor(Color.BLACK);
contentStream.addRect(dto.getLeft(), dto.getTop() - factY, dto.getWidth(), dto.getHeight());
contentStream.fill();
contentStream.close();
.
.
.
document.save(os);
document.close();