Timestamp when signing

Hi,
OoxmlSaveOptions/DocSaveOptions/XpsSaveOptions DigitalSignatureDetails does not have DigitalSignatureTimestampSettings? Now when signing with Words, and opened in Word 2024, no timestamp is shown!

Also, Windows version is incorrectly set to 6.1, while I run it under Windows 10. How to fix, either based on real Windows version where code runs, or set manually?

And Office/Word version is also set to 12.0, while I tried to set it to Document.BuiltInDocumentProperties.Version = 16 << 16 with no luck!
I think it should update according to .CompatibilityOptions.OptimizeFor(Words.Settings.MsWordVersion.Word2019)?

For all 3 issues, please see the attached snapshot.

Also
https://reference.aspose.com/words/net/aspose.words.settings/mswordversion/
Default is 0? Because when saving as Docx, it seems to be 3 (2007), is it safe to set it always to 2019?

@australian.dev.nerds

The feature request is logged as WORDSNET-25897

The issue has been logged as WORDSNET-29081.

Yes, it is safe. You can optimize your document to the required MS Word version.

1 Like

Thanks, please also add this:
Primary Monitor is mentioned as 1920x1200, test system running the code to make it is 4k
So 1920x1200 is wrong, note that my app is not dpiaware, but you can get real res anyway.

@australian.dev.nerds Ok, it looks like default values for these properties are written.

1 Like

Thank you,
Just I’m not sure about this property

Document.BuiltInDocumentProperties.Version = 16 << 16

Is it same as Word version 16.0? Did I use it correctly?

@australian.dev.nerds Yes, the code is correct:

11 = Word 2003
12 = Word 2007
14 = Word 2010
15 = Word 2013
16 = Word 2016

To get the value of the property you can use the following code:

Document doc = new Document("in.docx");
int MSWVersion = doc.getBuiltInDocumentProperties().getVersion() >> 16;
System.out.println(MSWVersion);