Bug 161678 - Adding a watermark on document adds the page header and removes the descriptor text from images
Summary: Adding a watermark on document adds the page header and removes the descripto...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
24.2.4.2 release
Hardware: x86-64 (AMD64) Windows (All)
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Page-Watermark
  Show dependency treegraph
 
Reported: 2024-06-20 04:33 UTC by dev.light
Modified: 2024-06-21 14:09 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description dev.light 2024-06-20 04:33:37 UTC
Description:
When adding watermark on document in writer, a new page header is added in the document automatically and the pre-applied image descriptors from all the images in document is removed.
It specifically happens with images taken from local directory. Online images are not affected.

Steps to Reproduce:
1. Open a new document in writer
2. Insert images from local directory
3. Add a watermark such as "Confidential" in document
4. Observe the image descriptors and header

Actual Results:
Header is added automatically and image descriptors are gone

Expected Results:
Only Watermark should be added to the document


Reproducible: Didn't try


User Profile Reset: Yes

Additional Info:
Testing on: 
Version- Libre Office 24.2.4.2 release
Hardware- 64-bit operating system, x64-based processor
OS- Windows 11 Pro Education
Comment 1 Regina Henschel 2024-06-20 11:08:51 UTC
The header needs to be added because the watermark is a shape, that is anchored to the header, so that it is repeated on each page.

But when enabling the header, if it was not already enabled, the margin is not adapted. Thus the start of the body text area is shifted down and thus makes the body text area less high. That should not happen, because it might change the overall layout of the document.

Request: When a watermark is added to a page, that has not already enabled the header, then the margins should be adapted so that the body text area does not change.

I have tested it in Version: 25.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: aaf2967d74a9a7ba2d28433e1872422ce38b6244
CPU threads: 32; OS: Windows 11 X86_64 (10.0 build 22631); UI render: default; VCL: win
Locale: de-DE (de_DE); UI: en-US
Calc: default

So for this part of your report I can confirm your observation.


I cannot confirm, that descriptions of images are gone. A 'Writer'-image has still the same content in its properties as before and a 'Draw'-image has the same alternative text as before.

Please write a new report about the problem with "image descriptions" and give an exact description how you insert the image and which text is affected. It might be that I miss something.
Comment 2 Stéphane Guillou (stragu) 2024-06-21 14:09:46 UTC
The header being added has been reported a few times, see bug 111325 - closed as "not a bug".

I agree it would make sense to have the margin adapt to not relayout the contents.

No idea what is meant by "image descriptors are gone", please clarify, dev.light.