Skip to content

Commit

Permalink
Fixed eps method runtime error
Browse files Browse the repository at this point in the history
  • Loading branch information
aashish24 committed May 28, 2016
1 parent a90c075 commit 8cd0d70
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions Packages/vcs/vcs/Canvas.py
Original file line number Diff line number Diff line change
Expand Up @@ -4913,6 +4913,7 @@ def _compute_width_height(self, width, height, units, ps=False):
H = tmp
return W, H


def postscript(self, file, mode='r', orientation=None, width=None, height=None,
units='inches', textAsPaths=True):
"""
Expand Down Expand Up @@ -5330,8 +5331,7 @@ def gs(self, filename='noname.gs', device='png256',
# #
##########################################################################
def eps(self, file, mode='r', orientation=None, width=None, height=None,
units='inches', left_margin=None, right_margin=None, top_margin=None,
bottom_margin=None, textAsPaths=True):
units='inches', textAsPaths=True):
"""
Function: Encapsulated PostScript
Expand Down Expand Up @@ -5369,11 +5369,8 @@ def eps(self, file, mode='r', orientation=None, width=None, height=None,
width,
height,
units,
left_margin,
right_margin,
top_margin,
bottom_margin,
textAsPaths)

os.popen("ps2epsi %s %s" % (tmpfile, file)).readlines()
os.remove(tmpfile)

Expand Down

0 comments on commit 8cd0d70

Please sign in to comment.