2 Replies Latest reply: May 3, 2012 8:18 AM by gimbal2 RSS

    Problem while generating PDF using iText

    826828
      Hi:

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

      <code>
      com.lowagie.text.Document document = new com.lowagie.text.Document(PageSize.A4, 55, 5, 20, 20);
      OutputStream outputstream = response.getOutputStream();
      PdfWriter.getInstance(document,outputstream);
      </code>

      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,
      Balaji