Hi,
After applying a text watermark using onStartPage event onto my document, my document text is blurred. Here are the snapshots to show that:
The original form without watermark: http://albert.t.lu.googlepages.com/form_wo_text_wm.TIF
After adding the watermark: http://albert.t.lu.googlepages.com/blurred_text_wm.TIF
My program flow is:
Create a pdf document,
Adding a page event to the document. onStartPage, it is to add text watermark on every new page.
Open the document
Copy another document (TIFF,PDF,GIF) into this using PdfContentByte and PdfImportedPage
Close the document
The event onStartPage has:
PdfContentByte cb = writer.getDirectContentUnder()
CreateFont(HELVETICA,CP1252, NOT_EMBEDDE)
Cb.beginText()
Cb.setCollorFill(100,100,100);
Cb.showTextAligned(…)
Cb.endText()
If I add text watermark without using the event approach then I didn’t have this blurring problem. But then it has its own limit that if I have a long table spanning several pages, I can not control/tell when the table spans to the next page for me to add the watermark on each page.
Any ideas? Suggestions?
Thanks,
Albert