Using ITextSharp to generate XPS documents instead of PDF?
I'm using ITextSharp to generate PDF fi开发者_如何学Goles. Is it also possible to generate XPS files? And if yes, how?
Can't find any documentation. Thanks!
iTextSharp is a library specifically built to generate PDF files, so that is not going to create XPS files for you. The System.Windows.Xps namespace provides you with methods for writing XPS documents from your code for .net 3.5 and higher.
An Idea: You could try creating the PDF using iTextSharp, then converting it to XPS using GhostScript to print to an XPS printer driver?
精彩评论