Any library or API to convert PPTX or PPT files into PDF format in PHP OR any plugins in wordpress available for PPTX or PPT into PDF file conversion.
Assuming that you have libreoffice
installed on a *nix system, you can run a command to convert the file into a pdf:
<?php
shell_exec('libreoffice --headless -convert-to pdf --outdir /tmp/converts/ /tmp/phpNWUB82bdw8');
?>
Be sure to create the conversion output directory and sanitize all file paths if you are directly inserting them into the command to prevent command injection.
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments