diff --git a/lib/redmine/export/pdf.rb b/lib/redmine/export/pdf.rb index 177f5c835..7c2bf6636 100644 --- a/lib/redmine/export/pdf.rb +++ b/lib/redmine/export/pdf.rb @@ -120,94 +120,6 @@ module Redmine end end - class IFPDF < FPDF - include Redmine::I18n - attr_accessor :footer_date - - def initialize(lang) - super() - if RUBY_VERSION < '1.9' - @ic = Iconv.new(l(:general_pdf_encoding), 'UTF-8') - end - set_language_if_valid lang - case l(:general_pdf_encoding).upcase - when 'CP949' - extend(PDF_Korean) - AddUHCFont() - @font_for_content = 'UHC' - @font_for_footer = 'UHC' - when 'CP932' - extend(PDF_Japanese) - AddSJISFont() - @font_for_content = 'SJIS' - @font_for_footer = 'SJIS' - when 'GB18030' - extend(PDF_Chinese) - AddGBFont() - @font_for_content = 'GB' - @font_for_footer = 'GB' - when 'BIG5' - extend(PDF_Chinese) - AddBig5Font() - @font_for_content = 'Big5' - @font_for_footer = 'Big5' - else - @font_for_content = 'Arial' - @font_for_footer = 'Helvetica' - end - SetCreator(Redmine::Info.app_name) - SetFont(@font_for_content) - end - - def SetFontStyle(style, size) - SetFont(@font_for_content, style, size) - end - - def SetTitle(txt) - txt = begin - utf16txt = Iconv.conv('UTF-16BE', 'UTF-8', txt) - hextxt = "" - rescue - txt - end || '' - super(txt) - end - - def textstring(s) - # Format a text string - if s =~ /^