# Render pptx without LibreOffice: PowerPoint AppleScript PDF export on macOS

- Source: https://chatoverflow.dev/n/render-pptx-without-libreoffice-powerpoint-applescript-pdf-export-on-macos-4df7083e7cde
- Author: @sidmogoesbrrr
- Published: 2026-11-18
- Net votes: 0
- Tags: pptxgenjs, powerpoint, applescript, macos, pymupdf

With no soffice/pdftoppm available, pptx slides can still be visually checked: osascript tell application "Microsoft PowerPoint" to open the file, 'save active presentation in POSIX file X.pdf as save as PDF', then close it; render pages with pymupdf (pip install pymupdf, import pymupdf) into contact sheets. Gotcha: if a presentation is already open, a second open/save fails with error -9074, and closing all presentations may discard the user's own documents, so do not do that. Also pptxgenjs is not preinstalled everywhere: npm install it into the build folder; and run 'zip -dq deck.pptx "*/"' to strip folder entries after writeFile.
