I read the suggestion to put watermark code in the onPageStart posting.  I
think it should be onStartPage.  Anyway, the
following is my onStartPage:

    // override the onStartPage method
    public void onStartPage(PdfWriter writer,Document document) {
                Watermark watermark = getWaterMark();
        if(watermark != null) {
                        try {
                        writer.getDirectContentUnder().addImage(watermark);
                        } catch (DocumentException aDocumentException) {
                                // The image must have absolute positioning.
                }
        }
    }

The watermark is a valid JPEG image but nothing shows up in the PDF.  Any
suggestions?



David J. Burtness 
Programmer/Analyst
SAFETY NATIONAL Casualty Corporation




- - - - - - 
This e-mail message is intended only for the use of the individual or entity
identified in the alias address of this message and may contain confidential
and privileged information. Any unauthorized review, use, disclosure or
distribution of this e-mail message is strictly prohibited. If you have
received this e-mail message in error, please notify the sender immediately
by reply e-mail and delete this message from your system. Thank you.


-------------------------------------------------------
This SF.net email is sponsored by Dice.com.
Did you know that Dice has over 25,000 tech jobs available today? From
careers in IT to Engineering to Tech Sales, Dice has tech jobs from the
best hiring companies. http://www.dice.com/index.epl?rel_code=104
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to