pdfbox-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Baker, Ricky" <ricky.ba...@ttu.edu>
Subject RE: PDAnnotationRubberStamp
Date Thu, 20 Apr 2017 17:04:21 GMT

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:THausherr@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-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: users-help@pdfbox.apache.org


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


Mime
View raw message