Hi,
When I use Aspose to output Bidi text in PDF, but the outputted content is always “Left to Right” direction, not "Right to Left"
You can copy text “1 - The
quick fox 123 jumps over the lazy dog.” to Notepad, and then right-click
Notepad, choose Right to left Reading Order, we can see the result,
then compare with My testing codes.
My testing codes:
DocumentBuilder docBuilder = new DocumentBuilder();
docBuilder.getParagraphFormat().clearFormatting();
docBuilder.clearRunAttrs();
docBuilder.getFont().setBidi(true);
docBuilder.getFont().setLocaleIdBi( 1037 );
docBuilder.getParagraphFormat().setBidi(true);
docBuilder.write( “1 - The quick fox 123 jumps over the lazy dog.” );
docBuilder.writeln();
docBuilder.getDocument().save( “C:\test.pdf” );
Thanks,
Feng
Hi XianFeng,
Thanks for query. I regret to share with you that the support of RTL layout and rendering is not available in Aspose.Words at the moment. However, We had already logged this issue as new feature request in our issue tracking system. You will be notified via this forum thread once this feature is available.
Do you mean that Aspose.Words doesn’t support RTL layout when generate PDF?
But I also did test on Notepad, the Bidi sequence is correct.
But I use Aspose.Words, the output Word .doc really do RTL layout, but not the correct sequence
And the output PDF .pdf doesn’t render correctly, Aspose.Words doesn’t handle with Bidi content.
Hi XianFeng,
Yes, the Aspose.Words for .NET does not support RTL layout when generate PDF. As I shared with you earlier that we had already logged this feature in our issue tracking system and you will be updated via this forum thread once this feature is available.
We are sorry for your inconvenience.
Hi Tahir,
Thanks for your replay, I use Aspose.Words for Java, not .NET, are they the same status about RTL?
Thanks
Feng
Hi Feng,
Both Aspose.Words for java and .net has same status.
Thanks for your replay.
And Where can I trace this issue status? and when can fix this issue?
Hi XianFeng,
The issues you have found earlier (filed as WORDSNET-5829) have been fixed in this .NET update and this Java update.
This message was posted using Notification2Forum from Downloads module by aspose.notifier.