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

Free Support Forum - aspose.com

Unable to covert XPS to PDF - System.ArgumentOutOfRangeException: The parameter value must be greater than zero

Hi,


I encountered the following error while trying to loading a XPS memory stream :

Code
var inStream = new MemoryStream(xpsBtyes);
var loadOptions = new Aspose.Pdf.XpsLoadOptions();

var xpsPdfDocument = new Aspose.Pdf.Document(inStream, loadOptions);

Error
System.ArgumentOutOfRangeException: The parameter value
must be greater than zero.
Parameter name: pixelWidth
at
System.Windows.Media.Imaging.RenderTargetBitmap…ctor(Int32 pixelWidth, Int32
pixelHeight, Double dpiX, Double dpiY, PixelFormat pixelFormat)

..

Can anyone advise?

Thanks in advance.

Hi there,


Thanks for your inquiry. We have noticed that API is malfunctioning while we use Aspose.Pdf for .NET 4.0 DLL for XPS to PDF conversion. So we we have already logged a ticket PDFNEWNET-38976 in our issue tracking system for further investigation and resolution. We will notify you as soon as it is resolved.

However, as a workaround you may try Aspose.Pdf for .NET 2.0 DLL, it is working without any issue.

We are sorry for the inconvenience caused.

Best Regards,

Hi,

Thanks for the reply. Is there any estimated timeframe on the resolving the issue for the ticket?

Hi there,


Thanks for your inquiry. I am afraid the issue is noticed today, so we can not share any ETA at the moment. However we have logged the issue with priority, so it will be resolved asap. We will notify you as soon as it is fixed.

We are sorry for the inconvenience caused.

Best Regards,

Hi,

Any resolution to the issue?

Hi,


Thanks for your patience.

The development team has started investigating the issue but due to some internal limitations of API, the problem is not yet resolved. However, as soon as we have made some definite progress towards its resolution, we will let you know.

The issues you have found earlier (filed as PDFNEWNET-38976) have been fixed in Aspose.Pdf for .NET 10.8.0.


This message was posted using Notification2Forum from Downloads module by Aspose Notifier.
(5)