That did the trick, thanks
for (PDPage page : doc.getPages()) {
List<PDAnnotation> annotations = page.getAnnotations();
PDAnnotationRubberStamp rs = new PDAnnotationRubberStamp();
rs.setName(PDAnnotationRubberStamp.NAME_DRAFT);
rs.setConstantOpacity(0.2);
rs.setRectangle(new PDRectangle(50, 200, 500, 500));
rs.setPrinted(true);
annotations.add(rs);
}
Ricky
-----Original Message-----
From: Tilman Hausherr [mailto:[email protected]]
Sent: Thursday, April 20, 2017 11:53 AM
To: [email protected]
Subject: Re: PDAnnotationRubberStamp
Am 20.04.2017 um 18:51 schrieb Baker, Ricky:
> I am trying to use PDAnnotationRubberStamp to place "DRAFT" on each page. I
> can get it to show up when I open the document but it does not print. What do
> I need to do to get it to print?
setPrinted(true);
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]