Project

General

Profile

Defect #61 » tcpdf_binary.patch

for trunk patch - Jun NAITOH, 2011-04-02 05:46

View differences:

lib/redmine/export/pdf.rb 2011-04-02 12:06:35.000000000 +0900 → lib/redmine/export/pdf.rb 2011-04-02 12:06:46.000000000 +0900
# Returns a PDF string of a list of issues
def issues_to_pdf(issues, project, query)
if Redmine::Platform.mswin? ||
( current_language.to_s.downcase == 'ko' ||
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' ||
......
# Returns a PDF string of a single issue
def issue_to_pdf(issue)
if Redmine::Platform.mswin? ||
( current_language.to_s.downcase == 'ko' ||
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' ||
lib/redmine/helpers/gantt.rb 2011-04-02 12:06:29.000000000 +0900 → lib/redmine/helpers/gantt.rb 2011-04-02 12:06:43.000000000 +0900
end if Object.const_defined?(:Magick)
def to_pdf
if Redmine::Platform.mswin? ||
( current_language.to_s.downcase == 'ko' ||
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' ||
vendor/plugins/rfpdf/lib/tcpdf.rb 2011-04-02 12:06:24.000000000 +0900 → vendor/plugins/rfpdf/lib/tcpdf.rb 2011-04-02 12:06:39.000000000 +0900
out('/Filter /FlateDecode');
end
out('>>');
open(ctgfile) do |f|
open(ctgfile, "rb") do |f|
putstream(f.read())
end
out('endobj');
(30-30/46)