Bug 99228 - Page Borders and drawing shapes displayed incorrectly
Summary: Page Borders and drawing shapes displayed incorrectly
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
5.2.7.2 release
Hardware: x86-64 (AMD64) All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:docx
Depends on:
Blocks: DOCX-Page Page-Borders
  Show dependency treegraph
 
Reported: 2016-04-11 17:41 UTC by Richard
Modified: 2022-06-08 09:55 UTC (History)
5 users (show)

See Also:
Crash report or crash signature:


Attachments
Borders&Logo (358.36 KB, application/wps-office.docx)
2016-04-11 17:43 UTC, Richard
Details
How it looks in MSOffice (99.26 KB, image/png)
2016-04-11 17:45 UTC, Richard
Details
minimum demonstration (33.40 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2021-06-21 02:28 UTC, Ammar A
Details
Minimized example file from Word 2016 with page border and drawing shapes (32.14 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2022-06-08 09:50 UTC, Gabor Kelemen (allotropia)
Details
The minimized example in Word 2016 and current master (83.40 KB, image/png)
2022-06-08 09:54 UTC, Gabor Kelemen (allotropia)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Richard 2016-04-11 17:41:31 UTC
User-Agent:       Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.112 Safari/537.36
Build Identifier: LibreOffice 5.1.2.2

When I open the document in Libreoffice shapes on the title page are completely off and the "Harriman's" watermark has no transparency.

Reproducible: Always

Steps to Reproduce:
1.Download the Document
2.Open in LibreOffice 5.1.2.2 (I haven't tested other versions)
3.Enjoy
Actual Results:  
Title Page wrong, No Transparency for Logo-Not sure if there is a way to work around it.

Expected Results:  
Title page displayed correctly, text over logo easily readable.

[Information automatically included from LibreOffice]
Locale: en-US
Module: TextDocument
[Information guessed from browser]
OS: Linux (Ubuntu 14.04)
OS is 64bit: yes


Reset User Profile?No
Comment 1 Richard 2016-04-11 17:43:34 UTC
Created attachment 124258 [details]
Borders&Logo
Comment 2 Richard 2016-04-11 17:45:02 UTC
Created attachment 124259 [details]
How it looks in MSOffice
Comment 3 raal 2016-04-12 11:00:13 UTC
I can confirm with Version: 5.2.0.0.alpha0+; win7
Comment 4 Telesto 2016-11-28 17:39:43 UTC
Confirming with:
Version: 5.4.0.0.alpha0+ (x64)
Build ID: 7aa2b5a041df8e71a435cccbc79ee13799ec9138
CPU Threads: 4; OS Version: Windows 6.19; UI Render: default; Layout Engine: new; 
TinderBox: Win-x86_64@62-TDF, Branch:MASTER, Time: 2016-11-24_11:40:27
Locale: nl-NL (nl_NL); Calc: CL
Comment 5 QA Administrators 2018-06-26 02:44:20 UTC Comment hidden (obsolete)
Comment 6 Thomas Lendo 2019-01-05 18:28:56 UTC
Still repro.
Version: 6.3.0.0.alpha0+
Build-ID: be8897d9c63a77b223a9c0aed1d2eb689e0e0082
CPU-Threads: 4; BS: Linux 4.15; UI-Render: Standard; VCL: gtk3; 
TinderBox: Linux-rpm_deb-x86_64@86-TDF, Branch:master, Time: 2019-01-02_04:49:04
Comment 7 QA Administrators 2021-01-05 03:48:24 UTC Comment hidden (obsolete)
Comment 8 Ammar A 2021-06-21 02:27:25 UTC
This is still the case as of the latest release. Steps to reproduce:
1. Create a new Microsoft Word document
2. Add a watermark to the document and save.
3. Open document in LibreOffice Writer, notice that the watermark image no longer has any transparency applied.
Comment 9 Ammar A 2021-06-21 02:28:35 UTC
Created attachment 173045 [details]
minimum demonstration
Comment 10 Gabor Kelemen (allotropia) 2022-06-08 09:49:47 UTC
The watermark looks transparent in 7.4 master since:

https://git.libreoffice.org/core/+/90556b6df0f6378fb60d7dee18b2f5d275ece530

author	Miklos Vajna <vmiklos@collabora.com>	Thu Dec 16 10:16:02 2021 +0100
committer	Miklos Vajna <vmiklos@collabora.com>	Thu Dec 16 12:43:11 2021 +0100

VML import: handle <v:imagedata gain="..." blacklevel="...">

Thanks Miklos for fixing this issue!

However, there are still some issues with the shapes and the page border: in Word the page border is in front of the shapes, in Writer it is behind them. 
Let's refocus this bug on that.
Comment 11 Gabor Kelemen (allotropia) 2022-06-08 09:50:50 UTC
Created attachment 180632 [details]
Minimized example file from Word 2016 with page border and drawing shapes
Comment 12 Gabor Kelemen (allotropia) 2022-06-08 09:54:29 UTC
Created attachment 180633 [details]
The minimized example in Word 2016 and current master

Version: 7.4.0.0.alpha1+ (x64) / LibreOffice Community
Build ID: f572585756494c59fb81f5d93c51cc2d35421f0e
CPU threads: 14; OS: Windows 10.0 Build 19044; UI render: default; VCL: win
Locale: en-US (hu_HU); UI: en-US
Calc: threaded

Note: in Word it looks like the Z-order is kinda implicit: page border is always in front of the shapes, I'm unable to put shapes in front of it.

In Writer putting the shapes to the background creates the same effect as in Word, but setting that on import would likely create visibility issues with text.