summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/redmine/export/pdf.rb12
-rw-r--r--lib/redmine/helpers/gantt.rb6
2 files changed, 3 insertions, 15 deletions
diff --git a/lib/redmine/export/pdf.rb b/lib/redmine/export/pdf.rb
index 2787f1a6f..177f5c835 100644
--- a/lib/redmine/export/pdf.rb
+++ b/lib/redmine/export/pdf.rb
@@ -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)
diff --git a/lib/redmine/helpers/gantt.rb b/lib/redmine/helpers/gantt.rb
index a1160feed..576ec7c52 100644
--- a/lib/redmine/helpers/gantt.rb
+++ b/lib/redmine/helpers/gantt.rb
@@ -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)