@@ -21,6 +21,7 require 'iconv' | |||||
21 | require 'fpdf/chinese' |
|
21 | require 'fpdf/chinese' | |
22 | require 'fpdf/japanese' |
|
22 | require 'fpdf/japanese' | |
23 | require 'fpdf/korean' |
|
23 | require 'fpdf/korean' | |
|
24 | require 'core/rmagick' | |||
24 |
|
25 | |||
25 | module Redmine |
|
26 | module Redmine | |
26 | module Export |
|
27 | module Export | |
@@ -34,6 +35,8 module Redmine | |||||
34 | attr_accessor :footer_date |
|
35 | attr_accessor :footer_date | |
35 |
|
36 | |||
36 | def initialize(lang) |
|
37 | def initialize(lang) | |
|
38 | @@k_path_cache = Rails.root.join('tmp', 'pdf') | |||
|
39 | FileUtils.mkdir_p @@k_path_cache unless File::exist?(@@k_path_cache) | |||
37 | set_language_if_valid lang |
|
40 | set_language_if_valid lang | |
38 | pdf_encoding = l(:general_pdf_encoding).upcase |
|
41 | pdf_encoding = l(:general_pdf_encoding).upcase | |
39 | super('P', 'mm', 'A4', (pdf_encoding == 'UTF-8'), pdf_encoding) |
|
42 | super('P', 'mm', 'A4', (pdf_encoding == 'UTF-8'), pdf_encoding) |
General Comments 0
You need to be logged in to leave comments.
Login now