We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Printer queue document name

When I use PdfViewer.PrintDocumentWithSettings to send PDFs to a printer, the document name is always ‘document’. Is there a way to set change that for each print job? I tried setting PrinterSettings.PrintFileName, but that did not work.

This message was posted using Page2Forum from Printing PDF to an XPS File and Hiding Print Dialog (Facades… - Aspose.Pdf for .NET

Hi Robert,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

We have found the issue your mentioned regarding document naming in printer queue. Your issue has been registered in our issue tracking system with issue id: PDFNEWNET-30312 .We will further investigate and see if the feature can be supported soon. You will be notified via this forum thread regarding any updates on this issue.

Thank You & Best Regards,

Is there any ETA on this? For our purposes not allowing for a job name makes the PDF printing essentially useless.

Hi Jai,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

I have asked our development team to share any updates and ETA regarding your mentioned issue. As soon as I get a feedback, I will notify you via this forum thread.

Sorry for the inconvenience,

Hi Robert,

Thanks for your patience.

We are about to release a new version of Aspose.Pdf for .NET 6.7.0 where we have made some changes to PdfViewer class and it automatically sets the file name as printer document name. Soon you will be updated with the status of correction. Please be patient and spare us little time.

The issues you have found earlier (filed as PDFNEWNET-30312) have been fixed in this update.

This message was posted using Notification2Forum from Downloads module by aspose.notifier.

How can I set a printer queue document name when it is loaded from MemoryStream ?

Hi Laurent,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

I am afraid the feature is not supported at the moment. I have added a functionality enhancement in our issue tracking system to provide the feature “set a printer queue document name when it is loaded from MemoryStream” as per your requirement. The issue id is PDFNEWNET-33695. We will notify you via this forum thread regarding any updates against this feature.

Sorry for the inconvenience,


Do you know if this bug will be fixed for next version ?
This is a big problem to generate ‘document.pdf’ for each documents.


Hi Laurent,

Thanks for your patience.

I am pleased to share that the feature requested earlier to specify the name of document in printer queue when using Stream object has been resolved. In order to support this feature we have introduced a new property named PrinterJobName in PdfViewer class. Please try using the latest release version of Aspose.Pdf for .NET 7.2.0 with following code snippet.


PdfViewer view = new PdfViewer();<o:p></o:p>

FileStream fs = new FileStream("d:/pdftest/1-Merged.pdf", FileMode.Open);

view.PrinterJobName = "Test: 33695";



Hi Laurent,

Thanks for your patience.

We have further investigated the issue PDFNEWNET-30312 reported earlier and in order to resolve this problem, please try using following code snippet.


static void PDFNEWNET_30312()<o:p></o:p>


(new Aspose.Pdf.License()).SetLicense(@"F:\_Sources\Aspose_5\trunk\testdata\License\Aspose.Pdf.lic");

string inFile = @"F:\ExternalTestsData\aj0051.pdf";

Aspose.Pdf.Facades.PdfViewer view = new Aspose.Pdf.Facades.PdfViewer();

view.PrinterJobName = "This is user defined name for printer job";




The above code snippet returns correct name of printer's job.