rbpdf
rbpdf copied to clipboard
Redmine: Customizing Fonts in Exported PDF
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
same problem
@vividtone
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'
@ashrafalzyoud thanks for the report! it's a bug https://www.redmine.org/issues/32832 should fix it
big thx brother @ahorek
As @ahorek wrote, this is not a bug of rbpdf but Redmine 4.1.0. The fix has just been committed.
@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
Dears, Can i render "data:image/png;base64,....." as an image using rbpdf library. thanks