> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
> Behalf Of Dave Brown
> Sent: Monday, October 23, 2006 9:34 AM
> To: itext-questions@lists.sourceforge.net
> Subject: Re: [iText-questions] embedded video annotation
>
> Hi Thanks for your reply, But could you explain futher ? I'm
> not folllowing
> you..
>
> I understand from you other reply To control the layout of
> multiple movie
> annotations with a sequential approach I should use
> PdfCellEvent ? Could you
> futher explain that to please..
>
That gives you the position of the cell, the place where the movie will
go.
> If you could give me a quick snippet of what you mean that
> would be much
> appreciated..
>
> E.g. Adding a movie annotation into a PdfCell, with a border & text.
>
Have a look at
http://itextdocs.lowagie.com/docs/com/lowagie/text/pdf/PdfPCellEvent.htm
l. Inside cellLayout use something like this (you'll have to adapt it):
PdfFileSpecification fs = PdfFileSpecification.fileEmbedded(writer,
"c:\\saitoz-n.mpeg", "saitoz-n.mpeg", null);
PdfAnnotation annotx = PdfAnnotation.createScreen(writer, new
Rectangle(300f, 700f, 400f, 800f),
"saitoz-n.mpeg",fs,"video/mpeg",false);
PdfTemplate tp = cb.createTemplate(100, 100);
Image imm = Image.getInstance("c:\\babytux.png");
imm.setAbsolutePosition(0, 0);
imm.scaleAbsolute(100, 100);
tp.addImage(imm);
ColumnText.showTextAligned(tp, Element.ALIGN_CENTER, new Phrase("Your
text here"), 50, 50, 45);
annotx.setAppearance(PdfAnnotation.APPEARANCE_NORMAL, tp);
writer.addAnnotation(annotx);
Paulo
> Thankyou
>
> >From: "Paulo Soares" <[EMAIL PROTECTED]>
> >Reply-To: Post all your questions about iText here
> ><itext-questions@lists.sourceforge.net>
> >To: "Post all your questions about iText here"
> ><itext-questions@lists.sourceforge.net>
> >Subject: Re: [iText-questions] embedded video annotation
> >Date: Sun, 22 Oct 2006 23:47:26 +0100
> >
> >You can create a normal appearance with the text/image you
> want as a static
> >display.
> >
> >Paulo
> >
> >----- Original Message -----
> >From: "Dave Brown" <[EMAIL PROTECTED]>
> >To: <itext-questions@lists.sourceforge.net>
> >Sent: Saturday, October 21, 2006 4:56 PM
> >Subject: [iText-questions] embedded video annotation
> >
> >
> > > When adding video in adobe acrobat, There is the option
> to specify a
> > > 'poster' image, which it retrieves from the first frame
> of the video.
> > >
> > > Is anything like this available in iText, the experiment
> i've done so
> >far
> > > embedding video leaves me with an invisible box I only
> know is there
> >when
> > > I
> > > move the mouse over so the cursor changes..
> > >
> > > If we cant use the first frame of the video, being able
> to supply an
> >image
> > > would be good.
> > >
> > > Thanks, Dave
Aviso Legal:
Esta mensagem é destinada exclusivamente ao destinatário. Pode conter
informação confidencial ou legalmente protegida. A incorrecta transmissão desta
mensagem não significa a perca de confidencialidade. Se esta mensagem for
recebida por engano, por favor envie-a de volta para o remetente e apague-a do
seu sistema de imediato. É proibido a qualquer pessoa que não o destinatário de
usar, revelar ou distribuir qualquer parte desta mensagem.
Disclaimer:
This message is destined exclusively to the intended receiver. It may contain
confidential or legally protected information. The incorrect transmission of
this message does not mean the loss of its confidentiality. If this message is
received by mistake, please send it back to the sender and delete it from your
system immediately. It is forbidden to any person who is not the intended
receiver to use, distribute or copy any part of this message.
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions