[Libreoffice-bugs] [Bug 107690] FILEOPEN DOCX: Mark as Final property not read

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Tue Jun 19 15:59:35 UTC 2018


https://bugs.documentfoundation.org/show_bug.cgi?id=107690

--- Comment #5 from László Németh <nemeth at numbertext.org> ---
This property is opened correctly, see "_MarkAsFinal" on
File->Properties->Custom Properties page, moreover, it's possible to switch off
it before saving.

Unfortunately, This property is not a standard DOCX property. MS Office uses a
custom property to store it, see in docProp/custom.xml:

<property fmtid="{D5CDD505-2E9C-101B-9397-08002B2CF9AE}" pid="9"
name="_MarkAsFinal"><vt:bool>1</vt:bool></property>

It seems, D5CDD505-2E9C-101B-9397-08002B2CF9AE is a "predefined property set
format identifier" of Microsoft for "The DocumentSummaryInformation and
UserDefined Property Sets":
https://msdn.microsoft.com/en-us/library/windows/desktop/aa380060(v=vs.85).aspx

Unfortunately, it seems, this is not the same, as "Read-only document", ie.
DocSecurity=1 "Document is recommended to be opened as read-only." or
DocSecurity=2 "Document is enforced to be opened as read-only." (ECMA 22.2.2.7
DocSecurity (Document Security)), see in docProp/app.xml:

<DocSecurity>0</DocSecurity>

So it's hard to handle this in a correct way, because neither MS Office does
it.

> Interesting fact that checking this box on a new document, saving it as docx and opening it in Word activates the correct warning that says this document is marked as final.

This is possible, if the default empty document template was replaced by an ODT
document containing this custom property (which comes from a DOCX document).

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20180619/c7a43005/attachment-0001.html>


More information about the Libreoffice-bugs mailing list