Re: [iText-questions] Image Annotation on PdfContentByte

2009-06-05 Thread 1T3XT info
twinmar wrote: > OK - the fix here was simple - move the creation of the new class into the > for loop. The creates a new class intance for each header and footer image > and annotation now works. If you create a new Image class every time, the image isn't reused in your PDF document (resulting

Re: [iText-questions] Image Annotation on PdfContentByte

2009-06-05 Thread twinmar
OK - the fix here was simple - move the creation of the new class into the for loop. The creates a new class intance for each header and footer image and annotation now works. Thanks Paul public void PDFImage(Document document, Vector imgvector, PdfContentByte cb, PdfContentByte cbu) {

Re: [iText-questions] Image Annotation on PdfContentByte

2009-06-04 Thread 1T3XT info
Hmm... I didn't notice this question was sent to me personally. I'm forwarding it to the list so that it's archived. 1T3XT info wrote: > paulmann...@twinmar.co.uk wrote: >> I have finally tracked down the reason for the exception. > > Thanks for providing the detailed information. > I think you'r

Re: [iText-questions] Image Annotation on PdfContentByte

2009-06-03 Thread 1T3XT info
twinmar wrote: > ...but then an exception occurs when I close the document. No additional > error information is provided. What exception? Because now you're catching the mother of all exceptions. It would be nice if we know what kind of exception you're getting. > Is this the correct method f

[iText-questions] Image Annotation on PdfContentByte

2009-06-02 Thread twinmar
I am trying to annotate images in the PdfContentByte area of the PDF document. The annotation appears to add when I set it: public void imageURL(Image urlimage, String url) { // Left // Check if image provided boolean urlnotblank = StringUtils