.pptx to .pdf converter
I have python-pptx library. My python code can generate PowerPoint presentations using python-pptx library. How can I convert those pptx file into .pdf on railwayapp servers?
16 Replies
Project ID:
N/A
Could proably use
ffmpeg-python
π€
not sure if ffmpeg supports those file formats though, haven't triedThanks for the reply. It look like this library does not support .pptx files and convertions.
Dang, that sucks, maybe someone else has an idea for what to use then
sorry this isnt really a railway related question
Would it be possible to install LibreOffice and run command line commands in python to convert .pptx file into .pdf?
like this:
import subprocess
def convert_pptx_to_pdf(pptx_file, output_dir):
command = [
"libreoffice", "--headless", "--convert-to", "pdf",
pptx_file, "--outdir", output_dir
]
subprocess.run(command)
one way or another, yeah
do you currently have a nixpacks.toml file?
I dont know what is that file. Where can I find it?
well if you dont know what it is, it means you dont have one lol
add a nixpacks.toml file to your project with this in it
Thanks! Will try this.
fragly id like to inquire about what ffmpeg has to do with power point or pdf files π€£
I watched a firebase video and all I remember about is that ffmpeg does something with files so i figured it might help π
ffmpeg is a media encoding tool
like MP4 and stuff like that
ohh thanks for clarifying! π
this better not hurt your confidence in helping though!
Don't worry, It won't <:chad_gamer:1000044370411663370>