Skip to content

Instantly share code, notes, and snippets.

@Bouni
Last active November 6, 2023 09:17
Show Gist options
  • Save Bouni/730d267a9b376f73f0d2b2b93c3558db to your computer and use it in GitHub Desktop.
Save Bouni/730d267a9b376f73f0d2b2b93c3558db to your computer and use it in GitHub Desktop.
Batch convert SVG files to PDF on Windows 11
$files = Get-ChildItem -Name ./*.svg
for ($i=0; $i -lt $files.Count; $i++) {
$newname = ([String]$files[$i]).Replace("svg","pdf")
& "C:\Program Files\Inkscape\bin\inkscape.exe" --actions="export-type:pdf;export-do" --export-filename=$newname $files[$i]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment