I have to print a code that is approximately 7 sections long; however, when I go to print the code, the program crashes and the pdf is unreadable. How do I fix this?
Are you using version 12.1 on Linux? If so, you can try Save As > Postscript and then convert the result to PDF from the command line.
This ploy might work for other versions/OS, I just happen to know it works, and is sometimes needed, in the above setting.