CLI: inconsistent design of --export-id + --export-id-only for PDF/PS/EPS
Steps to reproduce:
- Download sample file:
- Run these commands:
inkscape --export-id=red --export-filename=square_id.png square.svg
inkscape --export-id=red --export-filename=square_id.svg square.svg
inkscape --export-id=red --export-filename=square_id.pdf square.svg
inkscape --export-id=red --export-filename=square_id.ps square.svg
inkscape --export-id=red --export-filename=square_id.eps square.svg
inkscape --export-id=red --export-filename=square_id.emf square.svg
inkscape --export-id=red --export-filename=square_id.wmf square.svg
inkscape --export-id=red --export-id-only --export-filename=square_only_red.png square.svg
inkscape --export-id=red --export-id-only --export-filename=square_only_red.svg square.svg
inkscape --export-id=red --export-id-only --export-filename=square_only_red.pdf square.svg
inkscape --export-id=red --export-id-only --export-filename=square_only_red.ps square.svg
inkscape --export-id=red --export-id-only --export-filename=square_only_red.eps square.svg
inkscape --export-id=red --export-id-only --export-filename=square_only_red.emf square.svg
inkscape --export-id=red --export-id-only --export-filename=square_only_red.wmf square.svg
What happened?
- output.7z
- In case of PDF/PS/EPS the
--export-id
option produces what should --export-id
+ --export-id-only
: square_id.pdf/ps/eps
is same as quare_only_red.pdf/ps/eps
.
What should have happened?
- This is a documented exeption in the man: "For PNG and plain SVG, only export the object whose id is given in --export-id. All other objects are hidden and won't show in export even if they overlay the exported object. [...] For PDF export, this is the default, so this option has no effect."
- I think this is a bad design:
--export-id
and --export-id
+ --export-id-only
should work alike for all export formats.
Inkscape Version and Operating System:
- Inkscape Version: Inkscape 1.1-dev (8e19d19c, 2020-03-19)
- Operating System: Ubuntu
- Operating System version: 19.10