open-page in shell mode only works if it is the first argument
Steps to reproduce:
- Launch Inkscape in shell mode: inkscape --shell
- try exporting page 2 of a pdf:
file-open:Flower4.pdf; open-page:2; export-filename:image.png; export-dpi:600; export-do;
What happened?
The page 1 has been exported has png
What should have happened?
The page 2 should have been exported as png
Inkscape Version and Operating System:
Inkscape 1.0.2 (inkscape@e86c8708, 2021-01-15, custom) Pango version: 1.48.0
- Inkscape Version: ... Windows 10 Family 19042.764 Version 20H2
Workaround
It works like that:
open-page:2; file-open:Flower4.pdf; export-filename:image.png; export-dpi:600; export-do;
Note
This make it impossible to chain with page 3 for example in a single batch because it is not recognized.