Intellij print all classes as PDF
<p>My professor wants to get the code of my Library Management project not only as .java files but also as a one PDF file. Is there any way to do that in Intellij? I have a lot of classes, and I would like to avoid having to click and print every one of them separately.</p>

<p>Is there any workaround? I am using Mac OS. If I select the folder where the code is, the print button shows greyed out. </p>