Bug 83136 - FILEOPEN: DOCX form import page layout - header different
Summary: FILEOPEN: DOCX form import page layout - header different
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:docx
Depends on:
Blocks: DOCX-ActiveX-Legacy DOCX-Page
  Show dependency treegraph
 
Reported: 2014-08-27 10:50 UTC by FriendFX
Modified: 2023-06-03 22:44 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
The document printed via FreePDF from MS Word 2007 (107.10 KB, application/pdf)
2014-09-01 23:50 UTC, FriendFX
Details
The original DOCX file. (45.98 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2014-09-01 23:54 UTC, FriendFX
Details
screenshot of incorrect interpretation (72.77 KB, image/png)
2014-09-03 13:32 UTC, penttila
Details
screenshot in 4.3.2.2 (40.04 KB, image/png)
2014-10-19 18:19 UTC, tommy27
Details
screenshot in 4.4.0.0 alpha (43.97 KB, image/png)
2014-10-19 18:20 UTC, tommy27
Details
The minimized example file in Word and Writer 7.0 (181.87 KB, image/png)
2020-11-24 13:20 UTC, NISZ LibreOffice Team
Details
1-page DOCX sample unprotected (28.71 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2021-08-05 12:25 UTC, Timur
Details
The 1 page document in Word and Writer master (87.88 KB, image/png)
2022-11-07 08:58 UTC, Gabor Kelemen (allotropia)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description FriendFX 2014-08-27 10:50:29 UTC
Importing the document found on the following website:

http://www.sarafi.com.au/images/sarafi_files/money_transfer_form.docx

This document's layout is broken. There should be only a single page and also the form widgets are out of place/incorrect, I am guessing the DOCX file was created with MS Word.

If deemed helpful, I could attach a PDF printed from MS Word as a reference.
Comment 1 ign_christian 2014-08-27 12:40:43 UTC
> If deemed helpful, I could attach a PDF printed from MS Word as a reference.
Yes please.. Would make job easier for many testers here :)
Comment 2 FriendFX 2014-09-01 23:50:25 UTC
Created attachment 105577 [details]
The document printed via FreePDF from MS Word 2007

In the original document (linked to in the bug report), there are many input fields (which of course are lost in this PDF version). 

For example, the "Choose Country" fields are dropdowns, "Enter Date of Birth" shows a datechooser when clicked.
Comment 3 FriendFX 2014-09-01 23:54:17 UTC
Created attachment 105578 [details]
The original DOCX file.

Just to keep it here in case the original link dies.
Comment 4 penttila 2014-09-03 13:32:53 UTC
Created attachment 105682 [details]
screenshot of incorrect interpretation

I can confirm this bug. See the attached screen-shot.

LinuxMint 17 Cinnamon
LO  4.2.4.2 Build id.: 420m0(Build:2)
Comment 5 Buovjaga 2014-10-06 05:36:20 UTC
I repro on 4.3.2.2 Win 7, but on dev build I get Assertion failed and can't open the document.

Version: 4.4.0.0.alpha0+
Build ID: 9177329a425cf70b515d1f266132838894fe54c6
TinderBox: Win-x86@39, Branch:master, Time: 2014-10-06_01:02:02
Comment 6 tommy27 2014-10-19 18:19:19 UTC
Created attachment 108067 [details]
screenshot in 4.3.2.2
Comment 7 tommy27 2014-10-19 18:20:03 UTC
Created attachment 108068 [details]
screenshot in 4.4.0.0 alpha

bug confirmed under 4.3.2.2 and  4.4.0.0.alpha0+
Build ID: 3e2bd1e4022e25b77bcc8eba5e02c1adc57008a1
TinderBox: Win-x86@42, Branch:master, Time: 2014-10-16_01:04:13

however document rendering in 4.4.x though not perfect yet is much better than 4.3.x

see attached screenshots
Comment 8 QA Administrators 2015-12-20 16:17:49 UTC Comment hidden (spam)
Comment 9 QA Administrators 2019-05-14 02:56:53 UTC Comment hidden (obsolete)
Comment 10 NISZ LibreOffice Team 2020-11-24 13:20:36 UTC
Created attachment 167535 [details]
The minimized example file in Word and Writer 7.0

Looks quite good now in:

Version: 7.0.0.3 (x64)
Build ID: 8061b3e9204bef6b321a21033174034a5e2ea88e
CPU szálak: 4; OS: Windows 6.3 Build 9600; Felületmegjelenítés: Skia/Raster; VCL: win
Locale: hu-HU (hu_HU); UI: hu-HU
Calc: CL

In 6.4 and before some dropdown fields (such as State:) had their default text not broken to two lines like in Word (such as Choose State), which overlapped neighboring cells. Now these display by default the first option.

What's still different is the page border line in Word does not include the header/footer while in Writer it does.
Comment 11 Justin L 2020-11-28 13:22:55 UTC
OK - so sounds like a layout issue then.
Restating - the problem now is that the page style borders include the header/footer in Writer, but in Word the borders exclude the header/footer. So a compatibility flag would need to be used for this distinction.

Reducing the importance.
Comment 12 Timur 2021-08-05 12:25:51 UTC
Created attachment 174103 [details]
1-page DOCX sample unprotected

The original DOCX file is protected, so here is unprotected DOCX from MSO with just header, footer and line numbers. It fits to 1 page in MSO.
Bug reproduced in 7.3+, as content goes to 2nd page.
Comment 13 Gabor Kelemen (allotropia) 2022-11-07 08:58:54 UTC
Created attachment 183445 [details]
The 1 page document in Word and Writer master

Seems like the 1 page sample got better in 

https://git.libreoffice.org/core/+/1f127a2b9e1c1daab0972f98fc8708ecb7afa299

author	Miklos Vajna <vmiklos@collabora.com>	Tue Jun 07 08:03:34 2022 +0200
committer	Miklos Vajna <vmiklos@collabora.com>	Tue Jun 07 08:45:46 2022 +0200

sw layout: allow negative page border distances

Now the header text is not inside the page border, but the footer text still is.
Comment 14 Justin L 2023-06-03 22:44:36 UTC
(In reply to NISZ LibreOffice Team from comment #10)
> What's still different is the page border line in Word does not include the
> header/footer while in Writer it does.
That is bug 71843.