@@ -21,6 +21,7 require 'iconv' | |||
|
21 | 21 | require 'fpdf/chinese' |
|
22 | 22 | require 'fpdf/japanese' |
|
23 | 23 | require 'fpdf/korean' |
|
24 | require 'core/rmagick' | |
|
24 | 25 | |
|
25 | 26 | module Redmine |
|
26 | 27 | module Export |
@@ -34,6 +35,8 module Redmine | |||
|
34 | 35 | attr_accessor :footer_date |
|
35 | 36 | |
|
36 | 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 | 40 | set_language_if_valid lang |
|
38 | 41 | pdf_encoding = l(:general_pdf_encoding).upcase |
|
39 | 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