Commit 8eb23e9d authored by sumpfralle's avatar sumpfralle

SVG import: use only the page area (this is useful for keeping absolute...

SVG import: use only the page area (this is useful for keeping absolute coordinates - instead of shifting them to (0, 0))


git-svn-id: https://pycam.svn.sourceforge.net/svnroot/pycam/trunk@877 bbaffbd6-741e-11dd-a85d-61de82d9cad9
parent 88d4da8a
...@@ -33,7 +33,8 @@ def convert_svg2eps(svg_filename, eps_filename, location=None): ...@@ -33,7 +33,8 @@ def convert_svg2eps(svg_filename, eps_filename, location=None):
try: try:
process = subprocess.Popen(stdin=subprocess.PIPE, process = subprocess.Popen(stdin=subprocess.PIPE,
stdout=subprocess.PIPE, stderr=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE,
args = [location, "--export-eps", eps_filename, svg_filename]) args = [location, "--export-area-page", "--export-eps",
eps_filename, svg_filename])
except OSError, err_msg: except OSError, err_msg:
log.error("SVGImporter: failed to execute 'inkscape' (%s): %s" \ log.error("SVGImporter: failed to execute 'inkscape' (%s): %s" \
% (location, err_msg)) % (location, err_msg))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment