Bug 124571 - Printable property not respected for PDF export on drawing objects
Summary: Printable property not respected for PDF export on drawing objects
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: PDF-Export
  Show dependency treegraph
 
Reported: 2019-04-05 22:32 UTC by wpeaton4
Modified: 2021-07-28 10:09 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
draw file with two rectangles that are nonprintable. (8.62 KB, application/vnd.oasis.opendocument.graphics)
2019-04-05 22:32 UTC, wpeaton4
Details

Note You need to log in before you can comment on or make changes to this bug.
Description wpeaton4 2019-04-05 22:32:22 UTC
Created attachment 150552 [details]
draw file with two rectangles that are nonprintable.

This bug seems to apply drawing objects in all major programs. Verified for Draw and Calc.

The Printable property seems to work fine on controls and layers on Export to PDF.

However, if you set the Printable property of a draw object (e.g. rectangle, text box, line, etc.) the Printable property is respected for printing but not for Export to PDF.

The Printable property does not seem to be accessible from the UI, but it is accessible through the API.

To reproduce:

1. Open attached drawing file it has two rectangles. The top rectangle has it's
   Printable property set to false from the API. The bottom rectangle is on a
   layer called "bg". The "bg" layer Printable property is set to false.
2. Verify (with MRI or by other means) that top rectangle (Index 0 on the 
   drawing page) has Printable = False.
3. Select bottom rectangle. In status bar, see that it is on "bg" layer.
4. Print page. Page should be empty.
5. Export to PDF. Top rectangle will be in PDF file.

The Workaround for this bug, of course, is to place nonprintable objects on nonprintable layers. Layers are not available for Writer, Calc, or Impress.
Comment 1 Xisco Faulí 2019-05-06 16:35:27 UTC
Reproduced in

Version: 6.3.0.0.alpha0+
Build ID: e44c31d68b026ad9cd954dc572cb1460958a6327
CPU threads: 4; OS: Linux 4.15; UI render: default; VCL: gtk3; 
Locale: ca-ES (ca_ES.UTF-8); UI-Language: en-US
Calc: threaded

Version: 4.3.0.0.alpha1+
Build ID: c15927f20d4727c3b8de68497b6949e72f9e6e9e

and

LibreOffice 3.3.0 
OOO330m19 (Build:6)
tag libreoffice-3.3.0.4
Comment 2 QA Administrators 2021-05-06 04:36:44 UTC Comment hidden (obsolete)
Comment 3 wpeaton4 2021-05-06 15:35:38 UTC
Reproduced in 6.4.6.2