Defect #10681
Export to Persian PDF problem
Status: | Closed | Start date: | ||
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assignee: | - | % Done: | 0% | |
Category: | PDF export | |||
Target version: | 2.6.2 | |||
Resolution: | Fixed | Affected version: | 2.6.0 |
Description
If issues language be fa-IR, exported PDF is like as attached files.
Related issues
Associated revisions
History
#1
Updated by Etienne Massip about 10 years ago
There has been some PDF export improvements with 1.4.0, maybe you should give it a try on http://demo.redmine.org or http://m.redmine.org?
#2
Updated by Toshi MARUYAMA about 10 years ago
- Subject changed from Export to PDF in utf8 issues problem to Export to Persian PDF problem
- Category changed from I18n to PDF export
#3
Updated by Toshi MARUYAMA about 10 years ago
See #8753.
#4
Updated by Toshi MARUYAMA over 8 years ago
- Related to Defect #16040: problem in exporting Arabic text to csv added
#5
Updated by Toshi MARUYAMA over 7 years ago
- Duplicated by Defect #18504: PDF export for arabic and persian language doesn't work added
#6
Updated by Toshi MARUYAMA over 7 years ago
- Affected version changed from 1.3.1 to 2.6.0
I have created issue.
https://github.com/naitoh/rbpdf/issues/3
#7
Updated by Jun NAITOH over 7 years ago
I released rbpdf 1.18.3 gem.
Persian support was fixed by rbpdf 1.18.3.
please use DejaVuSans font.
- please bundle update
bundle update rbpdf
- set DejaVuSans font.
- config/locales/fa.yml
general_pdf_fontname: DejaVuSans
- config/locales/fa.yml
- use Persian locale
#8
Updated by m mahdi over 7 years ago
- File error_gantt.png added
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.
#9
Updated by Jun NAITOH over 7 years ago
- File Persian_pdf.png added
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 is a locale in RTL.
But, you seem to be using a locale in LTR.
#10
Updated by m mahdi over 7 years ago
- File task_history.png added
Thanks for your reply.
After restart Redmine, PDF export was correct.
But, task history is incorrect yet.
Also the "DejaVuSans" font is not appropriate for Persian and Arabic language. Please change font to Arial, Tahoma or "times new roman"
#11
Updated by Jun NAITOH over 7 years ago
- File Persian_pdf2.png added
- File pdf_Arabic_Persian.patch
added
DejaVuSans Arabic and Persian language weren't supported by Italic font.
Please use pdf_Arabic_Persian.patch. (for Remine 2.6 and trunk)
- result
#12
Updated by Ebrahim Mohammadi over 7 years ago
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.
#13
Updated by m mahdi over 7 years ago
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.
#14
Updated by Ebrahim Mohammadi over 7 years ago
I'm not sure font is the problem. DejaVu fonts work well with Persian. I think something else is wrong.
#15
Updated by Jun NAITOH over 7 years ago
- File pdf.rb_r13778.diff
added
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
bundle update rbpdf
- set DejaVuSans font.
- config/locales/fa.yml
general_pdf_fontname: DejaVuSans
- config/locales/ar.yml
general_pdf_fontname: DejaVuSans
- config/locales/fa.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
#16
Updated by m mahdi over 7 years ago
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.
#17
Updated by Jun NAITOH over 7 years ago
m mahdi wrote:
Thanks Jun.
It was correct and works well.
Thank you very much for your confirmation!
#18
Updated by Toshi MARUYAMA over 7 years ago
- Target version set to 2.6.1
#19
Updated by Toshi MARUYAMA over 7 years ago
Sorry, I cannot show italic correctly.
- Ruby 1.8.7
- Ruby 1.9.3
- Ruby 2.1.5
#20
Updated by Toshi MARUYAMA over 7 years ago
Previous note is on 2.6-stable r13840 applying note 15.
#21
Updated by Jun NAITOH over 7 years ago
- File pdf.rb_r13857.patch
added
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.
#22
Updated by Toshi MARUYAMA over 7 years ago
- Related to Defect #18586: Arabic PDF added
#23
Updated by Toshi MARUYAMA over 7 years ago
- Target version set to 2.6.2
#24
Updated by Toshi MARUYAMA over 7 years ago
- Status changed from New to Closed
- Resolution set to Fixed
Fixed in 2.6-stable r13984, thanks.