Page 1 of 1

[Dropped] Convert PPTX to PDF, headless operation

Posted: Wed Sep 03, 2025 8:30 am
by st22
soffice --headless --convert-to pdf myfile.pptx --outdir mypdf/

this command opens the file myfile.pptx and does not convert anything to pdf; could you please suggest a working solution?

Re: Headless operation

Posted: Wed Sep 03, 2025 1:26 pm
by Hagar Delest
Hi and welcome to the forum!

.pptx support is quite poor, do you really want to do that?
Have you checked the results on some files?

Re: Headless operation

Posted: Wed Sep 03, 2025 1:38 pm
by st22
Yea it have other parts of workflow generating a pptx. :-(

Checked on a few files, same issue.

Re: Headless operation

Posted: Wed Sep 03, 2025 2:43 pm
by RoryOF
Try instead setting up a PDF pseudo printer and printing to that to generate a PDF file.

Re: Headless operation

Posted: Wed Sep 03, 2025 4:47 pm
by Hagar Delest
st22 wrote: Wed Sep 03, 2025 1:38 pm Checked on a few files, same issue.
I mean: is the quality of the .pptx export in PDF with AOO good enough for you?
Because if the result is too bad, then there is no point. And you'll need something else.
LibreOffice might be better but still quite far from the PowerPoint rendering.

Re: Convert PPTX to PDF, headless operation

Posted: Thu Sep 04, 2025 7:29 pm
by ms777
does the export work if you open the pptx in AO and then export through the UI? With acceptable quality?

Re: Headless operation

Posted: Fri Sep 05, 2025 11:24 am
by Bidouille
st22 wrote: Wed Sep 03, 2025 1:38 pm Yea it have other parts of workflow generating a pptx.
What kind of workflow?
Do you know PDFBox project?