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

Free Support Forum - aspose.com

System.Drawing namespace usage in Aspose components

Hi,
We are using Aspose.Words component for printing Word and WordML documents from server side code. Recently, as [1] suggests, we contacted Microsoft for our issues with server side printing (not particularly related to Aspose) and they said that System.Drawing and System.Printing namespaces are not supported in server side.

We are planning on using XpsPrintApi as it seems the only viable way to print from server side and we'd like to make sure if we can continue using your components for XPS conversion.

Our concerns are
1. Does the conversion to XPS document involve XPS printer driver (hence System.Drawing.Printing usage)?
2. Is System.Drawing namespace used for any document creation (mainly Word and Pdf) ?
3. Does the PDF printing (via Aspose.Pdf) also use System.Drawing.Printing namespace?

Thanks

[1] <a href="https://forum.aspose.com/t/87613</a></div>

Hi

Thanks for your request.

1. 2. You can convert your documents to PDF and XPS using Aspose.Words in server environment. Regarding printing using XpsPrinApi, you can find a very good example here:

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

3. Regarding printing using Aspose.Pdf, my colleagues from Aspose.Pdf team will answer you shortly.

Best regards,

Hi Recep,


Thanks for contacting support. I am a representative from Aspose.Pdf team. I am afraid the current implementation of Aspose.Pdf for .NET includes dependencies over System.Drawing and currently we are not entirely certain that either we would be able to exclude them in near future or not. The System.Drawing in XPS conversion is used to represent images, colors, brushes etc. However for the sake of investigation on possibilities to remove System.Drawing dependencies, I have logged a task in our issue tracking system as PDFNEWNET-32097. We will further look into the details of this activity and will keep you updated on the status of correction. We apologize for this inconvenience.