Bug 70312 - FILESAVE: Writer document made in 4.0.0.3 get 11mb larger after save in 4.1.2.3
Summary: FILESAVE: Writer document made in 4.0.0.3 get 11mb larger after save in 4.1.2.3
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
4.1.2.3 release
Hardware: Other Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard: BSA
Keywords: regression
Depends on:
Blocks:
 
Reported: 2013-10-09 09:27 UTC by Joeri Feyen
Modified: 2013-10-13 13:36 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Example file which is made on version 4.0.0.3 (19.85 KB, application/vnd.oasis.opendocument.text)
2013-10-09 09:27 UTC, Joeri Feyen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Joeri Feyen 2013-10-09 09:27:53 UTC
Created attachment 87326 [details]
Example file which is made on version 4.0.0.3

Problem description: 
Hi, we have made some documents in the 4.0.0.3 version of LibreOffice Writer. 
We have deployed the latest version of LibreOffice 4.1.2.3 to our users.
They started to open their already made odt of 4.0.0.3 and started to save those in the new version. The file grew from 20kb to 11.243 MB.

Steps to reproduce:
1. Create a writer file in 4.0.0.3
2. Save it 
3. Reopen the saved 4.0.0.3 file and open it in 4.1.2.3
4. Save the document -> check the size now

Current behavior: When already made writer files of version 4.0.0.3 are saved in 4.1.2.3 they are 11 mb larger.

Expected behavior: When you save your files in a newer version they should keep the same size.

Example file which is made on 4.0.0.3 is attached.

Kr,

Joeri
              
Operating System: Windows 7
Version: 4.1.2.3 rc
Last worked in: 4.0.0.3 release
Comment 1 Maxim Monastirsky 2013-10-09 13:02:43 UTC
Hi,
The increase of the file size is because LO embeds all used fonts into the document. In order to disable this feature you should go to File->Properties...->Font, and uncheck 'Embed fonts in the document'. You should repeat it for every affected document.

The reason that this feature is activated for your document, is that you've created the document in Word 2010 (as you have '<meta:user-defined meta:name="AppVersion">14.0000</meta:user-defined>' in meta.xml) and then resaved to ODT format using LO. And seems like you have activated this feature in the original Word document. But LO 4.0 didn't have that feature, so it silently ignored it, and you got a smaller file.
Comment 2 Joeri Feyen 2013-10-10 08:13:13 UTC
Hi Maxim,

What is the best way to migrate a document from Word 2010 to LibreOffice 4.1.2.3?
Control + c and copy all the contents and past it in a new LibreOffice document?

I checked the option Embed fonts and i will keep this in mind.

Kr,

Joeri
Comment 3 Maxim Monastirsky 2013-10-13 13:36:25 UTC
(In reply to comment #2)
> What is the best way to migrate a document from Word 2010 to LibreOffice
> 4.1.2.3?
> Control + c and copy all the contents and past it in a new LibreOffice
> document?
I don't think it's a good idea. It's better to save your document as a file and open it in LO. Preferably you should try DOC or ODT formats, as the DOCX support in LO is not in a very good shape (from my experience).

What related to your problem - If you want that LO 4.1 will stop embedding fonts in a document that was migrated from Word by default, You should uncheck fonts embedding in *Word* (This can be done in Word 2010 through File->Options->Save->Embed fonts in the file.)