Skip to content

Instantly share code, notes, and snippets.

@thorade
Last active August 29, 2015 14:07
Show Gist options
  • Save thorade/f922e4671d2b67dd55df to your computer and use it in GitHub Desktop.
Save thorade/f922e4671d2b67dd55df to your computer and use it in GitHub Desktop.
# This PowerShell script converts all eps files in all subfolders to pdf files
$curDir = Split-Path -Parent $MyInvocation.MyCommand.Path
$epsFiles = Get-ChildItem -Recurse $curDir\*.eps
$texBin = "${env:ProgramFiles(x86)}\MiKTeX 2.9\miktex\bin"
Set-Alias eps2pdf $texBin\epstopdf.exe
ForEach ($file In $epsFiles){
eps2pdf $file
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment