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

Free Support Forum - aspose.com

Printing PDF via Windows Service

Hi,


I note from the following link that there are restrictions/problems when printing a Word doc from a Windows Service using Aspose.Words:

http://www.aspose.com/documentation/.net-components/aspose.words-for-.net/howto-print-a-document-on-a-server-via-the-xpsprint-api.html

Do the same issues apply when printing a PDF from a Windows Service using Aspose.PdfKit? i.e. does PdfKit print using the “.NET printing classes defined in the System.Drawing.Printing namespace”.

Thanks in advance,

Mike.

Hi Mike,

Yes, Aspose.Pdf.Kit for .NET uses System.Drawing.Printing namespace to print the PDF files. However, as far as the issues while printing the PDF files from Windows Service are concerned, we need to test it at our end. You’ll be updated with the results accordingly.

We’re sorry for the inconvenience.
Regards,


Thank you for the reply, I look forward to your findings.


Note that I am not tied to using PDF.Kit. By that I mean my requirement is to print one or more PDF files from a Windows Service (as many as several thousand in one run) and if Aspose.PDF or some other solution can offer the same result then I would be happy.

Thanks,

Mike.

Hi Mike,

I would like to share with you that Aspose.Pdf.Kit is the only component offered by Aspose which can print the PDF files. We’ll test your scenario at our end and you’ll be updated accordingly.

If you find any other questions, please do let us know.
Regards,

Hi Mike,

I have tested Aspose.Pdf.Kit for .NET with Windows Services and tried to print the PDF file using the Service, but I couldn’t notice any problem; the printing works fine with Windows Services. Please download the latest version and try it at your end to see if it works fine in your scenario as well.

If you find any issues or have further questions, please do let us know.
Regards,

Hi and thanks for your reply.

However, this is disappointing. Whilst your example might work OK, it does go directly against Aspose’s own documentation and that of Microsoft’s recommendations:

http://www.aspose.com/documentation/.net-components/aspose.words-for-.net/howto-print-a-document-on-a-server-via-the-xpsprint-api.html
http://support.microsoft.com/kb/324565

http://msdn.microsoft.com/en-us/library/system.drawing.printing.aspx

I cannot be in a situation where it might work - its isn’t a dead-end I want to go down.

Are there any other routes I could take using Pdf.Kit? For example, using the Xps Print API?

Thanks,

Mike.

Hi Mike,

As I have already mentioned that Aspose.Pdf.Kit for .NET uses System.Drawing namespace to print the PDF document, I’m afraid it doesn’t provide support for any other mechanism for printing purposes.

We’re sorry for the inconvenience. If you have any further questions, please do let us know.
Regards,

Hi,


So, to summarise, there is no recommended, supported and reliable way to print PDFs from a Windows Service using Pdf.Kit?

Is there a way to put this forward as a feature request for a future release please?

Thanks again,

Mike.

Hi Mike,

I have logged a new feature request as PDFKITNET-18474 in our issue tracking system. Our team will investigate this requirement is detail and you’ll be updated via this forum thread once it is supported in future.

We’re sorry for the inconvenience.
Regards,