プロジェクト

全般

プロフィール

Vote #71654

完了

Export to Persian PDF problem

Admin Redmine さんが3年以上前に追加. 3年以上前に更新.

ステータス:
Closed
優先度:
通常
担当者:
-
カテゴリ:
PDF export_39
対象バージョン:
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
39
version_id:
89
issue_org_id:
10681
author_id:
21076
assigned_to_id:
0
comments:
24
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
81
ステータス-->[Closed]

説明

If issues language be fa-IR, exported PDF is like as attached files.


journals

There has been some PDF export improvements with version:1.4.0, maybe you should give it a try on http://demo.redmine.org or http://m.redmine.org?
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
See #8753.
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
I have created issue.
https://github.com/naitoh/rbpdf/issues/3
--------------------------------------------------------------------------------
I released rbpdf 1.18.3 gem.
Persian support was fixed by rbpdf 1.18.3.
please use DejaVuSans font.

# please bundle update
<pre>
bundle update rbpdf
</pre>
# set DejaVuSans font.
** config/locales/fa.yml
<pre>
general_pdf_fontname: DejaVuSans
</pre>
# use Persian locale
--------------------------------------------------------------------------------
I update rbpdf to 1.18.3
I changed general_pdf_fontname to "DejaVuSans"
I used Persian locale (fa_IR.UTF-8)
but, I get same error.

--------------------------------------------------------------------------------
m mahdi wrote:
> I update rbpdf to 1.18.3
> I changed general_pdf_fontname to "DejaVuSans"
> I used Persian locale (fa_IR.UTF-8)
> but, I get same error.

Sorry, additional procedure.
Please restart Redmine.

* result
!Persian_pdf.png!

Persian is a locale in RTL.
But, you seem to be using a locale in LTR.

!error_gantt.png !
--------------------------------------------------------------------------------
Thanks for your reply.
After restart Redmine, PDF export was correct.
But, task history is incorrect yet.

!task_history.png!

*Also the "DejaVuSans" font is not appropriate for Persian and Arabic language. Please change font to Arial, Tahoma or "times new roman"*

--------------------------------------------------------------------------------
DejaVuSans Arabic and Persian language weren't supported by Italic font.

Please use pdf_Arabic_Persian.patch. (for Remine 2.6 and trunk)

* result
!Persian_pdf2.png!
--------------------------------------------------------------------------------
m mahdi wrote:
> After restart Redmine, PDF export was correct.

No, the exported PDF is not correct yet despite the improvement. The problem is all characters are joined to their previous characters, even when they must not be joined.
--------------------------------------------------------------------------------
Ebrahim Mohammadi wrote:
>
> No, the exported PDF is not correct yet despite the improvement. The problem is all characters are joined to their previous characters, even when they must not be joined.

Yes, The font is not correct. The font not suitable for Persian and Arabic text.
--------------------------------------------------------------------------------
I'm not sure font is the problem. DejaVu fonts work well with Persian. I think something else is wrong.
--------------------------------------------------------------------------------
Ebrahim Mohammadi wrote:
> I'm not sure font is the problem. DejaVu fonts work well with Persian.

Yes, I think so, too.

> I think something else is wrong.

I released rbpdf 1.18.4 gem.
I fixed many Arabic and Persian PDF export's problem by rbpdf 1.18.4.

# please bundle update
<pre>
bundle update rbpdf
</pre>
# set DejaVuSans font.
** config/locales/fa.yml
<pre>
general_pdf_fontname: DejaVuSans
</pre>
** config/locales/ar.yml
<pre>
general_pdf_fontname: DejaVuSans
</pre>
# Please use pdf.rb_r13778.diff patch. (for Remine 2.6 and trunk)
# Please restart Redmine.
# Please use Arabic or Persian locale
# Please export PDF
--------------------------------------------------------------------------------
Jun NAITOH wrote:
> Ebrahim Mohammadi wrote:
> > I'm not sure font is the problem. DejaVu fonts work well with Persian.
>
> Yes, I think so, too.
>
> > I think something else is wrong.
>
> I released rbpdf 1.18.4 gem.
> I fixed many Arabic and Persian PDF export's problem by rbpdf 1.18.4.
>
> # please bundle update
> [...]
> # set DejaVuSans font.
> ** config/locales/fa.yml
> [...]
> ** config/locales/ar.yml
> [...]
> # Please use pdf.rb_r13778.diff patch. (for Remine 2.6 and trunk)
> # Please restart Redmine.
> # Please use Arabic or Persian locale
> # Please export PDF
Thanks Jun.
It was correct and works well.

--------------------------------------------------------------------------------
m mahdi wrote:

> Thanks Jun.
> It was correct and works well.

Thank you very much for your confirmation!

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
Sorry, I cannot show italic correctly.

* Ruby 1.8.7
* Ruby 1.9.3
* Ruby 2.1.5

!web.png!
!pdf.png!

--------------------------------------------------------------------------------
Previous note is on 2.6-stable r13840 applying note 15.
--------------------------------------------------------------------------------
Toshi MARUYAMA wrote:
> Sorry, I cannot show italic correctly.

Sorry, pdf.rb_r13778.diff has problem.
DejaVuSans Arabic and Persian language weren't supported by Italic font.

I fixed so as not to use an italic style by pdf.rb_r13857.patch.

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
Fixed in 2.6-stable r13984, thanks.
--------------------------------------------------------------------------------


related_issues

relates,Closed,8753,PDF export for Hebrew is reversed
relates,Closed,13575,Graphic characters not exported
relates,Closed,13781,CJK(Chinese/Japanese/Korean) characters are not shown in PDF on non CJK locales
relates,Closed,16040,problem in exporting Arabic text to csv
relates,Closed,18586,Arabic PDF
duplicates,Closed,18504,PDF export for arabic and persian language doesn't work

Admin Redmine さんが3年以上前に更新

  • カテゴリPDF export_39 にセット
  • 対象バージョン2.6.2_89 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0