Skip to content

Instantly share code, notes, and snippets.

@Maarrk
Created February 22, 2023 10:47
Show Gist options
  • Save Maarrk/07acf6a5ed7df024be07256f6da7adbf to your computer and use it in GitHub Desktop.
Save Maarrk/07acf6a5ed7df024be07256f6da7adbf to your computer and use it in GitHub Desktop.
Convert matching pdf files to eps with Inkscape
$files = Get-ChildItem .\Figure*.pdf
foreach ($file in $files) {
$outfile = "{0}.eps" -f ($file -Split "\.")[0]
C:\"Program Files"\Inkscape\bin\inkscape.com $file --export-type=eps -o $outfile
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment