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

Free Support Forum - aspose.com

PNG saved as PDF : when using pdf->xps->pdf- loses images & corrupts

Hi,
Environment: .Net 4.0, Library Aspose11.5.0. [Works on Aspose 10.3.0 version]
To set the rotation on the document to zero:
Attached pdf loses images when I do the following:

Aspose.Pdf.Document pdfDocument = new Aspose.Pdf.Document(filename);
Aspose.Pdf.PageCollection pageCollection = pdfDocument.Pages;
Aspose.Pdf.XpsSaveOptions saveOptions = new Aspose.Pdf.XpsSaveOptions();
pdfDocument.Save(root + “/” + id + “.xps”, saveOptions);
Aspose.Pdf.XpsLoadOptions options = new Aspose.Pdf.XpsLoadOptions();
Aspose.Pdf.Document document = new Aspose.Pdf.Document(root + “/” + id + “.xps”, options);
document.Save(root + “/” + id + “.pdf”);
This does not happen with Aspose Library 10.3.0

Can you please help me out with this issue? How can I preserve images for the latest library version?

Thank you,
Sireesha


Hi Sireesha,


Thanks for your inquriy. I have tested the scenario with both Aspose.Pdf for .NET 11.5.0 and 10.3.0, but I am afraid I am unable to notice any different in both outputs. We will appreciate it if you please share some more details about the issue and please also share your output files here, so we will look into these and guide you accordingly.

We are sorry for the inconvenience caused.

Best Regards,

Thank you for the reply. I am trying to do here is set the rotation of the page to 0 degrees by using the above code (pdf->xps->pdf).

Are you using the dll for .NET4.0 for library versions 11.5 or 10.3?

Sireesha

Hi Sireesha,


Thanks for your inquiry. I have tested your shared code with both 11.5 and 10.3 dll for 4.0 .NET Framework. Please share a sample console application to replicate the issue at our end, we will look into it and will guide you accordingly.

We are sorry for the inconvenience caused.

Best Regards,