Bug 89775 - DOCX: Save more information tags in app.xml
Summary: DOCX: Save more information tags in app.xml
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
4.5.0.0.alpha0+ Master
Hardware: Other All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:docx
Depends on:
Blocks: DOCX
  Show dependency treegraph
 
Reported: 2015-03-02 06:47 UTC by Yousuf Philips (jay) (retired)
Modified: 2020-12-02 09:25 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yousuf Philips (jay) (retired) 2015-03-02 06:47:20 UTC
When saving to docx, LibreOffice only saves a very little amount of information in the /docProps/app.xml file, as shown below.

<TotalTime>31</TotalTime>
<Application>LibreOfficeDev/4.5.0.0.alpha0$Linux_x86 LibreOffice_project/4cf69df2f543b023f4ec3d4279c5ac11a2a819d9</Application>
<Paragraphs>1</Paragraphs>

While when saved from MS Word 2010, the saved document has more information, as below.

<TotalTime>0</TotalTime>
<Pages>1</Pages>
<Words>5</Words>
<Characters>35</Characters>
<Application>Microsoft Office Word</Application>
<DocSecurity>0</DocSecurity>
<Lines>1</Lines>
<Paragraphs>1</Paragraphs>
<ScaleCrop>false</ScaleCrop>
<Company></Company>
<LinksUpToDate>false</LinksUpToDate>
<CharactersWithSpaces>39</CharactersWithSpaces>
<SharedDoc>false</SharedDoc>
<HyperlinksChanged>false</HyperlinksChanged>
<AppVersion>14.0000</AppVersion>

It would be useful to save more of this information, especially when they are easily available.
Comment 1 Buovjaga 2015-03-05 13:05:47 UTC
I agree.

Win 7 Pro 64-bit Version: 4.5.0.0.alpha0+
Build ID: 7c0eb12009496a35c927cd5b2520f9c34d50860b
TinderBox: Win-x86@62-TDF, Branch:MASTER, Time: 2015-03-03_10:52:12
Locale: fi_FI
Comment 2 Yousuf Philips (jay) (retired) 2015-05-07 11:07:06 UTC
Came across this page which had an list of the various tag names that can be used in app.xml.

http://www.sno.phy.queensu.ca/~phil/exiftool/TagNames/OOXML.html
Comment 3 Yousuf Philips (jay) (retired) 2015-05-15 21:20:37 UTC
Seems AppVersion cant be used, as using it with numbers other than MS Office version numbers, causes the documents to not open correctly in MSO (bug 91064).
Comment 4 Yousuf Philips (jay) (retired) 2015-11-20 06:05:16 UTC
@alexey: There were quite some other attributes that would be useful to export in OOXML.
Comment 5 alexey.chemichev 2015-11-20 16:10:26 UTC
Trying to define the scope (see also tdf#89775)...

ECMA describes 28 Extended Properties:

+   01. Application (Application Name)
    02. AppVersion (Application Version)
+   03. Characters (Total Number of Characters)
+   04. CharactersWithSpaces (Number of Characters (With Spaces))
    05. Company (Name of Company)
    06. DigSig (Digital Signature)
    07. DocSecurity (Document Security)
    08. HeadingPairs (Heading Pairs)
    09. HiddenSlides (Number of Hidden Slides)
    10. HLinks (Hyperlink List)
    11. HyperlinkBase (Relative Hyperlink Base)
    12. HyperlinksChanged (Hyperlinks Changed)
    13. Lines (Number of Lines)
    14. LinksUpToDate (Links Up-to-Date)
    15. Manager (Name of Manager)
    16. MMClips (Total Number of Multimedia Clips)
    17. Notes (Number of Slides Containing Notes)
+   18. Pages (Total Number of Pages)
+   19. Paragraphs (Total Number of Paragraphs)
    20. PresentationFormat (Intended Format of Presentation)
    21. Properties (Application Specific File Properties)
    22. ScaleCrop (Thumbnail Display Mode)
    23. SharedDoc (Shared Document)
    24. Slides (Slides Metadata Element)
+   25. Template (Name of Document Template)
    26. TitlesOfParts (Part Titles)
+   27. TotalTime (Total Edit Time Metadata Element)
+   28. Words (Word Count)

Someone please help to mark the props that are really valid for LO and are present (or can be calculated) in the codebase
Comment 6 alexey.chemichev 2015-11-20 16:12:55 UTC
*see also tdf#90904
Comment 7 Robinson Tryon (qubit) 2015-12-09 18:45:07 UTC Comment hidden (obsolete)
Comment 8 Carolyn V. Little 2020-01-22 09:38:44 UTC Comment hidden (spam)
Comment 9 Sachin. T 2020-12-01 11:38:48 UTC Comment hidden (spam)
Comment 10 Simmy George 2020-12-02 09:25:09 UTC Comment hidden (spam)