Description: When converting : a LibreOffice .odg Draw file [including more than the 3 initial Layers ( such as : Layout + Controls + Dimension Lines ) to : an HYBRID PDF file , The result produced only shows the 3 initial Layers ( such as : Layout + Controls + Dimension Lines ) BUT NOT ANYONE of the "additional Layers". . c Steps to Reproduce: 1. Make an heavy .ODG Draw file containing over the 3 layers ... up to 12 LAYERS 2. record it as an HYBRID PDF file. 3. Re-open it from Libre-office. Actual Results: = All Layers over the 3rd have been lost, but not the objects that have been move to Layout layer. = NOT the same ODG file when recording it as ODG again. Expected Results: The produced HYBRID PDF file, when re-opened from LibreOffice : should contain ALL LAYERS with their respectives objects, exactly same as the initial LibreOffice .ODG Draw file Reproducible: Always User Profile Reset: No Additional Info: In the produced HYBRID PDF file, All layers over the 3 initial ( such as : Layout + Controls + Dimension Lines ) disappeared, when "those" should be present with their respectives objects. Making that when recording the re-opened HYBRID PDF file back to LibreOffice .ODG Draw file, the result ought to be the same than the initial LibreOffice .ODG Draw file. Not the case.
Can not reproduce. All additional layers of Draw drawing document are exported into a Hybrid PDF. The layers are visible when opened into a PDF viewer, i.e. Adobe Reader. LibreOffice will detect and reopen that PDF into Draw, and all layers are visible with the draw shapes and text boxes present on the appropriate layer as associated. Version: 25.2.1.2 (X86_64) / LibreOffice Community Build ID: d3abf4aee5fd705e4a92bba33a32f40bc4e56f49 CPU threads: 8; OS: Windows 10 X86_64 (10.0 build 19045); UI render: Skia/Vulkan; VCL: win Locale: en-US (en_US); UI: en-US Calc: CL threaded
Created attachment 199556 [details] Initial LO Draw File
Created attachment 199557 [details] Generated HYBRID.pdf file
OK, with the attached Hybrid PDF (attachment 199557 [details], showing PDF Producer: LibreOffice 24.8.4.2(x86_64)/LibreOffice Community) on opening the PDF back into Draw, only the three "default" layers of an ODF Drawing ODG are being restored for the drawing. Seems essentially All content of the embedded ODF stream is compressed onto the 'Layout' layer when extracted back into Draw. But was attachment 199556 [details] really the source of ODF Drawing exported to Hybrid PDF? When I open it, quite a few of the pages are empty, and the associated Layers for the page are marked "Hidden" though the page sorter preview shows a thumbnail with multiple layers enabled. The ODG meta says it was created with LibreOffice/24.8.5.2$MacOSX_X86_64 Is this just bcz I'm on a Windows system, or has the ODG been exported to PDF on a Windows system?
Seems PDF import was used instead of opening the embedded file in the "additional streams". If you look into the PDF attachments you can see the original document and you can open that normally. Not sure why this happens as the /AdditionalStream is present and the import code should've detected that and opened the original.
Confirmed Tomaž findings. Manually extract the ODF Drawing from its attachment (Adobe Reader -> View > Show/Hide > Side panels > Attachments, the paper clip and 'Save Attachment'). The ODG then opened manually with LibreOffice has the original content and meta and *all layers* show. The ODF producer matches the PDF properties. So the attachment [1] worked, so something about recognizing the attached ODG within the Hybrid PDF [2] has broken? Went back to open with release builds still using the /AdditionalStreams (7.4.7, 7.3.6) to check fallback but they all get the same resulting import opening with missing layers. So is issue with this specific PDF? =-ref-= [1] https://gerrit.libreoffice.org/c/core/+/146053 [2] https://gerrit.libreoffice.org/c/core/+/146052
Yes, there is an issue here. Using the ODG attachment, as extracted from PDF attachment 199557 [details], it opens in 25.2.1.2 with all layers present. When I export it to Hybrid PDF using 25.2.1.2, opening that PDF results in Draw with just the three default layers. Yet if I extract the ODG attachment and open it with Draw--all layers are present. Get same result with export to Hybrid PDF using 20250301 master against 25.8.0, the attached ODG is fully intact when saved out of the PDF, but opening the PDF into Draw gets just the 3 layers. =-testing-= Version: 25.2.1.2 (X86_64) / LibreOffice Community Build ID: d3abf4aee5fd705e4a92bba33a32f40bc4e56f49 CPU threads: 8; OS: Windows 10 X86_64 (10.0 build 19045); UI render: Skia/Vulkan; VCL: win Locale: en-US (en_US); UI: en-US Calc: CL threaded Version: 25.8.0.0.alpha0+ (X86_64) / LibreOffice Community Build ID: a91494780bb59afe8c971003e6b809f1e66df050 CPU threads: 8; OS: Windows 10 X86_64 (build 19045); UI render: Skia/Vulkan; VCL: win Locale: en-US (en_US); UI: en-US Calc: CL threaded