linux pptx to pdf

C++
libreoffice --headless --invisible --convert-to pdf *.pptx
Source

Also in C++: