Bug 162097 - When exporting pptx as PDF, copying multiple audio files results in the PDF file being too large
Summary: When exporting pptx as PDF, copying multiple audio files results in the PDF f...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
5.2.0.4 release
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: PDF-Export
  Show dependency treegraph
 
Reported: 2024-07-19 02:26 UTC by wxy
Modified: 2024-08-29 16:02 UTC (History)
3 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 wxy 2024-07-19 02:26:00 UTC
Description:
The user uploaded a pptx file containing a background music. After converting it to PDF using LibreOffice, the file became particularly large. The pptx file size was 30MB, while the PDF file reached 260MB. When I looked at the binary of the PDF, I saw that many copies of the binary starting with 'fLaC' were copied. It seems that after exporting to PDF, each page copied an audio file, but the audio file is useless in PDF. Can this be removed when exporting? I tried Microsoft Office and OpenOffice, and they should have removed the audio file when exporting, with an export size of only 160KB

Steps to Reproduce:
1.open a pptx file
2.export to pdf

Actual Results:
When exporting pptx as PDF, the file size is too large

Expected Results:
Make the PDF file size normal


Reproducible: Always


User Profile Reset: No

Additional Info:
nothing
Comment 1 m_a_riosv 2024-07-20 01:02:26 UTC
Please attach a sample file, reduce the size as much as possible without private information, and paste the information in Menu/Help/About LibreOffice, there is a copy icon.
Comment 2 Buovjaga 2024-08-28 15:28:35 UTC
It seems we need the sample file indeed.

I downloaded a random 49 MB FLAC file, added it to a presentation and exported it to PDF. The file size was just some kilobytes. I even first saved to pptx and reloaded.

Arch Linux 64-bit
Version: 25.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 47fbbd7c6b9ea6b4a20f05fdf8870cb9e125fb21
CPU threads: 8; OS: Linux 6.10; UI render: default; VCL: kf6 (cairo+wayland)
Locale: fi-FI (fi_FI.UTF-8); UI: en-US
Calc: CL threaded
Built on 28 August 2024
Comment 3 wxy 2024-08-29 06:04:22 UTC
I tried to attach the file, but its size exceeds 30000 kb, and I cannot reduce its size by deleting some pages because it contains a media file that exceed 30000 kb
Comment 4 wxy 2024-08-29 06:35:26 UTC
I uploaded the file to onedirve, you need to change the file extension to pptx after download. The link is https://1drv.ms/u/s!AptZN8_yVerLiQzeXnO2I6lFtiDl?e=s6ZQ6x
Comment 5 Buovjaga 2024-08-29 08:00:55 UTC
(In reply to wxy from comment #4)
> I uploaded the file to onedirve, you need to change the file extension to
> pptx after download. The link is
> https://1drv.ms/u/s!AptZN8_yVerLiQzeXnO2I6lFtiDl?e=s6ZQ6x

Thanks. Strangely, I reproduce with bibisect repositories back to 5.2, but *not* with the release build of 24.8!

Can you try with 24.8? An appimage might work for you: https://www.libreoffice.org/download/appimage/

I'm setting to NEW because I still see this with the latest of 24.8 and 25.2 bibisect repos.
Comment 6 wxy 2024-08-29 08:37:38 UTC
I don't know why the bug description changed to version 5.2, in fact, the version I am using on my linux server is LibreOffice 24.2.0.3 420 (Build: 3). I just tested it on my personal computer using 24.8.0 and the same issue exists(In reply to Buovjaga from comment #5)
> (In reply to wxy from comment #4)
> > I uploaded the file to onedirve, you need to change the file extension to
> > pptx after download. The link is
> > https://1drv.ms/u/s!AptZN8_yVerLiQzeXnO2I6lFtiDl?e=s6ZQ6x
> 
> Thanks. Strangely, I reproduce with bibisect repositories back to 5.2, but
> *not* with the release build of 24.8!
> 
> Can you try with 24.8? An appimage might work for you:
> https://www.libreoffice.org/download/appimage/
> 
> I'm setting to NEW because I still see this with the latest of 24.8 and 25.2
> bibisect repos.

I don't know why the bug description changed to version 5.2, in fact, the version I am using on my linux server is LibreOffice 24.2.0.3 420 (Build: 3). I just tested it on my personal computer using 24.8.0 and the same issue exists
Comment 7 Buovjaga 2024-08-29 08:40:34 UTC
(In reply to wxy from comment #6)
> I don't know why the bug description changed to version 5.2, in fact, the
> version I am using on my linux server is LibreOffice 24.2.0.3 420 (Build:
> 3). I just tested it on my personal computer using 24.8.0 and the same issue
> exists

Please read carefully

1) The label of the Version field
2) My comment 5
Comment 8 Buovjaga 2024-08-29 09:27:54 UTC
(In reply to Buovjaga from comment #5)
> (In reply to wxy from comment #4)
> > I uploaded the file to onedirve, you need to change the file extension to
> > pptx after download. The link is
> > https://1drv.ms/u/s!AptZN8_yVerLiQzeXnO2I6lFtiDl?e=s6ZQ6x
> 
> Thanks. Strangely, I reproduce with bibisect repositories back to 5.2, but
> *not* with the release build of 24.8!

My bad: I had a setting activate to *only* export notes pages in my 24.8.
Comment 9 wxy 2024-08-29 09:34:10 UTC
(In reply to Buovjaga from comment #7)
> (In reply to wxy from comment #6)
> > I don't know why the bug description changed to version 5.2, in fact, the
> > version I am using on my linux server is LibreOffice 24.2.0.3 420 (Build:
> > 3). I just tested it on my personal computer using 24.8.0 and the same issue
> > exists
> 
> Please read carefully
> 
> 1) The label of the Version field
> 2) My comment 5

Sorry, I communicated with you through a translation software and did not understand your comment correctly before. I tried to install version 24.8 on Linux server, but had some trouble. Then I installed version 24.8 on my Windows computer, the bug still exists
Comment 10 wxy 2024-08-29 09:39:41 UTC
(In reply to Buovjaga from comment #8)
> (In reply to Buovjaga from comment #5)
> > (In reply to wxy from comment #4)
> > > I uploaded the file to onedirve, you need to change the file extension to
> > > pptx after download. The link is
> > > https://1drv.ms/u/s!AptZN8_yVerLiQzeXnO2I6lFtiDl?e=s6ZQ6x
> > 
> > Thanks. Strangely, I reproduce with bibisect repositories back to 5.2, but
> > *not* with the release build of 24.8!
> 
> My bad: I had a setting activate to *only* export notes pages in my 24.8.

So isn't this a bug? How can I activate this setting? I converted it to PDF through the command line,I think this should be the default setting
Comment 11 Buovjaga 2024-08-29 09:57:44 UTC
(In reply to wxy from comment #10)
> (In reply to Buovjaga from comment #8)
> > (In reply to Buovjaga from comment #5)
> > > (In reply to wxy from comment #4)
> > > > I uploaded the file to onedirve, you need to change the file extension to
> > > > pptx after download. The link is
> > > > https://1drv.ms/u/s!AptZN8_yVerLiQzeXnO2I6lFtiDl?e=s6ZQ6x
> > > 
> > > Thanks. Strangely, I reproduce with bibisect repositories back to 5.2, but
> > > *not* with the release build of 24.8!
> > 
> > My bad: I had a setting activate to *only* export notes pages in my 24.8.
> 
> So isn't this a bug? How can I activate this setting? I converted it to PDF
> through the command line,I think this should be the default setting

No, that will not help you because it only exports the notes while you want the slides.
Comment 12 wxy 2024-08-29 10:07:26 UTC
(In reply to Buovjaga from comment #11)
> (In reply to wxy from comment #10)
> > (In reply to Buovjaga from comment #8)
> > > (In reply to Buovjaga from comment #5)
> > > > (In reply to wxy from comment #4)
> > > > > I uploaded the file to onedirve, you need to change the file extension to
> > > > > pptx after download. The link is
> > > > > https://1drv.ms/u/s!AptZN8_yVerLiQzeXnO2I6lFtiDl?e=s6ZQ6x
> > > > 
> > > > Thanks. Strangely, I reproduce with bibisect repositories back to 5.2, but
> > > > *not* with the release build of 24.8!
> > > 
> > > My bad: I had a setting activate to *only* export notes pages in my 24.8.
> > 
> > So isn't this a bug? How can I activate this setting? I converted it to PDF
> > through the command line,I think this should be the default setting
> 
> No, that will not help you because it only exports the notes while you want
> the slides.

I understand.