We get an error
"Supplied XPS file or stream cannot be parsed cause it's content is in wrong format or corrupted!"
while trying to convert a certain XPS file to PDF.
Code to reproduce:
var document = new Aspose.Pdf.Document("input.XPS", new Aspose.Pdf.XpsLoadOptions());
The problem file is attached.
input.zip (1.4 MB)
Stacktrace:
at #=zPHRr8V322ZaXCnx5GvcDK8KJnrUj.#=zsAG_TncjqgA3(Stream #=zwYxLyXldJctH, Document #=zPvr0FrVLID6q, XpsLoadOptions #=zi6gl8$U=, Boolean #=zhluQr2toT0sG)
at #=zPHRr8V322ZaXCnx5GvcDK8KJnrUj.#=zfW4YhIYhlip5(Stream #=zwYxLyXldJctH, Document #=zna1U23o=, XpsLoadOptions #=zi6gl8$U=, Boolean #=zhluQr2toT0sG)
at Aspose.Pdf.Document.#=zLP7wNFU=(Stream #=zTIp6KXA=, LoadOptions #=zi6gl8$U=)
at Aspose.Pdf.Document…ctor(String filename, LoadOptions options)
Aspose.Pdf version 19.10
.NET Framework 4.6