Flattening PDF results in wrong date from date field

Using aspose-pdf-20.8.jar, we notice that if document contains filled date field, the date will appear incorrect after document flattening. For example, 10/2/20 becomes //20 and 10/02/2020 becomes 10/02/3920. This is a critical issue for us since dates are crucial in our legal field. Is there a fix for this?

Thank you!


Would you kindly share your sample PDF file along with code snippet which you are using. We will test the scenario in our environment and address it accordingly.

Test3.pdf (6.6 KB)

  def pdfDocument = new com.aspose.pdf.Document(“Test3.pdf”);


We were able to reproduce the similar issue in our environment while using 20.9 version of the API. We have logged it under the ticket ID PDFJAVA-39837 in our issue tracking system for further investigation. We will look into its details and keep you informed about its resolution status. Please have patience and spare us some time.

We are sorry for the inconvenience.

I know this is an old thread, but curious if there is any update on this issue as I am also running into this same issue using the same process above. A date of 09/27/2023 is converted to 09/27/3923 after flattening


We are afraid that we could not resolve the logged issue yet due to other issues in the queue. Nevertheless, your concerns have been recorded and as soon as the ticket is resolved, we will let you know in this forum thread. We apologize for the inconvenience.

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

Does the fix mentioned by the notifier fix the issue only in Java or will it also fix the issue for the .NET version


Every fix in Java API is also present in the equivalent version of .NET API. Please try at your end with .NET API as well and let us know in case you face any issues.