Free Support Forum - aspose.com

distanceFromText out of the range of valid values when converting .docx to .pdf

Hi,


I’m using Aspose.Words for .NET, version 14.6.0.0.
When trying to convert the word document (see attachment) to pdf, an error occured.
Can anyone help? Thanks in advance.

Below is the code snippet.
----BEGIN—
Aspose.Words.Document doc = new Aspose.Words.Document(“c:\test.docx”);
Aspose.Words.Saving.PdfSaveOptions options = new Aspose.Words.Saving.PdfSaveOptions();
doc.Save(“c:\test.pdf”, options );
----ENG—

And below is the error detail and stack trace.
-----BEGIN------
System.ArgumentOutOfRangeException was unhandled
HResult=-2146233086
Message=Specified argument was out of the range of valid values.
Parameter name: distanceFromText
Source=Aspose.Words
ParamName=distanceFromText
StackTrace:
at Aspose.Words.Border. (Double , Boolean )
at Aspose.Words.Border.set_DistanceFromText(Double value)
at . ( )
at . ()
at . ( , IList , IList )
at . ( , ArrayList& , ArrayList& )
at . ( , ArrayList& , ArrayList& )
at . ( , Boolean )
at . ()
at . (Object , SizeF , Single , Color )
at . ( , Object )
at . ( , , )
at . ( , , , Boolean )
at . ( , , Boolean )
at . ( , , Boolean )
at . ( , Boolean )
at . ( , Boolean& )
at . ( , Boolean& )
at . ( )
at . ()
at . ()
at . ()
at ​ . ( , Boolean )
at . (ArrayList , ​ )
at . ( , )
at . ()
at . ( , Int32 , Boolean , Boolean )
at . ()
at . ( ​ , Int32 )
at . ( ​ )
at . ( )
at . ( )
at . (Boolean )
at . (Boolean )
at . ()
at . (Document , )
at Aspose.Words.Document.UpdatePageLayout()
at Aspose.Words.Document. (Boolean )
at Aspose.Words.Document. ()
at Aspose.Words.Document.get_PageCount()
at . ( , )
at . ​ ( )
at Aspose.Words.Document. (Stream , String , SaveOptions )
at Aspose.Words.Document.Save(String fileName, SaveOptions saveOptions)
-----END------

Thanks,
Jake

Hi Jake,

Thanks for your inquiry. I have tested the scenario and have managed to reproduce the same issue at my side. For the sake of correction, I have logged this problem in our issue tracking system as WORDSNET-11509. I have linked this forum thread to the same issue and you will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.

Hi Tahir Manzoor,

Is there any update on this issue?

We’ve purchased your product to be used in our development.
And we’re on a tight schedule, so we hope this issue could be solved ASAP.

Thanks,
Jake

Hi Jake,

Thanks for your inquiry. I would like to
share with you that issues
are addressed and resolved based on first come first serve
basis. Currently, your issue is pending for analysis and is in the
queue. I am afraid, we can’t provide you any reliable estimate at the
moment. Once your issue is analyzed, we will then be able to provide you
an estimate.

Thanks for your patience and understanding.

The issues you have found earlier (filed as WORDSNET-11509) have been fixed in this .NET update and this Java update.


This message was posted using Notification2Forum from Downloads module by aspose.notifier.