Project

General

Profile

Patch #2697 » redmine-0.8-kirilica.patch

Ilin Tatabitovski, 2009-02-09 20:11

View differences:

lib/redmine/export/pdf.rb (working copy)
16 16
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
17 17

  
18 18
require 'iconv'
19
require 'rfpdf/chinese'
19
require 'fpdf/chinese'
20 20

  
21 21
module Redmine
22 22
  module Export
23 23
    module PDF
24
      class IFPDF < FPDF
24
      class IFPDF < TCPDF
25 25
        include GLoc
26 26
        attr_accessor :footer_date
27 27
        
......
45 45
            @font_for_content = 'Big5'
46 46
            @font_for_footer = 'Big5'
47 47
          else
48
            @font_for_content = 'Arial'
49
            @font_for_footer = 'Helvetica'              
48
            @font_for_content = 'FreeSans'
49
            @font_for_footer = 'FreeSans'              
50 50
          end
51 51
          SetCreator(Redmine::Info.app_name)
52 52
          SetFont(@font_for_content)
......
108 108
        pdf = IFPDF.new(current_language)
109 109
        title = project ? "#{project} - #{l(:label_issue_plural)}" : "#{l(:label_issue_plural)}"
110 110
        pdf.SetTitle(title)
111
        pdf.AliasNbPages
111
        pdf.alias_nb_pages
112 112
        pdf.footer_date = format_date(Date.today)
113 113
        pdf.AddPage("L")
114 114
        row_height = 7
......
154 154
      def issue_to_pdf(issue)
155 155
        pdf = IFPDF.new(current_language)
156 156
        pdf.SetTitle("#{issue.project} - ##{issue.tracker} #{issue.id}")
157
        pdf.AliasNbPages
157
        pdf.alias_nb_pages
158 158
        pdf.footer_date = format_date(Date.today)
159 159
        pdf.AddPage
160 160
        
......
281 281
      def gantt_to_pdf(gantt, project)
282 282
        pdf = IFPDF.new(current_language)
283 283
        pdf.SetTitle("#{l(:label_gantt)} #{project}")
284
        pdf.AliasNbPages
284
        pdf.alias_nb_pages
285 285
        pdf.footer_date = format_date(Date.today)
286 286
        pdf.AddPage("L")
287 287
        pdf.SetFontStyle('B',12)
(4-4/4)