Bug 111325 - Adding a watermark automatically adds a page header
Summary: Adding a watermark automatically adds a page header
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
5.4.0.3 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
: 160923 (view as bug list)
Depends on:
Blocks: Writer-Header-Footer Page-Watermark
  Show dependency treegraph
 
Reported: 2017-08-03 23:36 UTC by Bastián Díaz
Modified: 2024-06-21 14:09 UTC (History)
6 users (show)

See Also:
Crash report or crash signature:


Attachments
Screenshot (22.67 KB, image/png)
2017-08-03 23:38 UTC, Bastián Díaz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bastián Díaz 2017-08-03 23:36:49 UTC
Description:
When you add a watermark additionally a new page header is added in the document. When you try to erase the page header, the watermark is also deleted.

It also occurs if the user before adding a watermark already has a page header established and if it is deleted, the watermark is deleted. So you can't have a watermark without setting a page header.

Steps to Reproduce:
1. Open new document (Enable formatting marks to improve visibility)
2. Add a watermark: Ex. "Draft" using Format|Watermark
3. Delete the page header

Actual Results:  
When you add a watermark, system add a page header

Expected Results:
Only watermark is added


Reproducible: Always

User Profile Reset: Yes

Additional Info:
Testing on:
LibreOffice 5.4.0.3 (7556cbc6811c9d992f4064ab9287069087d7f62c) gtk+3
LibreOffice 6.0.0.0.alpha0 (e0bafa78e3ad0df397d78cd65ad19bd5b07dc5f2) gtk+3
Fedora 26 64bit XFCE


User-Agent: Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:54.0) Gecko/20100101 Firefox/54.0
Comment 1 Bastián Díaz 2017-08-03 23:38:53 UTC
Created attachment 135116 [details]
Screenshot
Comment 2 Jean-Baptiste Faure 2017-08-04 04:52:30 UTC
Reproducible with LO 5.4.1.0.0+ built at home under Ubuntu 16.04 x86-64.
Header creation is not visible on the screencast on the blog post by Szymon cited in the 5.4 release notes (https://eszkadev.blogspot.fr/2017/06/watermark-for-libreoffice-writer.html). So I guess it is no intended then it is a bug.

Set to NEW.

Best regards. JBF
Comment 3 m_a_riosv 2017-08-04 07:37:06 UTC
But it is not an issue it's how watermark was implemented, in fact you don't need the watermark option to do the same, but it simplifies to do it a lot and makes it visible.

http://eszkadev.blogspot.com.es/2017/06/watermark-for-libreoffice-writer.html
Comment 4 Xisco Faulí 2017-08-04 07:46:06 UTC
@Szymon, Could you please comment on this one ?
Comment 5 Bastián Díaz 2017-08-04 08:12:19 UTC
(In reply to m.a.riosv from comment #3)
> But it is not an issue it's how watermark was implemented,

This feature derives from the function of the TSCP standard added in an earlier version of LO, so I guess that's why the reason for adding a header automatically, however, is not what is expected for a single watermark feature.

> in fact you don't
> need the watermark option to do the same, but it simplifies to do it a lot
> and makes it visible.
> 

That's the idea! Other office suites offer to add text or an image easily as a watermark for a while.
Comment 6 Szymon Kłos 2017-08-04 10:25:58 UTC
(In reply to Jean-Baptiste Faure from comment #2)
> Header creation is not visible on the screencast on the blog post by Szymon
> cited in the 5.4 release notes
> (https://eszkadev.blogspot.fr/2017/06/watermark-for-libreoffice-writer.html).
> So I guess it is no intended then it is a bug.

Header was added, after insertion the content was slightly moved down.

Watermark is inserted to the page header and that is the root cause. This is done for a compatibility with other suites (MS Office also does Watermark this way, and adds page header).

In my opinion: NOTABUG
Comment 7 Bastián Díaz 2017-08-04 20:54:52 UTC
(In reply to Szymon Kłos from comment #6)
> (In reply to Jean-Baptiste Faure from comment #2)
> > Header creation is not visible on the screencast on the blog post by Szymon
> > cited in the 5.4 release notes
> > (https://eszkadev.blogspot.fr/2017/06/watermark-for-libreoffice-writer.html).
> > So I guess it is no intended then it is a bug.
> 
> Header was added, after insertion the content was slightly moved down.
> 
> Watermark is inserted to the page header and that is the root cause. This is
> done for a compatibility with other suites (MS Office also does Watermark
> this way, and adds page header).
> 
> In my opinion: NOTABUG

I understand what you say and I really don't know how this feature works internally, however, it is different from what you see in other applications.

For example, in MS Office and WPS Office the page header to add a watermark is completely invisible to the user and therefore a) doesn't modify the size of the page margin and b) the user can insert/remove headers/footers without deleting the watermark.

I see as a problem that the user can edit visible elements with unexpected results, in addition to importing an OOXML document with a watermark to LibreOffice changes the layout of the same one when adding new elements (header/footer) modifying the margins, etc.
Comment 8 haevalencia 2017-08-07 01:39:17 UTC
I had a similar problem to the one described here. I had to manually calculate the top margin so that it was equal to the bottom margin in a printed document and when using a header I have to manually change the values to match with the footer.

If it is not possible to improve the UX, at least the header that is added with the watermark could use the same values of the default style? Both say "default style" but do not use the same values.
Comment 9 Szymon Kłos 2017-08-11 09:26:56 UTC
So issue is: "Adding a watermark moves the document content down" not "Adding a watermark automatically adds a page header". I can confirm that.

"When you try to erase the page header, the watermark is also deleted." - I see that in MS Office when watermark is inserted then removing the header is impossible(only content is deleted). This should be a separate bug report, I think.
Comment 10 Bastián Díaz 2017-08-11 18:56:44 UTC
(In reply to Szymon Kłos from comment #9)
> So issue is: "Adding a watermark moves the document content down" not
> "Adding a watermark automatically adds a page header". I can confirm that.
> 

Yeah, a common user doesn't know the relationship between the header and the watermark. Moving the content below is a consequence of inserting a header into LO.

You are free to change the title of the report.

> "When you try to erase the page header, the watermark is also deleted." - I
> see that in MS Office when watermark is inserted then removing the header is
> impossible(only content is deleted). This should be a separate bug report, I
> think.

Ok, although it seems a bigger UX problem because of how LO handles headers/footers compared to other applications. On the other hand I also noticed that there is no intuitive way to erase the watermark (deleting content doesn't delete the header).

Cheers
Comment 11 Stéphane Guillou (stragu) 2024-05-19 01:07:10 UTC
*** Bug 160923 has been marked as a duplicate of this bug. ***