Hello,
I did an annotation of sound type.
I want to specify a file specification in the dictionary.
Which value should I put for F key?
I tried PdfFileSpecification value but Adobe reader need a number.
So I tried different things but it does not work.
See the code below
//Title
annotation.put(PdfName.T,new
com.lowagie.text.pdf.PdfString("Commentaire
audio"));
//Description
annotation.put(PdfName.CONTENTS,new
com.lowagie.text.pdf.PdfString("Flux audio"));
//Subtype
annotation.put(PdfName.SUBTYPE,new PdfName("Sound"));
/*FILE SPECIFICATION*/
com.lowagie.text.pdf.PdfFileSpecification fs=
com.lowagie.text.pdf.PdfFileSpecification.fileEmbedded(
stamp.getWriter(), "anna.wav", "anna.wav" , null);
annotation.put(PdfName.F,new com.lowagie.text.pdf.PdfNumber(
fs.getReference().getGeneration()));
-------------------------------------------------------------------------
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/