Bug 53864

Summary: Export ignores layer options 'printable' and 'visible'
Product: LibreOffice Reporter: Rainer Bielefeld Retired <LibreOffice>
Component: DrawingAssignee: Not Assigned <libreoffice-bugs>
Status: NEW --- QA Contact:
Severity: normal    
Priority: medium CC: crxssi, tmacalp, vchryssos, wraithlike
Version: Inherited From OOo   
Hardware: All   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: Test Kit
Improved testkit showing how layer information is ignored during export.

Description Rainer Bielefeld Retired 2012-08-21 05:37:36 UTC
Created attachment 65863 [details]
Test Kit

Steps how to reproduce  with "LibreOffice 3.6.1.1  German UI/Locale [Build-ID:  4db6344] on German WIN7 Home Premium (64bit):

1. download / unzip attached test kit
2. open "source.odg" from LibO Start Center file menu
3. Do some exports to svg for compete page and selection
   Expected: only contents of layer "Layout" (scheme) visible
   Actual: also comments on invisible / unprintable layers "BMK", "vorlagen",
           "Anmerkung" visible

In test kit you will also find some of my export results, also from Master and also for other file types.

Also a problem with AOOo 3.4 and LibO 3.3.3 (difficult to see because text suppression bug), so seems inherited from OOo

For me this bug causes some horrible chin ups to use .svg export for the job.
Comment 1 Hashem Masoud 2012-10-11 08:18:51 UTC
(In reply to comment #0)
Confirmed here:
Version 3.6.1.2 (Build ID: e29a214) Slackware Linux 13.37
Comments are visible after I export, although they should be invisible.
Comment 2 Owen Genat 2013-12-21 06:31:02 UTC
Created attachment 91073 [details]
Improved testkit showing how layer information is ignored during export.

The attached files were produced under Ubuntu 10.04 x86_64 using:

- v3.3.0.4 OOO330m19 Build: 6
- v4.1.3.2 Build ID: 70feb7d99726f064edab4605a8ab840c50ec57a

In each ODG (one per version) there are four additional layers with these settings:

- V+P (visible and printable)
- V+nP (visible but NOT printable)
- nV+P (NOT visible but printable)
- nV+nP (NOT visible and NOT printable)

For each ODG export to these formats was made: BMP. EMF, EPS, GIF, JPG, PBM, PDF, PNG, SVG, TIF, WMF, and XPM. I loaded the EMF under Win7HP and took a screenshot to check visibility. For both versions and in all cases (except PDF) the object on each layer is exported to the format, regardless of the visible / printable setting. For PDF, only the V+P layer object is exported.

This would seem to be a more general problem with ignoring the status of these layer settings, than just an SVG-specific issue (the original test kit and description does indicate this).
Comment 3 Owen Genat 2013-12-21 06:34:59 UTC
As per comment #2, Platform set to All/All. "SVG" removed from summary for clarity.
Comment 4 Owen Genat 2013-12-21 06:35:37 UTC
*** Bug 72117 has been marked as a duplicate of this bug. ***
Comment 5 crxssi 2014-11-28 21:49:36 UTC
This issue has been annoying me for many years.  I have a complex diagram of our facility with dozens of layers and I often need to export only CERTAIN layers in to a file.  Every time I want to do this, I have to actually delete each layer I don't want included in the export.

Would be something great to fix in LO.  I am thinking the best way to handle it would be to suppress export of layers that are not visible, so what you see is what you get.  Although a case for using the print attribute is probably almost as compelling.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.