Convert PPTX to PDF, headless operation

Creating a macro - Writing a Script - Using the API (OpenOffice Basic, Python, BeanShell, JavaScript)
Post Reply
st22
Posts: 2
Joined: Wed Sep 03, 2025 8:28 am

Convert PPTX to PDF, headless operation

Post 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?
Last edited by MrProgrammer on Wed Sep 03, 2025 3:41 pm, edited 1 time in total.
Reason: Edited topic's subject
openoffice4 aws
User avatar
Hagar Delest
Moderator
Posts: 33440
Joined: Sun Oct 07, 2007 9:07 pm
Location: France

Re: Headless operation

Post 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?
LibreOffice 25.2 on Linux Mint Debian Edition (LMDE Faye) and 24.8 portable on Windows 11.
st22
Posts: 2
Joined: Wed Sep 03, 2025 8:28 am

Re: Headless operation

Post by st22 »

Yea it have other parts of workflow generating a pptx. :-(

Checked on a few files, same issue.
openoffice4 aws
User avatar
RoryOF
Moderator
Posts: 35095
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: Headless operation

Post by RoryOF »

Try instead setting up a PDF pseudo printer and printing to that to generate a PDF file.
Apache OpenOffice 4.1.15 on Xubuntu 22.04.5 LTS
User avatar
Hagar Delest
Moderator
Posts: 33440
Joined: Sun Oct 07, 2007 9:07 pm
Location: France

Re: Headless operation

Post 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.
LibreOffice 25.2 on Linux Mint Debian Edition (LMDE Faye) and 24.8 portable on Windows 11.
Post Reply