Bug 157302 - SVG does not exported correctly to PDF
Summary: SVG does not exported correctly to PDF
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Draw (show other bugs)
Version:
(earliest affected)
7.6.1.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, bisected, regression
Depends on:
Blocks: PDF-Export
  Show dependency treegraph
 
Reported: 2023-09-18 08:35 UTC by José Luís Andrade
Modified: 2024-11-11 23:57 UTC (History)
7 users (show)

See Also:
Crash report or crash signature:


Attachments
File SVG (8.50 KB, image/svg+xml)
2023-09-18 08:36 UTC, José Luís Andrade
Details
File ODG (25.79 KB, application/vnd.oasis.opendocument.graphics)
2023-09-18 08:37 UTC, José Luís Andrade
Details
File PDF - macOS (11.14 KB, application/pdf)
2023-09-18 08:37 UTC, José Luís Andrade
Details
File PDF - Win (1.78 KB, application/pdf)
2023-09-21 11:20 UTC, José Luís Andrade
Details
Hacky debug patch (755 bytes, patch)
2024-08-26 01:18 UTC, Patrick (volunteer)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description José Luís Andrade 2023-09-18 08:35:34 UTC
Description:
A document with an SVG image does not export correctly to PDF

Steps to Reproduce:
1.Open attached file "Document"
2. Export to PDF
3. Open PDF

Actual Results:
The image in the PDF is wrong.

Expected Results:
The image in the PDF should be correct.


Reproducible: Always


User Profile Reset: No

Additional Info:
I attach the SVG, ODG and PDF files
Comment 1 José Luís Andrade 2023-09-18 08:36:43 UTC
Created attachment 189662 [details]
File SVG
Comment 2 José Luís Andrade 2023-09-18 08:37:16 UTC
Created attachment 189663 [details]
File ODG
Comment 3 José Luís Andrade 2023-09-18 08:37:34 UTC
Created attachment 189664 [details]
File PDF - macOS
Comment 4 IvoErMejo 2023-09-18 08:45:18 UTC
I open odg file and export in PDF with LibreOffice Version: 7.6.1.2 (X86_64) / LibreOffice Community
Build ID: f5defcebd022c5bc36bbb79be232cb6926d8f674
CPU threads: 4; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: it-IT (it_IT); UI: it-IT
Calc: threaded

PDF is blank, with no image.
Test confirmed.
Comment 5 José Luís Andrade 2023-09-21 11:20:37 UTC
Created attachment 189734 [details]
File PDF - Win
Comment 6 Rajasekaran Karunanithi 2023-12-30 21:39:55 UTC
Reproducable in LO 24.8.0.0.alpha+ under Windows 10(x64).I got only an oval shaped output in pdf export from the SVG file.

Version: 24.8.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 4871de96cb5e31e5ab06cf97e02e09e0e04a4de8
CPU threads: 4; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: en-IN (en_IN); UI: en-US
Calc: threaded
Comment 7 Xisco Faulí 2024-01-02 11:41:53 UTC
Regression introduced by

author	Xisco Fauli <xiscofauli@libreoffice.org>	2022-07-15 02:14:53 +0200
committer	Xisco Fauli <xiscofauli@libreoffice.org>	2022-07-15 19:10:12 +0200
commit 82c0a363abbceac6464b62c3571aa3225415c7db (patch)
tree 414e362ea36ac1ff556c74c5d4af139804e31d21
parent babd850db840eebd59b71730b446c0d89de87d3a (diff)
tdf#97539; if parent is css style, look one level up

Bisected with bibisect-linux64-7.5

Which is really weird. I'll take a look anyway
Comment 8 Xisco Faulí 2024-01-26 09:46:19 UTC
Same issue if we break the image or import the svg in Impress and go to presentation mode.
This is very similar to bug 158743
Comment 9 Xisco Faulí 2024-01-26 10:12:18 UTC
Hi Armin,
Since you fixed bug 158743 recently I thought you might be interested in this issue
Comment 10 BogdanB 2024-08-24 14:07:29 UTC
Page empty on PDF export using
Version: 24.8.0.3 (X86_64) / LibreOffice Community
Build ID: 0bdf1299c94fe897b119f97f3c613e9dca6be583
CPU threads: 4; OS: Linux 6.8; UI render: default; VCL: gtk3
Locale: ro-RO (ro_RO.UTF-8); UI: en-US
Calc: threaded
Comment 11 José Luís Andrade 2024-08-24 14:13:20 UTC
I can reproduce the bug on MacOS

Version: 24.8.0.3 (X86_64) / LibreOffice Community
Build ID: 0bdf1299c94fe897b119f97f3c613e9dca6be583
CPU threads: 4; OS: macOS 12.7.6; UI render: Skia/Raster; VCL: osx
Locale: pt-PT (pt_PT.UTF-8); UI: pt-PT
Calc: threaded
Comment 12 Patrick (volunteer) 2024-08-26 01:18:37 UTC
Created attachment 196018 [details]
Hacky debug patch

I did some debugging and found a hacky way to stop the bug from occurring. My debug patch isn't a fix, but it shows that we can't return a css style that begins with "clipPath". Who knows why, but it is one more piece of data.

Another piece of data is that when this bug occurs (during export to PDF and slideshow), the function in my debug patch is called while replaying a metafile. Not sure if that is just a coincidence or not.