Hi,
I am trying to save a pdf as xps. When the pdf contains an image, it is lost in the resulting xps.
if i do this:
new Aspose.Pdf.Document(“Testdokument1.pdf”).Save(“Testdokument1.xps”, SaveFormat.Xps);
the resulting xps is black and white and the (green) image at the beginning of the page is gone.
This, however, works fine:
new Aspose.Pdf.Document(@“c:\Testdokument1.pdf”).Save(@“c:\Testdokument2.pdf”);
I have this problem with other pdfs as well.
Is there a solution to this problem?
Hello Peter,
Thanks for using our products.
I have tested the scenario and I am able to reproduce the same problem. For the sake of correction, I have logged it in our issue tracking system as PDFNEWNET -33142. We will investigate this issue in details and will keep you updated on the status of a correction. We apologize for your inconvenience.
However as a workaround, please try using PdfViewer class to convert PDF file into XPS format. For your reference, I have also attached the resultant PDF that I have generated with PdfViewer. I would also suggest you to visit the following link for more information on Printing PDF to an XPS Printer (Facades)