"Index was out of range. Must be non-negative and less than the size of the collection.\r\nParameter name: index"

Hi

When Itried to save the attached PDF to XPS format I am getting the following exception:
{“Index was out of range. Must be non-negative and less than the size of the collection.\r\nParameter name: index”}

Document document = new Document(“C:\Users\tali\Desktop\T1001.TZP.329.Meushar_160656-Layout2.pdf”);
document.Save(@“C:\Users\tali\Desktop\final.xps”, SaveFormat.Xps);

I am using the latest version of Aspose.PDF

Please advise

Oren

Hi Oren,

Thanks for your inquiry. I have tested your scenario with shared document using Aspose.Pdf for .NET 17.1.0 and managed to observe the reported issue. For further investigation, I have logged an issue in our issue tracking system as PDFNET-42179 and also linked your request to it. We will keep you updated via this thread regarding the issue status.

We are sorry for the inconvenience caused.