We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

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!

@shuyihu

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”);
  pdfDocument.flatten();
  pdfDocument.save(“Flattened.pdf”);
  pdfDocument.close();

@shuyihu

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.