Niladri Bhattacharyya wrote:
Hi All,I want to access a HashMap which is created in the servlet to be available in the Page Events class which puts some dynamic information in the Footer. Now I do not know how to get some custom data inside a page events class as the signatures of the class methods cannot be changed.
That's irrelevant.
* **public* *class* MyEvents *extends* PdfPageEventHelper {
protected Map map; public MyEvents(Map map) { this.map = map; }
* public* *void* onEndPage(PdfWriter writer, Document document) {
System.out.println("End page: " + map.get("test")); }
I need the custom HashMap to be available inside the onEndPage method.
See above, create a MyEvents class and pass the HashMap. This is mailing list noise; your question is a simple Java problem, it has nothing to do with iText. br, Bruno
smime.p7s
Description: S/MIME Cryptographic Signature
------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://itext.ugent.be/itext-in-action/