  | Mailing List | | Home | | Forum Home | | JBoss - Java Application Server | | Tomcat - JSP/Servlet container | | Struts - A MVC web framework | | iText - An open source PDF Java Library | | JDOM - JDOM XML Parser | | JSP - A mailing list about Java Server Pages specification and reference | | J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition | | J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog | | Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology | |
Struts & Hibernate
|
|
|
  | | | -none- | -none- 2007-08-15 - By Tom Pessler
Back I used the PageXofY.java example to create a PdfPageEventHelper class. It works good for the page number and a "DEMO" watermark. I am generating this PDF from a servlet.
There is 1 more feature that I need, for certain pages I need to add an additional watermark("ASSUMES SURRENDER"). At the time the page is generated I know if it needs this watermark. What I want to do is add the watermark in the onEndPage method, so that method needs to know when to add the watermark. I tried to "re-use" the document property Html Style Class. I would set it to a particular value in the servlet, then check for this value in the onEndPage method. But the value is always null in onEndPage method. Is there any other technique for doing this? Is there something I need to do to get the onEndPage method to see my "servlet updated" value of the Html Style Class.
__ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ______ __ __ Got a little couch potato? Check out fun summer activities for kids. http://search.yahoo.com/search?fr=oni_on_mail&p=summer+activities+for+kids&cs =bz -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ----- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ __ ____ ____ ____ ____ ____ ____ ____ ____ ____ iText-questions mailing list iText-questions@(protected) https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://itext.ugent.be/itext-in-action/
|
|
 |