Batch Convert .py (text Files) To .pdf On Osx
I teach a python course and have a large number of .py files that were submitted for an exam. I would like to convert all these to pdf so that I can open them in IAnnotate on my i
Solution 1:
Tried on Mavericks:
#!/bin/bashfor file in *.py; do
textutil -convert rtf -font 'Courier New' -fontsize 9 ${file} -output ${file}.rtf
cupsfilter -D ${file}.rtf > ${file}.pdf
done
The resulting files will be named *.py.pdf
.
Post a Comment for "Batch Convert .py (text Files) To .pdf On Osx"