Quantcast
Channel: Aspose.Pdf Product Family
Viewing all articles
Browse latest Browse all 3131

Annotation import bug

$
0
0
Hi,

I'm trying to import the XFDF annotations into a PDF, but the import fails with the exception below. Source files attached. The XFDF file was created using the same PdfAnnotationEditor class with exportAnnotationsXfdf from a different PDF.

PdfAnnotationEditor editor = new PdfAnnotationEditor();
editor.bindPdf("/Users/mpala/Desktop/result.pdf");
editor.importAnnotationFromXfdf(new FileInputStream("/Users/mpala/Desktop/result-1.xfdf"));
editor.save("/Users/mpala/Desktop/result-2.pdf");
class com.aspose.pdf.internal.ms.System.z9: An element with the same key already exists in the dictionary.
com.aspose.pdf.internal.ms.System.Collections.Generic.z2.addItem(Unknown Source)
com.aspose.pdf.XfdfReader.m1(Unknown Source)
com.aspose.pdf.StampAnnotation.m1(Unknown Source)
com.aspose.pdf.XfdfReader.m1(Unknown Source)
com.aspose.pdf.XfdfReader.readAnnotations(Unknown Source)
com.aspose.pdf.facades.PdfAnnotationEditor.m2(Unknown Source)
com.aspose.pdf.facades.PdfAnnotationEditor.importAnnotationFromXfdf(Unknown Source)


Viewing all articles
Browse latest Browse all 3131

Trending Articles