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

Free Support Forum - aspose.com

Arabic numbers sorted badly in PDF output if decimal is ascii 46

Please find attached word doc.

Aspose.Words save as PDF will generate output like attached pdf.
As you can see the numbers get sorted backwards when the decimal is a “normal” dot but not with an arabic full stop.
This was with version 13.10.




I can confirm it is working in 14.6 could you please inform which bug was creating this issue? I need to know what other things could be affected.


Sorry, again, it was just that test file that worked in 14.6.
Other attached example still does not work.

Hi Johan,

Thanks for your inquiry.

I have tested the scenario and have managed to reproduce the same issue at my side for arabtest2.docx. For the sake of correction, I have logged this problem in our issue tracking system as WORDSNET-10489. 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 Johan,

Could you please share which MS Word version you are using? MS Word 2013 and output Pdf show the same text. See the attached image for detail.
<span dir=“RTL” style=“font-size:11.0pt;line-height:115%;font-family:“Arial”,“sans-serif”;
mso-fareast-font-family:Calibri;mso-fareast-theme-font:minor-latin;mso-ansi-language:
EN-US;mso-fareast-language:HE;mso-bidi-language:AR-SA;mso-no-proof:yes” lang=“AR-SA”>
<!–[if gte mso 9]>
<w:WordDocument>
<w:View>Normal</w:View>
<w:Zoom>0</w:Zoom>
<w:TrackMoves/>
<w:TrackFormatting/>
<w:DoNotShowPropertyChanges/>
<w:PunctuationKerning/>
<w:ValidateAgainstSchemas/>
<w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid>
<w:IgnoreMixedContent>false</w:IgnoreMixedContent>
<w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText>
<w:DoNotPromoteQF/>
<w:LidThemeOther>SV</w:LidThemeOther>
<w:LidThemeAsian>X-NONE</w:LidThemeAsian>
<w:LidThemeComplexScript>AR-SA</w:LidThemeComplexScript>
<w:Compatibility>
<w:BreakWrappedTables/>
<w:SnapToGridInCell/>
<w:WrapTextWithPunct/>
<w:UseAsianBreakRules/>
<w:DontGrowAutofit/>
<w:SplitPgBreakAndParaMark/>
<w:EnableOpenTypeKerning/>
<w:DontFlipMirrorIndents/>
<w:OverrideTableStyleHps/>
</w:Compatibility>
<m:mathPr>
<m:mathFont m:val=“Cambria Math”/>
<m:brkBin m:val=“before”/>
<m:brkBinSub m:val="–"/>
<m:smallFrac m:val=“off”/>
<m:dispDef/>
<m:lMargin m:val=“0”/>
<m:rMargin m:val=“0”/>
<m:defJc m:val=“centerGroup”/>
<m:wrapIndent m:val=“1440”/>
<m:intLim m:val=“subSup”/>
<m:naryLim m:val=“undOvr”/>
</m:mathPr></w:WordDocument>
<![endif]–><!–[if gte mso 10]>

/* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin-top:0in; mso-para-margin-right:0in; mso-para-margin-bottom:10.0pt; mso-para-margin-left:0in; line-height:115%; mso-pagination:widow-orphan; font-size:11.0pt; font-family:"Calibri","sans-serif"; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin; mso-ansi-language:SV;}

<![endif]–>

I used Word 2010 SP2.

But can you confirm you used ascii 46 as decimal? It looks more like an Arabic comma in the PDF?

Hi Johan,

Thanks for your patience.

It is to update you that our development team has completed the analysis of this issue and has come to a conclusion that this issue has been closed with ''Won't Fix'' resolution.

Aspose.Words currently renders the text the same way as MS Word 2013 does. Please see the image in my previous post.

OK but when I take that file and use it in the latest version of Aspose.Words it becomes backwards.

So it doesn’t render it the same way in the PDF.
Did you mean I should resave the file in Word 2013?
/Johan

Hi Johan,

Thanks for your inquiry. Please open your input Word document in MS Word 2013 and check the arabic text. The arabic text is same as shown in output PDF file generated by Aspose.Words.

At the moment, Aspose.Words renders the text in the same way as MS Word 2013 does.