Date Field is Automatically updated on DOCX to PDF Conversion

Under Aspose.Words version 15.2, when a DOCX file which has a Date field, that is saved as PDF, the Date field is updated in the resulting PDF. This new behavior may be a side-effect of fixing issue WORDSNET-11244 (Put name of Word document in FILENAME field in PDF), which was fixed as a result of this post:
https://forum.aspose.com/t/47747

To reproduce this issue under Aspose.Words simply convert the attached DOCX file to PDF. There is a Date field which gets updated and shown in the resulting PDF file.

In some scenarios, updating Fields during the conversion from DOCX to
PDF is not wanted and may produce unexpected results. Would it be possible to have the updating of Fields optional during the
conversion to PDF? Perhaps you can introduce a new API in the PdfSaveOptions
class which controls the updating of fields? If not, can you please provide additional details as to which fields are automatically updated during the PDF conversion so that we can workaround this new behavior?

Thank you.

Hi,


Thanks for your inquiry. We are working over your query and will get back to you soon.

Best regards,

Hi,


Thanks for being patient. We have logged your requirement in our issue tracking system. The ID of this issue is WORDSNET-11616. We will further look into the details of this problem and will keep you updated on the status of this issue. We apologize for any inconvenience.

Best regards,

Hi,


Thanks for being patient. Regarding WORDSNET-11616, our product team has completed the analysis of your issue and has come to a conclusion that this issue and the undesired behaviour you’re observing is actually not a bug. So, we will close this issue as ‘Not a Bug’.

In this case, Aspose.Words updates DATE field during conversion to PDF according to MS Word behaviour. We think, we should not introduce new option in this case. Especially, because there is native way to avoid field update i.e. ‘field locking’. Fields can be locked in different way:

  • Manually using MS Word by pressing CTRL+F11.
  • Programmatically using Aspose.Words Field.IsLocked property, that is a part of public API.

Field locking option is specifically designed for the purpose of field update control.

Best regards,