Thank you. I was so stupid. Now it work fine. Markus ----- Original Message ----- From: "Bruno Lowagie" <[EMAIL PROTECTED]> To: "Post all your questions about iText here" <itext-questions@lists.sourceforge.net> Sent: Tuesday, January 22, 2008 3:40 PM Subject: Re: [iText-questions] Problem: Stamper and Annotation for embeding a SWF doen´t work right
> [EMAIL PROTECTED] wrote: >> Hello Mr. Lowagie, >> >> Ok. I've done what you have told me. >> I have placed the PDF and the Demo1.swf >> here: >> >> http://www.samea.de/jan/demo1.swf >> http://www.samea.de/jan/z123.pdf >> >> I'm using the Adobe Acrobat 8.1.1. German. >> Whatelse can I do to get your help? > You should have done this in the first place. > Please read page 606 of the PDF Reference. > It lists the keys needed in an Annotation dictionary (/Type /Annot). > One of these keys is /Rect: rectangle; (Required) The annotation > rectangle, > defining the location of the annotation on the page in default user > space units. > > Now look at the object with number 5 in your PDF (see RUPS screenshot): > it has a key /Rect with value [170.12, 170.12, 170.12, 170.12] > > This means you have created a dimensionless annotation!!! > Now it makes sense for me to have a look at your code because I know > where to look, more specifically here: new Rectangle(pageunits.mm(160), > pageunits.mm(160), pageunits.mm(160), pageunits.mm(160)) > > Please have a look at the constructor of Rectangle: > http://itext.ugent.be/library/api/com/lowagie/text/Rectangle.html > > It needs two coordinates. If you use two identical coordinates, > you have a width and a height equal to 0... > I hope you now understand why you didn't get an answer. > Nobody expected you'd want to create a dimensionless annotation. > br, > Bruno > -------------------------------------------------------------------------------- > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------------------------------------------------------------------------- > _______________________________________________ > iText-questions mailing list > iText-questions@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/itext-questions > Buy the iText book: http://itext.ugent.be/itext-in-action/ > ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://itext.ugent.be/itext-in-action/