PDF: import CJK patches and all languages use TCPDF (#8312).
Contributed Jun NAITOH. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5720 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -210,11 +210,7 @@ module Redmine
|
||||
|
||||
# Returns a PDF string of a list of issues
|
||||
def issues_to_pdf(issues, project, query)
|
||||
if l(:general_pdf_encoding).upcase != 'UTF-8'
|
||||
pdf = IFPDF.new(current_language)
|
||||
else
|
||||
pdf = ITCPDF.new(current_language)
|
||||
end
|
||||
pdf = ITCPDF.new(current_language)
|
||||
title = query.new_record? ? l(:label_issue_plural) : query.name
|
||||
title = "#{project} - #{title}" if project
|
||||
pdf.SetTitle(title)
|
||||
@@ -358,11 +354,7 @@ module Redmine
|
||||
|
||||
# Returns a PDF string of a single issue
|
||||
def issue_to_pdf(issue)
|
||||
if l(:general_pdf_encoding).upcase != 'UTF-8'
|
||||
pdf = IFPDF.new(current_language)
|
||||
else
|
||||
pdf = ITCPDF.new(current_language)
|
||||
end
|
||||
pdf = ITCPDF.new(current_language)
|
||||
pdf.SetTitle("#{issue.project} - ##{issue.tracker} #{issue.id}")
|
||||
pdf.alias_nb_pages
|
||||
pdf.footer_date = format_date(Date.today)
|
||||
|
||||
@@ -507,11 +507,7 @@ module Redmine
|
||||
end if Object.const_defined?(:Magick)
|
||||
|
||||
def to_pdf
|
||||
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)
|
||||
end
|
||||
pdf = ::Redmine::Export::PDF::ITCPDF.new(current_language)
|
||||
pdf.SetTitle("#{l(:label_gantt)} #{project}")
|
||||
pdf.alias_nb_pages
|
||||
pdf.footer_date = format_date(Date.today)
|
||||
|
||||
Reference in New Issue
Block a user