I'm attempting to come up with some means of converting
.pptx files to a pdf format from the command line. I have set up a
cups-pdf printer to which I can actually send jobs, and so far I have it boiled down to the following command:
libreoffice -pt PDF somePowerpointFilePath.pptx
I've taken a look at these questions, but none of them seem to suit my needs here.
Printing from the command line with LibreOffice, lpr commands?
How do I convert this filetype to pdf?
I have also read about the
unoconv options, but I'd rather not have to play with my Python libraries to get this set up.
I also noticed the
--convert-to option for the
libreoffice command, but it is not behaving how I expect it to. I expect to be able to use that by
libreoffice --convert-to pdf myFileName.pptx, but this command runs in no time at all (telling whenever you're working with libreoffice), and doesn't appear to deposit any sort of pdf file in the current working directory (as it is supposed to according to the man page).
If anyone can shed any light on how to get either of these two approaches working (printing through cups or using the
--convert-to option), I would appreciate it.