Using the Inkscape shell from perl
问题 Inkscape has a shell mode invoked like this inkscape --shell where you can execute commands like this: some_svg_file.svg -e some_png_output.png -y 1.0 -b #ffffff -D -d 150 which will generate a PNG file, or like this: /home/simone/some_text.svg -S which gives you the bounding box of all elements in the file in the return message like this svg2,0.72,-12.834,122.67281,12.942 layer1,0.72,-12.834,122.67281,12.942 text2985,0.72,-12.834,122.67281,12.942 tspan2987,0.72,-12.834,122.67281,12.942 The