Hi,
I'm using XPAAJ library to export annotations contained in a PDF file to XFDF file. The files which have fileAttachmentAnnotations cannot be exported to XFDF and is giving the exception pasted below. Is there any known issue in XPAAJ library that it doesn't work with FileAttachmentsAnnotations?
The exception stack trace is given below
com.adobe.internal.pdf.cos.util.exceptions.PDFCosCastException: expected CosName
at com.adobe.internal.pdf.cos.CosObject.nameValue(Unknown Source)
at com.adobe.internal.pdf.cos.CosDictionary.getName(Unknown Source)
at com.adobe.internal.pdf.PDFEmbeddedFile.getMIMEType(Unknown Source)
at com.adobe.internal.xfdf.XFDFAnnotationFileAttachment.transformToXFDF(Unknown Source)
at com.adobe.internal.xfdf.PDF2XFDFAnnotationsReader.outputAnnotations(Unknown Source)
at com.adobe.internal.xfdf.PDF2XFDFAnnotationsReader.HandleAnnotations(Unknown Source)
at com.adobe.internal.xfdf.PDF2XFDFAnnotationsReader.parse(Unknown Source)
at org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:452)
at com.adobe.internal.pdf.cos.util.Utility.transformToXML(Unknown Source)
at com.adobe.internal.xfdf.XFDFObject.exportAnnotations(Unknown Source)
at com.adobe.pdf.impl.PDFDocumentImpl.exportAnnotations(Unknown Source)
Is there any other product (any adobe or other for that matters) i can use to accomplish the export annotation task. Note that I wouldn't like to use Acrobat SDK or Assembler as they have this ability.
Any suggestion would help a great deal.
Thanks
Ali