Bug 93776 - Microsoft Word 97/2000/XP/2003 Doc vs libreoffice blank space different size above the first line of text on page
Summary: Microsoft Word 97/2000/XP/2003 Doc vs libreoffice blank space different size ...
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:doc
Depends on:
Blocks: DOC
  Show dependency treegraph
 
Reported: 2015-08-30 01:05 UTC by sparknz
Modified: 2016-12-30 19:10 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
Libreoffice pdf generated file showing formatting - to compare with official pdf (61.63 KB, application/pdf)
2016-12-28 09:20 UTC, sparknz
Details
Official pdf (1.22 MB, application/pdf)
2016-12-28 09:21 UTC, sparknz
Details
Official MS office document (54.00 KB, application/msword)
2016-12-28 09:23 UTC, sparknz
Details
pdf export from Word 2010 (251.96 KB, application/pdf)
2016-12-28 10:11 UTC, Cor Nouws
Details
Official MS office document Dec 2016 (143.56 KB, application/pdf)
2016-12-29 19:00 UTC, sparknz
Details
Official MS office document as doc (60.00 KB, application/msword)
2016-12-29 19:02 UTC, sparknz
Details
Libreoffice pdf generated file showing formatting - to compare with official 2016 pdf (62.41 KB, application/pdf)
2016-12-29 19:03 UTC, sparknz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description sparknz 2015-08-30 01:05:31 UTC
Congratulations on the progress so far with msword documents, it has come a long way. 

This Microsoft Word Document is supplied by Energysafety New Zealand for all Electricians to use to certify electrical work in New Zealand. It is supplied both as a DOC and as a PDF which means even someone without Word can see what the document should be looking like.

While there are couple of bugs with Libreoffice preventing non technical electicans using this document, this bug is about the spacing above the first line of text:
"ELECTRICAL CERTIFICATE OF COMPIANCE & ELECTRICAL SAFETY CERTIFICATE"

MSWORD 1mm
LibreOffice 8mm.

This issue combined with box sizing spacing causes the document to spread over two pages as can be seen when comparing the PDF with the DOC. 

Document not attached them as I am not the author and cannot approve a change in license. However they are provided for anyone in New Zealand and I have managed to find no restrictions documented on the website.

There are two examples as shown here:
http://www.energysafety.govt.nz/forms/certification/electrical-certification-templates/

The Word DOC file in question (85kb):
http://www.energysafety.govt.nz/documents/forms/certification/Electrical-Combined-ESC-CoC-.doc
The pdf file link (1.2Mb)
http://www.energysafety.govt.nz/documents/forms/certification/Electrical-combined-ESC-CoC.pdf

The issue is seen when saving both as "Microsoft Word 97/2000/XP/2003" and as ODF
Comment 1 A (Andy) 2015-08-30 08:04:33 UTC
Reproducible with LO 5.0.1.2, Win 8.1.

The doc document has a blank line at the top, which has in LO and MSO a different size.  Therefore, the space at the top is in LO larger than in MSO as reported in the bug description leading to that the form does not fit on one page.

Furthermore, as reported there are some further problems with the columns width leading to that some text is further indented and that text boxes are extended beyond the frame edge of the form.  And there is also one problem with a horizontal placing of an added line.
Comment 2 Cor Nouws 2015-09-08 12:04:21 UTC
One report, one single problem ? :)

Would be great if that could be done.
Comment 3 sparknz 2015-09-09 10:33:36 UTC
(In reply to Cor Nouws from comment #2)
> One report, one single problem ? :)


Quote:
this bug is about the spacing above the first line of text:
"ELECTRICAL CERTIFICATE OF COMPIANCE & ELECTRICAL SAFETY CERTIFICATE"

MSWORD 1mm
LibreOffice 8mm.

/quote.

This bug was meant to be about one problem. Sorry that was not clear.
Comment 4 Cor Nouws 2015-09-09 12:13:39 UTC
(In reply to sparknz from comment #3)

> This bug was meant to be about one problem. Sorry that was not clear.

Yes, sorry. My comment was triggered by Andy's note !
Comment 5 QA Administrators 2016-09-20 10:29:33 UTC Comment hidden (obsolete)
Comment 6 sparknz 2016-10-25 03:35:31 UTC Comment hidden (obsolete)
Comment 7 sparknz 2016-12-28 09:20:17 UTC
Created attachment 129976 [details]
Libreoffice pdf generated file showing formatting - to compare with official pdf

Issue still present in 5.2.3.3 Build ID: 5.2.3.3-11.fc25
Comment 8 sparknz 2016-12-28 09:21:56 UTC
Created attachment 129977 [details]
Official pdf

Official pdf attached now permission is given by govt department.
Comment 9 sparknz 2016-12-28 09:23:20 UTC
Created attachment 129978 [details]
Official MS office document

Attached original document file now permission given by govt department.
Comment 10 Cor Nouws 2016-12-28 10:11:01 UTC
Created attachment 129979 [details]
pdf export from Word 2010

I took the orig file to my Win7 VM and created an PDF export in Word 2010.
For me, that is exactly the same as https://bug-attachments.documentfoundation.org/attachment.cgi?id=129976
Comment 11 Cor Nouws 2016-12-28 11:05:46 UTC
(In reply to Cor Nouws from comment #10)

> I took the orig file to my Win7 VM and created an PDF export in Word 2010.
> For me, that is exactly the same as
> https://bug-attachments.documentfoundation.org/attachment.cgi?id=129976

So, there is either some font issue, or the posted file is not the original
Comment 12 sparknz 2016-12-29 19:00:47 UTC
Created attachment 130015 [details]
Official MS office document Dec 2016

File was updated by Worksafe nz. Reload a newer official version of the file.
Comment 13 sparknz 2016-12-29 19:02:18 UTC
Created attachment 130016 [details]
Official MS office document as doc

worksafe nz updated document as of dec 2016
Comment 14 sparknz 2016-12-29 19:03:28 UTC
Created attachment 130017 [details]
Libreoffice pdf generated file showing formatting - to compare with official 2016 pdf

Replace file with updated file.
Comment 15 sparknz 2016-12-29 19:06:02 UTC
Worksafe no longer provide the origional May 2014 file. However this error is still present in the current official version as of Dec 2016, downloaded from the link above.

I have refreshed the files.
Comment 16 Timur 2016-12-30 17:55:38 UTC
This was not properly reported (clear steps) and triaged (check and reproduce). 
Bug is about "spacing above the first line of text: "ELECTRICAL CERTIFICATE OF COMPIANCE & ELECTRICAL SAFETY CERTIFICATE" but not clear whether FILEOPEN or FILESAVE. 
Anyway, that's similar in MSO and LO, both for fileopen and filesave, even with LO 5.2.4.  

There's a strange logical error here: DOC available as attachment 130016 [details] that opens with 2 pages BOTH in MSO 2010 and LO was compared to PDF available, which opens with 1 page. 
We cannot compare LO generated PDF with official PDF, which is obviously different file, we can only compare LO generated PDF with MSO generated PDF. 

I'll close as WFM. If proved otherwise, please reopen.