2 Replies Latest reply on May 3, 2012 1:18 PM by gimbal2

    Problem while generating PDF using iText


      I have generated PDF using iText, where i have written all code in sequential flow.

      com.lowagie.text.Document document = new com.lowagie.text.Document(PageSize.A4, 55, 5, 20, 20);
      OutputStream outputstream = response.getOutputStream();

      And i have added all fields in the document.

      But my problem is how to display total pagecount on all pages e.g.1\20 (because i have generated PDF sequentially)
      Also i want to add watermark on all pages.

      So, can any body help me to solve this problem?

      Thank You,