I'm trying to add a watermark to a PDF document, which appears to succeed,
but the resulting PDF document is corrupted (unable to be opened by
Acrobat).
If I do not add the watermark, the PDF document is fine.

Any ideas?

        ...
        document.open();

        String    watermarkPath = "/some/path/images/watermark-nomail.gif";
        Watermark watermark     = new
Watermark(Watermark.getInstance(watermarkPath), 0.0f, 0.0f);
        watermark.setRotationDegrees(-45.0f);

        if (document.add(watermark)) {
           Log("Watermark added.");
        } else {
           Log("Watermark NOT added.");
        }


Tom
                                                                              
   <Geek>                                                                     
                                                                              
      <Name>Tom Halliley</Name><Title>Sr. Web Architect</Title>               
                                                                              
      <Company>BASF Corporation</Company><Division>Automotive Refinish        
   Technologies</Division>                                                    
                                                                              
      <Phone>248.948.2376</Phone><EMail>[EMAIL PROTECTED]</EMail>         
                                                                              
   </Geek>                                                                    
                                                                              







-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to