Bug 134370 - Exporting a single graphic in PDF format produces a 0 size file
Summary: Exporting a single graphic in PDF format produces a 0 size file
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
6.0.7.3 release
Hardware: All Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: PDF-Export
  Show dependency treegraph
 
Reported: 2020-06-28 19:01 UTC by Lucio Marinelli
Modified: 2023-10-13 23:27 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lucio Marinelli 2020-06-28 19:01:38 UTC
Description:
When exporting as image a Calc graph in PDF format, an empty file is created. Export works correctly with other formats such as EPS, PNG, etc 

Steps to Reproduce:
1. create a graph in Calc, then right-click on it and select "Export as image"
2. Export as PDF, the generated file is 0 byte in size

Actual Results:
the generated file is 0 byte in size

Expected Results:
the generated file should not be empty


Reproducible: Always


User Profile Reset: No



Additional Info:
[Information automatically included from LibreOffice]
Locale: it
Module: SpreadsheetDocument
[Information guessed from browser]
OS: Linux (All)
OS is 64bit: yes
Comment 1 Ahmad Haris 2020-07-04 10:48:01 UTC
I can reproduce it both in stable and master. However I'm using MacOS.

Version: 6.4.5.2
Build ID: a726b36747cf2001e06b58ad5db1aa3a9a1872d6
CPU threads: 4; OS: Mac OS X 10.15.4; UI render: default; VCL: osx; 
Locale: en-ID (en_ID.UTF-8); UI-Language: en-US
Calc: threaded

Version: 7.1.0.0.alpha0+
Build ID: 7dc3a20cab712ee987ea25a8f5728529521485b7
CPU threads: 4; OS: Mac OS X 10.15.4; UI render: default; VCL: osx
Locale: id-ID (en_ID.UTF-8); UI: en-US
Calc: threaded
Comment 2 QA Administrators 2022-07-05 03:49:28 UTC Comment hidden (obsolete)
Comment 3 Lucio Marinelli 2022-07-05 06:27:22 UTC
I confirm that the bug is still occurring in LibreOffice 7.3.4 running within Debian testing
Comment 4 fenugrec 2023-03-30 15:42:31 UTC
Works here on 7.5.1.2 with this sample file : https://bugs.documentfoundation.org/attachment.cgi?id=114084

My build :
***********
Version: 7.5.1.2 (X86_64) / LibreOffice Community
Build ID: 50(Build:2)
CPU threads: 16; OS: Linux 6.2; UI render: default; VCL: gtk3
Locale: en-CA (en_CA.UTF-8); UI: en-US
7.5.1-1
Calc: threaded
***********

It reminds me of some well-known, inexplicable, and probably still not fixed general PDF export issues related to the "VCL" setting. Can you try setting the env variable "SAL_USE_VCLPLUGIN=gtk3" before running libreoffice ? If you search for this key "SAL_USE_VCLPLUGIN" you will probably find multiple similar bug reports.
Comment 5 Lucio Marinelli 2023-03-30 19:22:15 UTC
The bug seems solved using LibreOffice 7.4.5.1 in Debian testing.
Comment 6 Kira Tubo 2023-10-13 23:27:58 UTC
Since original reporter confirmed issue is fixed, closing this ticket as WORKSFORME.