I try to put an annotatation with annotation.put(PdfName.SUBTYPE,
PdfName.TEXT)
This does work.
But it appears there's not type for SOUND annotation as read in Table
8.16of PDF Refernce.
How should I proceed?
2007/2/12, Tony Chhun <[EMAIL PROTECTED]>:
Ok, thanks a lot, this one does work.
But I still have a problem: an audio annotation added with the Adobe
software is not in a rectangle, but is seen as a sound icon.
How can I carry that out?
2007/2/12, Iliadis Yannis <[EMAIL PROTECTED]>:
>
> Try to use different filenames for the input (PdfReader) and the output
> file PdfStamper).
>
> 2007/2/11, Tony Chhun < [EMAIL PROTECTED]>:
> >
> > I used PdfStamper to add an audio annotation.
> > The annotation has been put in the document but all the document has
> > been cleared, only remains the annotation.
> > What's wrong with my code please?
> >
> > here is the code:
> >
> > //Creating Reader
> > PdfReader reader= new
> > PdfReader("C:/AnnotationProjet/Tempessai.pdf");
> > //Creating stamper
> > PdfStamper stamp=new PdfStamper(reader,
> > new
> > FileOutputStream("C:/AnnotationProjet/Tempessai.pdf"));
> > //Creating file spec
> > com.lowagie.text.pdf.PdfFileSpecification fs =
> > com.lowagie.text.pdf.PdfFileSpecification.fileEmbedded(
> > stamp.getWriter(),
> > "D:/Program Files/Avast4/FRENCH/virfound.wav", "
> > virfound.wav", null);
> > //Add annot to stamper
> > stamp.addAnnotation(
> > com.lowagie.text.pdf.PdfAnnotation.createScreen(
> > stamp.getWriter(),
> > new Rectangle(500f, 500f, 600f, 600f),
> > "annot", fs,
> > "audio/wav", true), 1);
> > stamp.close();
> >
> > 2007/2/11, Bruno Lowagie < [EMAIL PROTECTED]>:
> > >
> > > Tony Chhun wrote:
> > > > I have created a PDF document with iText including an audio
> > > annotation.
> > > > The book uses PdfWriter to do this.
> > > > Can I include an audio annotation in an existing PDF document
> > > which has
> > > > not been created with iText (using PdfStamper or else)?
> > >
> > > Look for:
> > > PdfStamper.addAnnotation (PdfAnnotation annot, int page);
> > > br,
> > > Bruno
> > >
> > >
> > > -------------------------------------------------------------------------
> > > 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
> > > [email protected]
> > > https://lists.sourceforge.net/lists/listinfo/itext-questions
> > > Buy the iText book: http://itext.ugent.be/itext-in-action/
> > >
> >
> >
> >
> > -------------------------------------------------------------------------
> > 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
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/itext-questions
> > Buy the iText book: http://itext.ugent.be/itext-in-action/
> >
> >
>
>
> -------------------------------------------------------------------------
> 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
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
> Buy the iText book: http://itext.ugent.be/itext-in-action/
>
>
-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/