I am having issues printing an XPS document produced by using Spire PDF to load a PDF from file, then instantly save it as an XPS document using PdfDocument.SaveToFile(*filepath*, FileFormat.XPS). Whenever I open the resultant XPS file in XPS Viewer it appears normal, however, when I print the file, the font becomes garbled and incomprehensible. The only code I am using is this:
- Code: Select all
Spire.Pdf.PdfDocument doc = new Spire.Pdf.PdfDocument();
doc.LoadFromFile(file);
doc.SaveToFile("C:\\Users\\tomih\\Documents\\PIL_Printer\\testies.xps", FileFormat.XPS);
I have also attached the original PDF document and a photo of the printing result.
Login to view the files attached to this post.