Bug 147365 - Don't Print but export to PDF - Picture settings should allow to set not to print but show in PDF
Summary: Don't Print but export to PDF - Picture settings should allow to set not to p...
Status: RESOLVED WONTFIX
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Draw (show other bugs)
Version:
(earliest affected)
7.2.5.2 release
Hardware: All All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Image-Dialog
  Show dependency treegraph
 
Reported: 2022-02-11 08:13 UTC by Mannshoch
Modified: 2024-07-22 13:55 UTC (History)
3 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 Mannshoch 2022-02-11 08:13:08 UTC
Description:
I need a Picture shown in PDF but not get it printed (even printed from PDF)

Steps to Reproduce:
1. Show property of a Picture
2. Open Tab (DE: Optionen) Settings
3. untick Print
4. Export to PDF
5. This picture is missing

Actual Results:
5. This picture is missing

Expected Results:
5. PDF shows this Picture but a Printed-out PDF do not contain it

Alternative solution: add a setting "show in PDF"


Reproducible: Always


User Profile Reset: Yes



Additional Info:
Version: 7.2.5.2 / LibreOffice Community
Build ID: 20(Build:2)
CPU threads: 8; OS: Linux 5.13; UI render: default; VCL: gtk3
Locale: de-CH (de_CH.UTF-8); UI: de-DE
Ubuntu package version: 1:7.2.5-0ubuntu0.21.10.1
Calc: threaded
Comment 1 Stéphane Guillou (stragu) 2023-11-10 22:05:20 UTC
Thanks for the suggestion.
Do you need this for only a specific picture in the document, or for all the pictures?
If it's for all the pictures, you can exclude them from printing in the Print dialog: File > Print > LibreOffice Writer tab > Contents > Images and other graphic objects.
Comment 2 Mannshoch 2023-11-13 12:33:50 UTC
@Stephane Guillou: No, I only need it for some hyperlinks I add for information purpose. At the end of some sentence I in the document a litle Inline Image similar to the unicode -> ℹ️. 
On Printout's I could not use hyperlinks. So I do not see the use of this Icons.  People get iritated about these icons.

The Document is for marketing purposes. Mostly used on PDF but we have suprisingly lot people that printout this.

Cause of this I wish a setting that allows me to setup an Image to be marked for shown in PDF but not shown on a printout.

If possible to add this also to a PDF document, so if I print it from Adobe Reader, and the same affect works here, It would be even more great.
Comment 3 Stéphane Guillou (stragu) 2023-11-13 13:45:36 UTC
Thanks for clarifying.
A related question: https://ask.libreoffice.org/t/how-to-make-elements-visible-in-pdf-but-invisible-at-printing/79550

One more question: I assume you are using Writer, and not Draw as you selected for "Component", is that correct? (graphic object options are quite different between the two)

UX/Design team, any thoughts about splitting the "Print" option in Picture Properties and Graphic Styles between e.g. Print and Export? (Because it also affects other export filters, e.g. PNG)
It makes sense to me that someone wants images in digital formats but not in physical formats.
Surprised I couldn't find a duplicate.
Comment 4 Mannshoch 2023-11-13 16:28:26 UTC
I played around with both Draw and Writer. At that time I used Draw for the document. Meanwhile I decided to work with writer.

I assume that this enhancement  should be product independent. If you force a paperless office you have a lot of possibilities in PDF, but Paper printouts are still important. The more you can do with a Digital PDF, the more a paper printout has to differs from a digital document.
Comment 5 Heiko Tietze 2023-11-14 06:23:47 UTC
An attribute per object (to generalize "picture") sounds wrong to me. And it needs to be defined in the file format, which is likely not the fact.

But speaking of Draw the layers should be the right solution for you. It offers visible on/off and printable on/off. 

https://help.libreoffice.org/latest/en-US/text/sdraw/01/insert_layer.html
Comment 6 Mannshoch 2023-11-14 07:35:26 UTC
If the "printable" option is deactivated, the object does not appear in PDFs either. If I have understood this correctly, then creating a PDF is considered a printing process.
Comment 7 Heiko Tietze 2023-11-14 10:45:40 UTC
(In reply to Mannshoch from comment #6)
> If the "printable" option is deactivated, the object does not appear in PDFs
> either.
True, but it makes switching it on/off very easy.

And again, since ODF has no standardized attribute for this it needs an enhancement of the document format first. And I think it is not necessary. => WF
Comment 8 Mannshoch 2023-11-14 12:17:38 UTC
If you say it is not necessary, do you mean I should change the enhancement request to change the notprinted behavior that way that it should not work on PDF?
Comment 9 Heiko Tietze 2023-11-14 12:33:19 UTC
(In reply to Mannshoch from comment #8)
> If you say it is not necessary, do you mean I should change the enhancement
> request to change the notprinted behavior that way that it should not work
> on PDF?
Such a setting might be necessary for your workflow (although I suggested an alternative that works out of the box) but is, in my opinion, not relevant for most other users. 

My comments are just input from the UI/UX perspective. Since you reopened the ticket I will not touch it again. Let's see if a volunteer picks up the task anyway, or if QA agrees with me to resolve the request as WF.
Comment 10 Mannshoch 2023-11-14 15:11:22 UTC
Ah sorry, it seems I did not understand. I also not know what WF means. Sorry.

I hope that someone others could help here in this case.
Comment 11 V Stuart Foote 2023-11-14 15:13:49 UTC
What about print to PDF using gs/ps based libs? Why any different?

So NO, lets not attempt distinction in handling raster images (i.e. pictures) between printing filters and export filters to PDF/EPUB beyond what is already necessary for handling the raster image object frames.

Not worth and dev or OASIS ODF extension effort, IMHO => WF
Comment 12 Stéphane Guillou (stragu) 2023-11-15 20:52:54 UTC
(In reply to Mannshoch from comment #10)
> Ah sorry, it seems I did not understand. I also not know what WF means.
> Sorry.
"WF" is used here to mean closing a report as "won't fix" - often the case when an enhancement request is considered not worth it or necessary by most.

(In reply to V Stuart Foote from comment #11)
> What about print to PDF using gs/ps based libs? Why any different? [...] IMHO => WF
Mannshoch just said they didn't know what "WF" meant, so let's try to not overuse abbreviations here. [1]
I assume you mean "ghostscript / postscript -based libraries".

(In reply to V Stuart Foote from comment #11)
> So NO, lets not attempt distinction in handling raster images (i.e.
> pictures) between printing filters and export filters [...]
In my opinion, the feature does sound like it only affects paper printing. And it does not help that exporting to XHTML _does_ include such a picture.
So maybe we need to:
* re-label the setting in the dialog to something that clarifies that it applies to both printing and exporting to various file formats.
* also change the extended tip, which currently is: "Includes the selected item when you print the document"[2]
* expand the help page, currently the same as the extended tip[3]
* exclude such pictures from the XHTML export for consistency

In any case, closing as won't fix for this particular enhancement request.

Mannshoch, please try the method using a graphic style in Writer for all such images, and then switching the Print property on or off just once in the style depending on if you will print or export to PDF. If you need assistance with it, feel free to open a question on ask.libreoffice.org.
Thank you!

[1]: https://wiki.documentfoundation.org/Development/Acronyms
[2]: https://opengrok.libreoffice.org/xref/core/sw/uiconfig/swriter/ui/frmaddpage.ui?r=2721520c#420
[3]: https://help.libreoffice.org/24.2/en-US/text/swriter/01/05060900.html