Java output source in pdf with syntax enabled

I wanted to know if there is a method or tool available for outputting a java source in pdf that has syntax highlighting?

+3
source share
4 answers

If you use eclipse, then this will be a very nice print function, where you could output it as a file using "Print to File" and then specify the type as PDF, Postscript or SVG.

+1
source

GNU Enscript does what you want. It creates postscript files that can then be converted to PDF.

+2
source

Kate , , - PDF-, PDF. , Java.

0

Tetex with the package listingswill do. The best option is if you create PDF using * tex.

0
source

Source: https://habr.com/ru/post/1746397/


All Articles