Shell --export-page=all only exports first page
Steps to reproduce:
Convert a multipage PDF to SVG with this command:
inkscape multipage.pdf --pages=all --export-page=all --export-type=svg -o output.svg
What happened?
Only the first page gets exported.
What should have happened?
All pages should be exported.
Bug & Fix
Bug is in these 2 lines:
https://gitlab.com/inkscape/inkscape/-/blob/master/src/io/file-export-cmd.cpp?ref_type=heads#L370
https://gitlab.com/inkscape/inkscape/-/blob/master/src/io/file-export-cmd.cpp?ref_type=heads#L528
auto pages = Inkscape::parseIntRange(export_page);
Fix should be simple to make the magic value "all" work:
auto pages = Inkscape::parseIntRange(export_page, 1, __TOTAL_NUMBER_OF_PAGES_IN_DOC__);
Feature was introduced by @doctormo in !4691 (merged)
Inkscape Version and Operating System:
- Inkscape Version: 1.3.2
- Operating System: Ubuntu
- Operating System version: 22.04