As a work around, rename /usr/bin/inkscape to new-inkscape, such as:
# mv /usr/bin/inkscape /usr/bin/new-inkscape
Then change /usr/bin/inkscape to intercept and replace the command
line argument:
#!/usr/bin/env bash
/usr/bin/new-inkscape \
$(echo "$@" | sed 's/--export-pdf/--export-type=pdf
Il 19/05/20 20:50, Thangalin ha scritto:
Minor correction:
\startluacode
figures.programs.inkscape={
command="inkscape",
pdfargument=[[
"%oldname%"
--export-dpi=600
--export-type=pdf
--export-filename="%newname%"
]],
pngargument=[[
"%oldname%"
Minor correction:
\startluacode
figures.programs.inkscape={
command="inkscape",
pdfargument=[[
"%oldname%"
--export-dpi=600
--export-type=pdf
--export-filename="%newname%"
]],
pngargument=[[
"%oldname%"
--export-dpi=600
--export-type=png
$ inkscape --version
Inkscape 1.0 (4035a4fb49, 2020-05-01)
Pango version: 1.44.7
With the new release of Inkscape, --export-pdf no longer exists. The
new options appear to be:
--export=type=pdf
--export=pdf-version=1.5 (or 1.4)
--export-filename=filename.pdf
Aditya has shown a