Last active
November 6, 2023 09:17
-
-
Save Bouni/730d267a9b376f73f0d2b2b93c3558db to your computer and use it in GitHub Desktop.
Batch convert SVG files to PDF on Windows 11
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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