pstoeps patch for backend_ps.py for win32 platforms

For the pstoeps function,

def pstoeps(tmpfile, bbox):
"""
Use ghostscript's bbox device to determine the
bounding box, then convert
the postscript to encapsulated postscript. This
function is only needed for
the usetex option.
"""

The following needs to be changed/added to make it work
on a win32 platform

if sys.platform == 'win32': gs_exe = 'gswin32c'
else: gs_exe = 'gs'
command = '%s -dBATCH -dNOPAUSE -sDEVICE=bbox "%s"'
% (gs_exe, tmpfile)

see SVN patch to backend_ps.py rev. 2131 @
http://sourceforge.net/tracker/index.php?func=detail&aid=1445612&group_i
d=80706&atid=560722

PJR

PS: To the patch administrator (JDH ?), please delete Request ID:
1445611 & 1445604, had some problems uploading the patch (forgot tot
check the checkbox)

Thank you for the report, this has been fixed.

Darren

ยทยทยท

On Wednesday 08 March 2006 07:22, Randewijk P-J <pjrandew@...841...> wrote:

if sys.platform == 'win32': gs_exe = 'gswin32c'
else: gs_exe = 'gs'
command = '%s -dBATCH -dNOPAUSE -sDEVICE=bbox "%s"'
% (gs_exe, tmpfile)