Results 1 to 2 of 2
Thread: PDF watermark not displayed
- 04-17-2012, 05:20 PM #1
Member
- Join Date
- Apr 2012
- Posts
- 1
- Rep Power
- 0
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
- 04-17-2012, 06:10 PM #2
Similar Threads
-
Same name displayed twice!
By javabeginner29 in forum New To JavaReplies: 2Last Post: 02-24-2012, 06:17 AM -
TextField not displayed
By weezy2894 in forum Java AppletsReplies: 6Last Post: 04-18-2011, 02:37 AM -
How can i get watermark effect using SWT/JFace Dialog?
By deshmukhamt in forum SWT / JFaceReplies: 0Last Post: 12-07-2010, 07:51 AM -
Tooltip not getting displayed...
By Preethi in forum New To JavaReplies: 4Last Post: 07-31-2008, 10:00 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks