MATLAB: Print to PDF not working in MAC OS X Catalina

MATLABos xpdfprint

I am trying to save my m.file as a pdf using the print function but i am greeted by an error saying printer not found. Note that i am using OS X Catalina.

Best Answer

If you want to save as pdf check the publish function.
If you want to print the MATLAB file programmatically check the following link: