Is it possible to set layer visibility on the command line for the purpose of png export from the command line? Say I have a multi-lingual document, where I have language layers. When I export to png (or print), I only want to see one language at a time on the final picture. Can this be done on command line along with -e?
Yes, if you know the id of the layer you want to show. See --export-id and --export-id-only in 'man inkscape'.
Hi Bulia,
I tried that, without success. My "layer3" object is set be invisible ("display:none"), so from the command line I did: inkscape file.svg --export-id "layer3" --export-png t.png
The document was printed to t.png - cropped to the size of the layer3 object, and the layer3 is still invisible :-(. In any case, I do not want to id the layers, I want to use their name, it is easier, i.e. the_name in inkscape:label="the_name".
How would I turn off a layer for printing via a command line without ever entering the GUI? I could write a script and output to temp files... then invoke inkscape.
Thanks, Martin