Results 1 to 2 of 2
  1. #1
    AnnPDF is offline Member
    Join Date
    Apr 2012
    Posts
    1
    Rep Power
    0

    Post PDF watermark not displayed

    Hi All

    Our system puts watermark on some existing PDF using IText. We are using Itext5.0.6 (c) jar and our server is WAS 6.1. We have one development server , integration server and QA server. In QA server for a long duration the PDFs were not showing the watermark. But after some time the watermark was getting displayed properly. The other development and integration server did not have this issue. But in all these servers it was the same code that is running. To debug this issue , we are not able to reproduce the issue now. Our servers are clustered.

    Could any one help me out.If this issue comes up in production we do not know what to do.

    Following is the code we use to add , water mark.


    PdfStamper pStamper =
    new PdfStamper(pdfReader, fOutStream);
    int
    i = 1;
    while( i <= pdfPages ) {
    pcb = pStamper.getOverContent(i);
    BaseFont bf = BaseFont.createFont(BaseFont.
    HELVETICA, BaseFont.WINANSI, BaseFont.EMBEDDED);
    pcb.beginText();
    pcb.setFontAndSize(bf, 50);
    pcb.showTextAligned(Element.
    ALIGN_CENTER, getLocalizedString("uppercase.copy"), 300, 500, 45);
    pcb.endText();
    i++;
    }
    pStamper.close();
    Thanks
    Ann

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,453
    Rep Power
    20

    Default Re: PDF watermark not displayed

    Moved from Java Software

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

Similar Threads

  1. Same name displayed twice!
    By javabeginner29 in forum New To Java
    Replies: 2
    Last Post: 02-24-2012, 07:17 AM
  2. TextField not displayed
    By weezy2894 in forum Java Applets
    Replies: 6
    Last Post: 04-18-2011, 03:37 AM
  3. How can i get watermark effect using SWT/JFace Dialog?
    By deshmukhamt in forum SWT / JFace
    Replies: 0
    Last Post: 12-07-2010, 08:51 AM
  4. Tooltip not getting displayed...
    By Preethi in forum New To Java
    Replies: 4
    Last Post: 07-31-2008, 11:00 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •