I am trying to create a link to another page in my web pdf document. When I add a Chunk with a URL in it to the document I get the following error.
"1 Annotation had invalid placement pages"


This chunk is part of a Phrase that I am creating for use in the header of the document. If I create the phrase without the URL in the chuck it all works fine, there is just no link.

Following is a snippet of code.
Phrase pHeader = new Phrase("Contract Lab Order", font16B);
Chunk chunk = new Chunk("\t" + "Return to Select Orders View", new Font(Font.HELVETICA, 12, Font.NORMAL, new Color(0,0,255))).setAnchor(new URL("http://www.eyefinity.com";));
pHeader.add(chunk);


  HeaderFooter header = new HeaderFooter(pHeader, false);
  document.setHeader(header);

document.open();

...A whole bunch of other code for the document.

I am certain that the URL is causing the problem, I have tried commenting it out and everything works fine if I do that.

Any ideas.

Thanks,

Bill

_________________________________________________________________
Make your home warm and cozy this winter with tips from MSN House & Home. http://special.msn.com/home/warmhome.armx




-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to