+ return legacy_conversion_step3(latex_file, dpi, output_format, dvips_failed, skipMetrics)
+
+
+# Either latex and dvips have been run and we have a ps file, or
+# pdflatex has been run and we have a pdf file. Proceed with gs.
+def legacy_conversion_step3(latex_file, dpi, output_format, dvips_failed, skipMetrics = False):
+ # External programs used by the script.
+ gs = find_exe_or_terminate(["gswin32c", "gs"])
+ pnmcrop = find_exe(["pnmcrop"])
+
+ # Files to process
+ pdf_file = latex_file_re.sub(".pdf", latex_file)
+ ps_file = latex_file_re.sub(".ps", latex_file)
+