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:thaush...@t-online.de] 
Sent: Thursday, April 20, 2017 11:53 AM
To: users@pdfbox.apache.org
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: users-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: users-h...@pdfbox.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: users-h...@pdfbox.apache.org

Reply via email to