Bug 167531 - Empty PDF is generated by soffice
Summary: Empty PDF is generated by soffice
Status: UNCONFIRMED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Draw (show other bugs)
Version:
(earliest affected)
25.2.4.3 release
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: PDF-Export
  Show dependency treegraph
 
Reported: 2025-07-16 20:29 UTC by Inna
Modified: 2025-07-17 05:54 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Sample .emf file (175.46 KB, image/x-emf)
2025-07-16 20:29 UTC, Inna
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Inna 2025-07-16 20:29:06 UTC
Created attachment 201825 [details]
Sample .emf file

After upgrading from 24 to 25 version, the following command "soffice --headless --convert-to pdf...." produce empty PDF file for .svg, .emf and .emz image formats.

The above image formats can't be converted to PDF using 25.2.4.3 version but works ok in version 24.8.
Comment 1 V Stuart Foote 2025-07-16 21:59:43 UTC
*** Bug 167532 has been marked as a duplicate of this bug. ***
Comment 2 V Stuart Foote 2025-07-16 22:15:22 UTC
Can not confirm on Windows build of 25.8.0.1

Can open the EMF into Draw and then exporting to PDF with lossless compression.

Also no issue working headless from a command line:

soffice.exe --headless --convert-to pdf:draw_pdf_Export -outdir "C:\temp" tdf167531_1726966463_agMFe.emf"

=-testing-=

Version: 25.8.0.1 (X86_64)
Build ID: 127f2cf27c25aaac008a1045ebfed22015cb3064
CPU threads: 28; OS: Windows 11 X86_64 (build 26100); UI render: Skia/Vulkan; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: CL threaded
Comment 3 Saburo 2025-07-17 00:34:24 UTC
works fine for me.
Version: 25.2.4.3 (X86_64) / LibreOffice Community
Build ID: 33e196637044ead23f5c3226cde09b47731f7e27
CPU threads: 4; OS: Linux 6.8; UI render: default; VCL: gtk3
Locale: ja-JP (ja_JP.UTF-8); UI: ja-JP
Calc: threaded
Comment 4 BogdanB 2025-07-17 04:39:29 UTC
I get this:
./instdir/program/soffice --headless --convert-to pdf /home/bogdan/Desktop/1726966463_agMFe.emf
/home/bogdan/core/core/instdir/program/soffice.bin: symbol lookup error: /home/bogdan/core/core/instdir/program/libtklo.so: undefined symbol: _ZTIN10comphelper26OAccessibleComponentHelperE
Comment 5 Buovjaga 2025-07-17 05:54:27 UTC
(In reply to BogdanB from comment #4)
> I get this:
> ./instdir/program/soffice --headless --convert-to pdf
> /home/bogdan/Desktop/1726966463_agMFe.emf
> /home/bogdan/core/core/instdir/program/soffice.bin: symbol lookup error:
> /home/bogdan/core/core/instdir/program/libtklo.so: undefined symbol:
> _ZTIN10comphelper26OAccessibleComponentHelperE

But the result is fine?