Windows batch using Inkscape and pdftk.
svg2pdf.bat uses:
- Inkscape 1.0 or above
- pdftk
It assumes they have been installed as the installers recommended, i.e., their default setting. If you installed Inkscape at somewhere different from "C:\Program Files\Inkscape\bin\inkscape.exe", you need configure in svg2pdf_file.bat. pdftk must be available as a command in terminal (DOS prompt).
Download source code zip at releases page. Unzip and put all files in "bat" in some directory.
As an example, let us call the directory "myProj". "myProj" should contain the followings:
- A directory named as "pdf"
- svg files to be converted named as "myProj*p*.svg", like "myProj_p1.svg", "myProj_p2.svg", ...
You'll see the batch conducts some commands. After the execution stopped, type some key to finish the batch.
The batch outputs separated pdf files and merged one. If the merged "myProj_inkscape.pdf" exists, you have done. That's it!
This calls svg2pdf_all and merge the result files by pdftk.
The 1st parameter input_path can include wild card like "some_model*.svg". This batch converts svg file(s) to pdf file(s) one by one, using svg2pdf_file. The destination is supposed by the 2nd parameter.
This batch converts a svg file to a pdf file by Inkscape. You can configure dpi value in this file (the default is 300).