# Exec pstoedit: pdf -> svg
try:
result = exec_command(['pstoedit', '-f', 'plot-svg', self.tmp('pdf'), self.tmp('svg')] + pstoeditOpts)
except RuntimeError as excpt:
# Process rare STATUS_DLL_NOT_FOUND = 0xC0000135 error (DWORD)
if "-1073741515" in excpt.message: add_log_message("Call to pstoedit failed because of a STATUS_DLL_NOT_FOUND error. " "Most likely the reason for this is a missing MSVCR100.dll, i.e. you need " "to install the Microsoft Visual C++ 2010 Redistributable Package " "(search for vcredist_x86.exe or vcredist_x64.exe 2010). " "This is a problem of pstoedit, not of TexText!!", LOG_LEVEL_ERROR)
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())
I did so in TexText:
# Exec pstoedit: pdf -> svg ['pstoedit' , '-f', 'plot-svg',
self.tmp( 'pdf'), self.tmp('svg')]
+ pstoeditOpts) DLL_NOT_ FOUND = 0xC0000135 error (DWORD)
add_log_ message( "Call to pstoedit failed because of a STATUS_ DLL_NOT_ FOUND error. "
"Most likely the reason for this is a missing MSVCR100.dll, i.e. you need "
"to install the Microsoft Visual C++ 2010 Redistributable Package "
"(search for vcredist_x86.exe or vcredist_x64.exe 2010). "
"This is a problem of pstoedit, not of TexText!!", LOG_LEVEL_ERROR) latest_ message( )) exists( self.tmp( 'svg')) or os.path. getsize( self.tmp( 'svg')) == 0:
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) latest_ message( ))
try:
result = exec_command(
except RuntimeError as excpt:
# Process rare STATUS_
if "-1073741515" in excpt.message:
raise RuntimeError(
if not os.path.
# Check for broken pstoedit due to deprecated DELAYBIND option in ghostscript
if "DELAYBIND" in result:
raise RuntimeError(