LINUX.ORG.RU

История изменений

Исправление agentgoblin, (текущая версия) :

Как вариант, попробуй через --shell выполнить обработку:

--shell

    With this parameter, Inkscape will enter an interactive command line shell mode. In this mode, you type in commands at the prompt and Inkscape executes them, without you having to run a new copy of Inkscape for each command. This feature is mostly useful for scripting and server uses: it adds no new capabilities but allows you to improve the speed and memory requirements of any script that repeatedly calls Inkscape to perform command line tasks (such as export or conversions).

    In shell mode Inkscape expects a sequence of actions (or verbs) as input. They will be processed line by line, that means typically when pressing enter. It is possible (but not necessary) to put all actions on a single line.

    The following example opens a file and exports it into two different formats, then opens another file and exports a single object:

        file-open:file1.svg; export-type:pdf; export-do; export-type:png; export-do
        file-open:file2.svg; export-id:rect2; export-id-only; export-filename:rect_only.svg; export-do

Я так думаю если руками запустить и дать команды, то он ругнётся на что-нибудь, если ему не понравимтся.

А там и автоматизировать попробовать можно через

cat commands.txt | inkscape --shell

Исходная версия agentgoblin, :

Как вариант, попробуй через --shell выполнить обработку:

--shell

    With this parameter, Inkscape will enter an interactive command line shell mode. In this mode, you type in commands at the prompt and Inkscape executes them, without you having to run a new copy of Inkscape for each command. This feature is mostly useful for scripting and server uses: it adds no new capabilities but allows you to improve the speed and memory requirements of any script that repeatedly calls Inkscape to perform command line tasks (such as export or conversions).

    In shell mode Inkscape expects a sequence of actions (or verbs) as input. They will be processed line by line, that means typically when pressing enter. It is possible (but not necessary) to put all actions on a single line.

    The following example opens a file and exports it into two different formats, then opens another file and exports a single object:

        file-open:file1.svg; export-type:pdf; export-do; export-type:png; export-do
        file-open:file2.svg; export-id:rect2; export-id-only; export-filename:rect_only.svg; export-do

Я так думаю если руками запустить и дать команды, то он ругнётся на что-то в нём.

А там и автоматизировать попробовать можно через

cat commands.txt | inkscape --shell