I just came up with a solution that utilizes enscript and Ghostscript. I
initially tried to use the Windows ports of both of those programs, but I
could not get them to work the way I wanted them to. So I installed the
cygwin versions of both and all works well. Basically, I go from the .java
file to a PDF formatted just as you describe below. I wrote a short shell
script that invokes enscript to format the file into a PostScript document
and then run those results trough Ghostscript to distill it into a PDF. It
seems that Windows Explorer allows you to right-click on a selection of PDF
files and print them in one fell swoop (through Acrobat maybe?). So far in
the one day that I have been doing it this way, this has worked well for me.
I have also found gvim to be quite useful in this endeavor. I can open all
of the Java files that I want to print in one gvim session and utilize
command mode to process all of them with the conversion script. This may be
a bit of a roundabout way of accomplishing this task, but it is almost fully
automated for me. Let me know if you would like more specific details about
this process.

Larry


-----Original Message-----
From: Hohlen, John C [mailto:[EMAIL PROTECTED]
Sent: Friday, July 25, 2003 2:38 PM
To: Struts-User (E-mail)
Subject: [OT] Source Code Print Utility For Code Reviews?


Anybody know of a good "free" print utility for generating hardcopies of
Java source files for code reviews?  Something that can print landscape,
automatically print line numbers, etc.  Ideally, I just like to be able put
the utility in my "Send To" folder so I can print the file from Windows
Explorer without having to open up the file.

Thanks,

JOHN

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


*************************************************************************** 
This electronic mail transmission contains confidential and/or privileged 
information intended only for the person(s) named.  Any use, distribution, 
copying or disclosure by another person is strictly prohibited. 
*************************************************************************** 



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to