Annotations are not visible after import from XFDF

Annotations are not visible after importing to pdf from xfdf using Apose.PDF for Java 20.12.

Please check the attached pdf and xfdf files.

test.zip (232.6 KB)

The code sample to reproduce:

    PdfAnnotationEditor editor = new PdfAnnotationEditor();
    editor.bindPdf("test.pdf");
    editor.importAnnotationsFromXfdf("test.xfdf");
    editor.save("test_out.pdf");
    editor.close();

Steps to reproduce:

  1. Run the code above.
  2. Open test_out.pdf using Adobe Acrobat Reader.

Expected:
Annotation (“Approved” stamp) is visible.

Actual:
Annotation is not visible.

@alex20160608

We were able to reproduce the issue in our environment and have logged it in our issue management system under the ticket ID PDFJAVA-40082. We will further look into its details and keep you posted with the status of its correction. Please be patient and spare us some time.

We are sorry for the inconvenience.

Thank you for the prompt response! The bug seems to be pretty major… What’s the timeframe to fix it? Is it possible to include the fix into 20.13 release?

@alex20160608

The issue has been logged recently in our issue tracking system and it will be investigated/resolved on a first come first serve basis as per normal support policy. We do understand the significance of the issue for you however, we believe that it is the fairest policy for everyone.

Furthermore, the next release of the API would be 21.1 and we regretfully cannot make any promise at the moment about the fix of the issue. We will surely inform you as soon as we make some certain progress towards the resolution of the logged ticket. Please give us some time.

We apologize for the inconvenience.

We investigated this on our side and the reason of the problem is that Aspose import code relies on the “name” property of the annotations. When there is no such property it ignores them.

Adobe browser plugin saves annotations without this property by default so this is a major problem if you use Adobe plugin in your application.

@Alex_Rayev

Thanks for sharing the results of your investigation. We have updated the information of the logged ticket and will surely consider it during the investigation and implementation of a fix.

The issues you have found earlier (filed as PDFJAVA-40082) have been fixed in Aspose.PDF for Java 21.2.