Here's the corrupted PDF that Acrobat Reader cannot open. Tom
(See attached file: invoice_000-000113125-000.pdf) <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> |---------+------------------------+---------------------> | | |"Paulo Soares" | | | |<[EMAIL PROTECTED]>| | | | | | | |09/21/2004 12:04 PM | | | | | |---------+------------------------+---------------------> >------------------------------------------------------------------------------------------------------------| | To: "Thomas Halliley", itext-questions | | cc: | | Subject: RE: [iText-questions] Using Watermarks | >------------------------------------------------------------------------------------------------------------| |---------+------------------------+---------------------> | | | | |---------+------------------------+---------------------> >------------------------------------------------------------------------------------------------------------| | | >------------------------------------------------------------------------------------------------------------| Post the pdf for inspection, if it's small. Best Regards, Paulo Soares > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Thomas Halliley > Sent: Tuesday, September 21, 2004 3:32 PM > To: [EMAIL PROTECTED] > Subject: [iText-questions] Using Watermarks > > 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 >
invoice_000-000113125-000.pdf
Description: Adobe PDF document