Comment 19 for bug 1734624

Revision history for this message
Jan Winkler (jcwinkler) wrote :

Forget the post above! (How can I delete /edit it?)

Correct version:

# Exec pstoedit: pdf -> svg
try:
 result = exec_command(['pstoedit', '-f', 'plot-svg',
                               self.tmp('pdf'), self.tmp('svg')] + pstoeditOpts)
except RuntimeError as excpt:
        # some other stuff here
        # ...
        #
 raise RuntimeError(latest_message())
if not os.path.exists(self.tmp('svg')) or os.path.getsize(self.tmp('svg')) == 0:
 # Check for broken pstoedit due to deprecated DELAYBIND option in ghostscript
 if "DELAYBIND" in result:
  result += "Ensure that a ghostscript version < 9.21 is installed on your system!\n"
 add_log_message("pstoedit didn't produce output.\n%s" % (result), LOG_LEVEL_ERROR)
 raise RuntimeError(latest_message())

=======================

Would you like me to implement a similar thing into the LaTeX extension?