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
179 179

  
180 180
      # Returns a PDF string of a list of issues
181 181
      def issues_to_pdf(issues, project, query)
182
        if Redmine::Platform.mswin? ||
183
           ( current_language.to_s.downcase == 'ko'    ||
182
        if ( current_language.to_s.downcase == 'ko'    ||
184 183
             current_language.to_s.downcase == 'ja'    ||
185 184
             current_language.to_s.downcase == 'zh'    ||
186 185
             current_language.to_s.downcase == 'zh-tw' ||
......
259 258

  
260 259
      # Returns a PDF string of a single issue
261 260
      def issue_to_pdf(issue)
262
        if Redmine::Platform.mswin? ||
263
           ( current_language.to_s.downcase == 'ko'    ||
261
        if ( current_language.to_s.downcase == 'ko'    ||
264 262
             current_language.to_s.downcase == 'ja'    ||
265 263
             current_language.to_s.downcase == 'zh'    ||
266 264
             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
507 507
      end if Object.const_defined?(:Magick)
508 508

  
509 509
      def to_pdf
510
        if Redmine::Platform.mswin? ||
511
           ( current_language.to_s.downcase == 'ko'    ||
510
        if ( current_language.to_s.downcase == 'ko'    ||
512 511
             current_language.to_s.downcase == 'ja'    ||
513 512
             current_language.to_s.downcase == 'zh'    ||
514 513
             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
3063 3063
			out('/Filter /FlateDecode');
3064 3064
		end
3065 3065
		out('>>');
3066
    open(ctgfile) do |f|
3066
    open(ctgfile, "rb") do |f|
3067 3067
      putstream(f.read())
3068 3068
    end
3069 3069
		out('endobj');
(30-30/46)