# Returns a PDF string of a list of issues
def issues_to_pdf(issues, project, query)
- if ( current_language.to_s.downcase == 'ko' ||
- current_language.to_s.downcase == 'ja' ||
- current_language.to_s.downcase == 'zh' ||
- current_language.to_s.downcase == 'zh-tw' ||
- current_language.to_s.downcase == 'th' )
+ if l(:general_pdf_encoding).upcase != 'UTF-8'
pdf = IFPDF.new(current_language)
else
pdf = ITCPDF.new(current_language)
# Returns a PDF string of a single issue
def issue_to_pdf(issue)
- if ( current_language.to_s.downcase == 'ko' ||
- current_language.to_s.downcase == 'ja' ||
- current_language.to_s.downcase == 'zh' ||
- current_language.to_s.downcase == 'zh-tw' ||
- current_language.to_s.downcase == 'th' )
+ if l(:general_pdf_encoding).upcase != 'UTF-8'
pdf = IFPDF.new(current_language)
else
pdf = ITCPDF.new(current_language)
end if Object.const_defined?(:Magick)
def to_pdf
- if ( current_language.to_s.downcase == 'ko' ||
- current_language.to_s.downcase == 'ja' ||
- current_language.to_s.downcase == 'zh' ||
- current_language.to_s.downcase == 'zh-tw' ||
- current_language.to_s.downcase == 'th' )
+ if l(:general_pdf_encoding).upcase != 'UTF-8'
pdf = ::Redmine::Export::PDF::IFPDF.new(current_language)
else
pdf = ::Redmine::Export::PDF::ITCPDF.new(current_language)