diff options
author | Norbert Preining <norbert@preining.info> | 2023-08-05 03:01:59 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2023-08-05 03:01:59 +0000 |
commit | d40e7963c06e1302f226c67f32c143dcc5fa958a (patch) | |
tree | b2a2f6f21f5f15e9e8b1c538a094131b87bbc29b /support/wmf2epsc/inksc_wmf2epsc.cmd | |
parent | 319c90e45fc96ba6f15edcf00b24e484d9d92f2b (diff) |
CTAN sync 202308050301
Diffstat (limited to 'support/wmf2epsc/inksc_wmf2epsc.cmd')
-rw-r--r-- | support/wmf2epsc/inksc_wmf2epsc.cmd | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/support/wmf2epsc/inksc_wmf2epsc.cmd b/support/wmf2epsc/inksc_wmf2epsc.cmd new file mode 100644 index 0000000000..b162e232f7 --- /dev/null +++ b/support/wmf2epsc/inksc_wmf2epsc.cmd @@ -0,0 +1,33 @@ +:: INKSC_WMF2EPSC.CMD: Inkscape conversion WMF|EMF to EPS
+:: (without WMF2EPS virtual printer installation):
+:: https://wiki.inkscape.org/wiki/Using_the_Command_Line
+:: https://inkscape.org/de/gallery/item/12515/view/
+:: https://inkscape.org/de/doc/inkscape-man.html
+:: This cmd script is free, without any warranty.
+:: 2023 W. Schulter
+:: ---------------------------------------------------------------------------
+:: Usage:
+:: > inksc_wmf2epsc.cmd <wmf|emf-filespec> [dir-spec]
+:: produces [dir-spec]\<wmf|emf-filespec>.eps files
+:: Example: inksc_wmf2epsc.cmd fant.wmf --> .\fant.wmf.eps
+:: ---------------------------------------------------------------------------
+@echo off
+
+:: 64 bit version of Inkscape
+set INKSC="%ProgramFiles%\Inkscape\inkscape.exe"
+
+:: output dir, . is default
+set OUT=.
+if [%2] NEQ [] (
+ set OUT=%2
+ mkdir %2
+)
+
+:: output resolution
+set DPI=600
+
+:: for loop, if argument %1 contains wildcard chars (* or ?)
+for %%f in (%1) do (
+ echo %%f
+ %INKSC% --without-gui --file=%%f --export-eps=%OUT%\%%f.eps --export-dpi=%DPI%
+)
|