--- pdf.rb.orig 2009-05-18 11:46:22.000000000 +0300 +++ pdf.rb 2009-05-20 01:47:01.000000000 +0300 @@ -16,8 +16,8 @@ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. require 'iconv' -require 'rfpdf/fpdf' -require 'rfpdf/chinese' +require 'tcpdf' +#require 'rfpdf/chinese' module Redmine module Export @@ -25,7 +25,7 @@ include ActionView::Helpers::TextHelper include ActionView::Helpers::NumberHelper - class IFPDF < FPDF + class IFPDF < TCPDF include Redmine::I18n attr_accessor :footer_date @@ -49,8 +49,8 @@ @font_for_content = 'Big5' @font_for_footer = 'Big5' else - @font_for_content = 'Arial' - @font_for_footer = 'Helvetica' + @font_for_content = 'FreeSans' + @font_for_footer = 'FreeSans' end SetCreator(Redmine::Info.app_name) SetFont(@font_for_content) @@ -112,7 +112,7 @@ pdf = IFPDF.new(current_language) title = project ? "#{project} - #{l(:label_issue_plural)}" : "#{l(:label_issue_plural)}" pdf.SetTitle(title) - pdf.AliasNbPages + pdf.alias_nb_pages pdf.footer_date = format_date(Date.today) pdf.AddPage("L") row_height = 7 @@ -169,7 +169,7 @@ def issue_to_pdf(issue) pdf = IFPDF.new(current_language) pdf.SetTitle("#{issue.project} - ##{issue.tracker} #{issue.id}") - pdf.AliasNbPages + pdf.alias_nb_pages pdf.footer_date = format_date(Date.today) pdf.AddPage @@ -296,7 +296,7 @@ def gantt_to_pdf(gantt, project) pdf = IFPDF.new(current_language) pdf.SetTitle("#{l(:label_gantt)} #{project}") - pdf.AliasNbPages + pdf.alias_nb_pages pdf.footer_date = format_date(Date.today) pdf.AddPage("L") pdf.SetFontStyle('B',12)