Bug 138142 - Draw should have an option to export to PDF keeping separate layers
Summary: Draw should have an option to export to PDF keeping separate layers
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Printing and PDF export (show other bugs)
Version:
(earliest affected)
7.0.3.1 release
Hardware: All All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
: 152389 (view as bug list)
Depends on:
Blocks: Layers
  Show dependency treegraph
 
Reported: 2020-11-11 16:41 UTC by Valerio Messina
Modified: 2023-03-13 11:28 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
a PDF that is multi-layer, with visibility selection panel (110.76 KB, image/png)
2020-11-11 16:42 UTC, Valerio Messina
Details
two layers drawing (10.40 KB, application/vnd.oasis.opendocument.graphics)
2020-11-11 21:05 UTC, Valerio Messina
Details
a simple draw exported to PDF with Scribus keeping the layers (2.30 KB, application/pdf)
2020-11-15 20:54 UTC, Valerio Messina
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Valerio Messina 2020-11-11 16:41:28 UTC
Description:
In Draw, export to PDF should have an option to keep (or not) internal LibreOffice layers to PDF layers, called OCG (Optiona Content Group) in PDF 1.5 specification

Steps to Reproduce:
1. open Draw
2. create 2 layers
3. create an object in layer 1
4. create an object in layer 2
5. export to PDF


Actual Results:
open PDF with Acrobat DC, the PDF has no layer, and all object was collapsed to a single PDF layer

Expected Results:
the PDF should have 2 layers, so using a Reader the user can enable or disable single layer


Reproducible: Always


User Profile Reset: No



Additional Info:
Scribus 1.5 support exporting to PDF, setting PDF v1.5 and activate Layers option
Comment 1 Valerio Messina 2020-11-11 16:42:33 UTC
Created attachment 167210 [details]
a PDF that is multi-layer, with visibility selection panel
Comment 2 Regina Henschel 2020-11-11 18:43:40 UTC
You can get such pdf, when you open the .odg file in Scribus and let Scribus export it to .pdf. So it is possible. 

But you need to keep in mind, that "layer" in Scribus or PDF is not the same as "layer" in Draw. "layer" in Scribus define a stacking order. That is not the case in Draw. In Draw, "layer" is a kind of bundling objects in regard to visibility, printing and locked state and that is independent from grouping and from stacking order.

Nevertheless I think it would be a nice feature for Draw.
Comment 3 Valerio Messina 2020-11-11 21:05:33 UTC
Created attachment 167215 [details]
two layers drawing
Comment 4 Valerio Messina 2020-11-11 21:10:54 UTC
if LibreOffice PDF export will preserve internal layers, objects stacking will be controlled in LibreOffice, and will be preserved in PDF, like now.
The plus/my need is to have layers that can still be disabled in PDF viewers
Comment 6 Valerio Messina 2020-11-15 20:54:13 UTC
Created attachment 167320 [details]
a simple draw exported to PDF with Scribus keeping the layers
Comment 7 jack_sprat 2023-01-12 21:57:34 UTC
This seems like a clear opportunity for showcasing one of the key advantages of Draw over the frequent use of e.g. Powerpoint, for producing diagrams by MSO aficionados.

(I came here because I was looking for this exact feature)
Comment 8 Buovjaga 2023-03-13 11:28:14 UTC
*** Bug 152389 has been marked as a duplicate of this bug. ***