Print pdf document using aspose

Hello,

I am trying out Aspose PDF. After I finish creating a pdf, I also need to send it to a non-default printer.

I am easily able to send the document to a default printer using vb.net code without using aspose for the job, but I actually need to send the document to a different printer. I am hoping that perhaps I can do this using Aspose. Is this possible? If yes, how can this be done?

Thanks in advance!

Anna

Hi,

Thank you for considering Aspose.

You cann’t print your Pdf documents using Aspose.Pdf. To print we have another product named as Aspose.Pdf.Kit. Please refer to :

There is a property named PrintDocumentWithSetup in Aspose.pdf.Kit.PdfViewer class that prints the Pdf document with a setup dialog. You can choose a printer using that dialog.

If you need more help, please do let us know.

Thanks.

Adeel Ahmad
Support Developer
Aspose Changsha Team

I know the name of the printer I want to send the PDF to. If I use PDF.KIT, can I send to that printer without bringing up a printer dialogue box? The whole process has to be transparent to the user.

If yes, can I use PDF Kit to create files as well, or do I need both, aspose pdf and aspose pdf kit?

Thanks!

Hi,

You can use PdfViewer.PrintDocumentWithSettings . It takes two arguments and one of the argument is PrinterSetting. You can set the PrinterSetting.PrinterName property which specifies the printer to print to.

Aspose.Pdf.Kit is used to manipulate existing Pdf. So, you need both of them.

Thanks.

Adeel Ahmad
Support Developer
Aspose Changsha Team