Batch file to convert multiple svg files to pdf files
Summary:
In the past, Nathan Lee has been kind enough to write me a batch file to convert multiple svg files to pdfs. (Thankyou!!) This no longer works with multi page svgs. Could you help me with a new version that can convert multiple multi-page svgs to pdfs?
Steps to reproduce:
My existing batch file (below, now doesnt seem to work on multiple multi-page svg files:
echo off set current=%cd% set "source_path=%CD%\1-Ready_to_convert" set "dest_path=%current%\3-Converted" for %%f in ("%source_path%*.svg") do ( echo %%f "C:\Program Files\Inkscape\bin\inkscape.exe" --export-area-page --export-filename="%dest_path%%%~nf.pdf" "%%f" )
- ...
What happened?
Nothing.
What should have happened?
Conversion to multiple pdfs.
Sample attachments:
Version info
Inkscape 1.2.2 (732a01da63, 2022-12-09)
GLib version: 2.74.3
GTK version: 3.24.35
glibmm version: 2.66.5
gtkmm version: 3.24.7
libxml2 version: 2.10.3
libxslt version: 1.1.37
Cairo version: 1.17.7
Pango version: 1.50.12
HarfBuzz version: 5.3.1
OS version: Windows 11 22H2
<!--
❤️ Thank you for filling in a new bug report, we appreciate the help! ❤️
Please be patient while we try to find the time to look into your issue.
Remember that Inkscape is developed by volunteers in their spare time, we'll try our best to respond to all reports.
-->
<!--
Please be careful when/after writing # for example in logs, code, or versions of linux
- use inline code span - single backticks (`) before and after it, like this - `#1618`
- use multi-line code block - triple backticks (```) to fence/enclose console logs
- attach long logs as a text file.
-->