Hi:
This forum poster used something called "CutePDF" to do what you are asking:
http://support.sas.com/forums/thread.jspa?messageID=37502鉾
In the past, I have used a product called Text2PDF by the FyTek (http://www.fytek.com/products.php?pg=text2pdf) company when I needed to convert a LISTING file (captured with PROC PRINTTO) directly to PDF. The reason I used Text2PDF was that it had a command line interface and so I could create a .TXT file using PROC PRINTTO to capture the LISTING output and then issue an X command to send the created TXT file to a PDF.
There are probably other ways to "distill" a file to PDF form. I find most of my PDF tips and tricks on a web site called Planet PDF (
http://www.planetpdf.com/ ).
I believe that the only way to use SAS to produce PDF files is to:
1) use ODS PDF
2) use the BI Platform "Print to PDF" interface (such as in Web Report Studio) (and of course, this option is not printing LISTING output, at all, but is generally printing SAS Report output to PDF form)
3) issue an X command or SYSTASK command to do the "distilling" or creation of a PDF file using a 3rd party product (such as Adobe Acrobat, CutePDF, FyTek Text2PDF, or others)
Since SAS Enterprise Guide does not automatically create LISTING output, I believe the only way to use EG to create PDF files would be to use ODS PDF -- and, as you have noted, that will not be an "exact" replica of the LISTING window type of output. Since EG has the X command turned off by default, that means that #3 might be problematic without some help.
But, as far as I know, there is no PDF converter built into SAS to convert LISTING output to PDF format directly.
cynthia