Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redmine: Customizing Fonts in Exported PDF #55

Open
skhutat opened this issue Dec 5, 2019 · 8 comments
Open

Redmine: Customizing Fonts in Exported PDF #55

skhutat opened this issue Dec 5, 2019 · 8 comments

Comments

@skhutat
Copy link

skhutat commented Dec 5, 2019

Hi,

Im using redmine and really need to customize the PDF export functionality thats done through rbpdf. However, I cant figure out how to customize the font when exporting Issues with Arabic (RTL) language content and text.

Can someone guide me to where the customizations need to be applied?

Thanks
Salim

@mohd-bs82
Copy link

same problem

@ashrafalzyoud
Copy link

@vividtone

@ashrafalzyoud
Copy link

Processing by IssuesController#index as PDF
Parameters: {"set_filter"=>"1", "tracker_id"=>"1", "project_id"=>"a"}
Current user: admin (id=1)
Rendering issues/index.pdf.erb
Rendered issues/index.pdf.erb (27.6ms)
Completed 500 Internal Server Error in 107ms (ActiveRecord: 19.4ms)

ActionView::Template::Error (can't modify frozen String):
1: <%= raw issues_to_pdf(@issues, @project, @query) %>

lib/redmine/export/pdf.rb:58:in delete!' lib/redmine/export/pdf.rb:58:in SetFont'
lib/redmine/export/pdf.rb:51:in SetFontStyle' lib/redmine/export/pdf/issues_pdf_helper.rb:403:in calc_col_width'
lib/redmine/export/pdf/issues_pdf_helper.rb:278:in issues_to_pdf' app/views/issues/index.pdf.erb:1:in _app_views_issues_index_pdf_erb___2561031185156740809_46938098228560'
lib/redmine/sudo_mode.rb:65:in `sudo_mode'

@ahorek
Copy link

ahorek commented Jan 17, 2020

@ashrafalzyoud thanks for the report! it's a bug https://www.redmine.org/issues/32832 should fix it

@ashrafalzyoud
Copy link

big thx brother @ahorek

@vividtone
Copy link

As @ahorek wrote, this is not a bug of rbpdf but Redmine 4.1.0. The fix has just been committed.

@ashrafalzyoud
Copy link

@vividtone brother because i dont have account in redmine.org
can u help me about my issue
i need option to custom field unique not duplicated data
like if user 1, enter cfs[5]=100 if any other user enter the same cfs[5]=100 give him error msg duplicated value

@ahamdan1990
Copy link

Dears,
Can i render "data:image/png;base64,....." as an image using rbpdf library.
thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants