Hi, I have a problem with itext. fileEmbedded works but the same code with fileExtern results in the message "Expected a dict object" when selecting the annotation.
Coding that works PdfFileSpecification fs = PdfFileSpecification.fileEmbedded(writer, null, objfile.TargetName, file.FileObject); com.lowagie.text.Rectangle rect = new com.lowagie.text.Rectangle(Line.PosXDoc + OffsetX + Cx, Line.PosYDoc,Line.PosXDoc + OffsetX, Line.PosYDoc + Cy); PdfAnnotation annot = PdfAnnotation.createFileAttachment(writer, rect, objfile.TargetName, fs); annot.put(PdfName.NAME, new PdfName("Tag")); writer.addAnnotation(annot); coding that gives the error PdfFileSpecification fs = PdfFileSpecification.fileExtern(writer, objfile.TargetName); com.lowagie.text.Rectangle rect = new com.lowagie.text.Rectangle(Line.PosXDoc + OffsetX + Cx, Line.PosYDoc,Line.PosXDoc + OffsetX, Line.PosYDoc + Cy); PdfAnnotation annot = PdfAnnotation.createFileAttachment(writer, rect, objfile.TargetName, fs); annot.put(PdfName.NAME, new PdfName("Tag")); writer.addAnnotation(annot); ------------------------------------------------------- This SF.Net email is sponsored by Oracle Space Sweepstakes Want to be the first software developer in space? Enter now for the Oracle Space Sweepstakes! http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click _______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions