I'm working with Inkscape in cli no (--without-gui
or -z
) to :
- Select multiple nodes by id (
hanzi
,pinyin
) ; - Create an union of them ;
- Save as a new file (
test-union-cli.svg
).
Command
So I use this command:
inkscape -z -f ./䖠-x45A0.svg \
--select=hanzi --select=pinyin \
--verb SelectionUnion --verb FileSaveCopyAs \
--verb=FileClose test-union-cli.svg
Output error
** (inkscape:27462): CRITICAL *: Inkscape::XML::Document sp_repr_read_file(const gchar*, const gchar*): assertion `Inkscape::IO::file_test( filename, G_FILE_TEST_EXISTS )' failed
** (inkscape:27462): CRITICAL *: Inkscape::XML::Document sp_repr_read_file(const gchar*, const gchar*): assertion `Inkscape::IO::file_test( filename, G_FILE_TEST_EXISTS )' failed
** (inkscape:27462): WARNING **: Specified document test-union-cli.svg cannot be opened (does not exist or not a valid SVG file)
The file test-union-cli.svg
is not supposed to exists. So what am I doing wrong here?