How to set 'Document Name' for the PDF print job?

Q: I have a web service that receives print jobs to send to local
printers. I incorporated code from your PDFPrint sample and its working
fine. The problem that I'm experiencing is when I want to query the
status of my print jobs, the "Document Name" for all of them show
as "document" in the printer window. So I'm unable to distinguish
between multiple print jobs sent to the same printer. Is there a way
that I can get them to print under the actual document name, something
similar to what I get when I print using actual Acrobat Reader?

Yes, this is possible. I believe that PrintDocument class (which is
standard part of .NET Framework) has a property called 'DocumentName'
which you can use to get or set the document name to display.