Skip to content

Instantly share code, notes, and snippets.

View 0ut0fcontrol's full-sized avatar

jcyang 0ut0fcontrol

  • Beijing, China
  • 01:40 (UTC +08:00)
View GitHub Profile
@0ut0fcontrol
0ut0fcontrol / ppt2pdf.ps1
Created December 25, 2017 11:59 — forked from mp4096/ppt2pdf.ps1
Batch convert PowerPoint files to PDF
# Batch convert all .ppt/.pptx files encountered in folder and all its subfolders
# The produced PDF files are stored in the invocation folder
#
# Adapted from http://stackoverflow.com/questions/16534292/basic-powershell-batch-convert-word-docx-to-pdf
# Thanks to MFT, takabanana, ComFreek
#
# If PowerShell exits with an error, check if unsigned scripts are allowed in your system.
# You can allow them by calling PowerShell as an Administrator and typing
# ```
# Set-ExecutionPolicy Unrestricted