Arabic word in rails prawn shows reverse orderDoes Prawn gem support Arabic Language?Rails PDF Generation with Prawn in IE7Rails: Email a pdf generated with prawn to an email sent by ActionMailer?Undefined method size in PRAWN rails 3Using external TTF fonts to generate PDF with Japanese text using prawnArabic/Chinese translations not working properly in Prawn - Rails?Why numbers getting reversed when formatted in RTL Arabic - Rails application?Does Prawn gem support Arabic Language?Not able to use Prawn to generate PDF in Rails?Arabic unicode font is not being rendered properly on PDF generated by Prawn GemExternal font with Prawn gem in Rails app not working
Why is so much work done on numerical verification of the Riemann Hypothesis?
It grows, but water kills it
How do you make your own symbol when Detexify fails?
Angel of Condemnation - Exile creature with second ability
Why is this estimator biased?
Add big quotation marks inside my colorbox
Strong empirical falsification of quantum mechanics based on vacuum energy density
How to say when an application is taking the half of your screen on a computer
Why should universal income be universal?
Hero deduces identity of a killer
Quoting Keynes in a lecture
Redundant comparison & "if" before assignment
Can I still be respawned if I die by falling off the map?
Is there a way to get `mathscr' with lower case letters in pdfLaTeX?
Why does the Sun have different day lengths, but not the gas giants?
Are Captain Marvel's powers affected by Thanos' actions in Infinity War
How do apertures which seem too large to physically fit work?
Pre-mixing cryogenic fuels and using only one fuel tank
Lowest total scrabble score
Is there an injective, monotonically increasing, strictly concave function from the reals, to the reals?
Is there a RAID 0 Equivalent for RAM?
How can "mimic phobia" be cured or prevented?
Is aluminum electrical wire used on aircraft?
Why "had" in "[something] we would have made had we used [something]"?
Arabic word in rails prawn shows reverse order
Does Prawn gem support Arabic Language?Rails PDF Generation with Prawn in IE7Rails: Email a pdf generated with prawn to an email sent by ActionMailer?Undefined method size in PRAWN rails 3Using external TTF fonts to generate PDF with Japanese text using prawnArabic/Chinese translations not working properly in Prawn - Rails?Why numbers getting reversed when formatted in RTL Arabic - Rails application?Does Prawn gem support Arabic Language?Not able to use Prawn to generate PDF in Rails?Arabic unicode font is not being rendered properly on PDF generated by Prawn GemExternal font with Prawn gem in Rails app not working
When I try to create a pdf in Arabic Language, I'm getting the letters in reverse order.
I use the following code to generate a pdf file.
note_section = content: "#order_item.try(:notes).try(:connect_arabic_letters)" ,
size: 8,
font: "app/assets/fonts/ufonts.com_arial-unicode-ms.ttf",
text_color: "313131"
Expected text is:
In prawn it looks like:

Gem version => Prawn version:2.2.2 Rails version:5.1.6
Any help is highly appreciated, thanks!
ruby-on-rails ruby-on-rails-4 prawn
add a comment |
When I try to create a pdf in Arabic Language, I'm getting the letters in reverse order.
I use the following code to generate a pdf file.
note_section = content: "#order_item.try(:notes).try(:connect_arabic_letters)" ,
size: 8,
font: "app/assets/fonts/ufonts.com_arial-unicode-ms.ttf",
text_color: "313131"
Expected text is:
In prawn it looks like:

Gem version => Prawn version:2.2.2 Rails version:5.1.6
Any help is highly appreciated, thanks!
ruby-on-rails ruby-on-rails-4 prawn
This might be related to your issue: stackoverflow.com/questions/24651908/…
– Rodrigo Vasconcelos
Mar 7 at 7:56
Also, could you provide the version of the gem you are using, and a small snippet of your code?
– Rodrigo Vasconcelos
Mar 7 at 7:57
@RodrigoVasconcelos I'm using prawn (2.2.2) and (Rails 5.1.6)
– sedhu madhav
Mar 12 at 10:22
note_section = content: "#order_item.try(:notes).try(:connect_arabic_letters)" , size: 8, font: "app/assets/fonts/ufonts.com_arial-unicode-ms.ttf"
– sedhu madhav
Mar 12 at 10:24
add a comment |
When I try to create a pdf in Arabic Language, I'm getting the letters in reverse order.
I use the following code to generate a pdf file.
note_section = content: "#order_item.try(:notes).try(:connect_arabic_letters)" ,
size: 8,
font: "app/assets/fonts/ufonts.com_arial-unicode-ms.ttf",
text_color: "313131"
Expected text is:
In prawn it looks like:

Gem version => Prawn version:2.2.2 Rails version:5.1.6
Any help is highly appreciated, thanks!
ruby-on-rails ruby-on-rails-4 prawn
When I try to create a pdf in Arabic Language, I'm getting the letters in reverse order.
I use the following code to generate a pdf file.
note_section = content: "#order_item.try(:notes).try(:connect_arabic_letters)" ,
size: 8,
font: "app/assets/fonts/ufonts.com_arial-unicode-ms.ttf",
text_color: "313131"
Expected text is:
In prawn it looks like:

Gem version => Prawn version:2.2.2 Rails version:5.1.6
Any help is highly appreciated, thanks!
ruby-on-rails ruby-on-rails-4 prawn
ruby-on-rails ruby-on-rails-4 prawn
edited Mar 12 at 13:48
sedhu madhav
asked Mar 7 at 6:14
sedhu madhavsedhu madhav
62
62
This might be related to your issue: stackoverflow.com/questions/24651908/…
– Rodrigo Vasconcelos
Mar 7 at 7:56
Also, could you provide the version of the gem you are using, and a small snippet of your code?
– Rodrigo Vasconcelos
Mar 7 at 7:57
@RodrigoVasconcelos I'm using prawn (2.2.2) and (Rails 5.1.6)
– sedhu madhav
Mar 12 at 10:22
note_section = content: "#order_item.try(:notes).try(:connect_arabic_letters)" , size: 8, font: "app/assets/fonts/ufonts.com_arial-unicode-ms.ttf"
– sedhu madhav
Mar 12 at 10:24
add a comment |
This might be related to your issue: stackoverflow.com/questions/24651908/…
– Rodrigo Vasconcelos
Mar 7 at 7:56
Also, could you provide the version of the gem you are using, and a small snippet of your code?
– Rodrigo Vasconcelos
Mar 7 at 7:57
@RodrigoVasconcelos I'm using prawn (2.2.2) and (Rails 5.1.6)
– sedhu madhav
Mar 12 at 10:22
note_section = content: "#order_item.try(:notes).try(:connect_arabic_letters)" , size: 8, font: "app/assets/fonts/ufonts.com_arial-unicode-ms.ttf"
– sedhu madhav
Mar 12 at 10:24
This might be related to your issue: stackoverflow.com/questions/24651908/…
– Rodrigo Vasconcelos
Mar 7 at 7:56
This might be related to your issue: stackoverflow.com/questions/24651908/…
– Rodrigo Vasconcelos
Mar 7 at 7:56
Also, could you provide the version of the gem you are using, and a small snippet of your code?
– Rodrigo Vasconcelos
Mar 7 at 7:57
Also, could you provide the version of the gem you are using, and a small snippet of your code?
– Rodrigo Vasconcelos
Mar 7 at 7:57
@RodrigoVasconcelos I'm using prawn (2.2.2) and (Rails 5.1.6)
– sedhu madhav
Mar 12 at 10:22
@RodrigoVasconcelos I'm using prawn (2.2.2) and (Rails 5.1.6)
– sedhu madhav
Mar 12 at 10:22
note_section = content: "#order_item.try(:notes).try(:connect_arabic_letters)" , size: 8, font: "app/assets/fonts/ufonts.com_arial-unicode-ms.ttf"– sedhu madhav
Mar 12 at 10:24
note_section = content: "#order_item.try(:notes).try(:connect_arabic_letters)" , size: 8, font: "app/assets/fonts/ufonts.com_arial-unicode-ms.ttf"– sedhu madhav
Mar 12 at 10:24
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55037172%2farabic-word-in-rails-prawn-shows-reverse-order%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55037172%2farabic-word-in-rails-prawn-shows-reverse-order%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
This might be related to your issue: stackoverflow.com/questions/24651908/…
– Rodrigo Vasconcelos
Mar 7 at 7:56
Also, could you provide the version of the gem you are using, and a small snippet of your code?
– Rodrigo Vasconcelos
Mar 7 at 7:57
@RodrigoVasconcelos I'm using prawn (2.2.2) and (Rails 5.1.6)
– sedhu madhav
Mar 12 at 10:22
note_section = content: "#order_item.try(:notes).try(:connect_arabic_letters)" , size: 8, font: "app/assets/fonts/ufonts.com_arial-unicode-ms.ttf"– sedhu madhav
Mar 12 at 10:24