Fix broken printing in macOS 14. It was broken because the OS stopped supporting Postscript and removed the pstopdf tool. Fix the printexpr to detect when pstopdf doesn't exist and try to use ps2pdf instead. This is a third-party tool and it's not guaranteed to exist. If it doesn't exist, give an error prompt for the user to suggest installing Ghostscript first. Settled on this solution as printing is a relatively niche feature and it's not worth spending too much effort fixing this.
Related:
1390 / #1347: macOS 13 Ventura broke printing by removing Preview support for PostScript. The fix was to use pstopdf, which eventually got removed in macOS 14.
Fix broken printing in macOS 14. It was broken because the OS stopped supporting Postscript and removed the
pstopdf
tool. Fix the printexpr to detect whenpstopdf
doesn't exist and try to useps2pdf
instead. This is a third-party tool and it's not guaranteed to exist. If it doesn't exist, give an error prompt for the user to suggest installing Ghostscript first. Settled on this solution as printing is a relatively niche feature and it's not worth spending too much effort fixing this.Related:
1390 / #1347: macOS 13 Ventura broke printing by removing Preview support for PostScript. The fix was to use
pstopdf
, which eventually got removed in macOS 14.