I have this feature on my web app that allows you to convert files (any format) to pdf and is allowed for viewing.
I'm already able to do that. My problem is when I convert source code files such as .java or .js it is read like an ordinary text file with no highlighting when converted to pdf.
I want to be able to retain syntax highlight of those file when it is converted to pdf as well. Is there any way in doing this?