diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-11-24 11:11:36 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-11-24 11:11:36 +0000 |
commit | 81bbb8f9b8554e99e603a9f79b3c921af285b2e3 (patch) | |
tree | 05eb0b36eadc441dbe5daaa02fdd68fa1c2ee424 /lib/redmine/export | |
parent | 1b4fc4aee87f99ef83ddc49611d515a5ce8fde98 (diff) | |
download | redmine-81bbb8f9b8554e99e603a9f79b3c921af285b2e3.tar.gz redmine-81bbb8f9b8554e99e603a9f79b3c921af285b2e3.zip |
pdf: lib: prepare to use rfpdf plug-in rmagick feature (#3261)
Contributed by Jun NAITOH.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7914 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/redmine/export')
-rw-r--r-- | lib/redmine/export/pdf.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/redmine/export/pdf.rb b/lib/redmine/export/pdf.rb index 2c870175d..661b4454a 100644 --- a/lib/redmine/export/pdf.rb +++ b/lib/redmine/export/pdf.rb @@ -21,6 +21,7 @@ require 'iconv' require 'fpdf/chinese' require 'fpdf/japanese' require 'fpdf/korean' +require 'core/rmagick' module Redmine module Export @@ -34,6 +35,8 @@ module Redmine attr_accessor :footer_date def initialize(lang) + @@k_path_cache = Rails.root.join('tmp', 'pdf') + FileUtils.mkdir_p @@k_path_cache unless File::exist?(@@k_path_cache) set_language_if_valid lang pdf_encoding = l(:general_pdf_encoding).upcase super('P', 'mm', 'A4', (pdf_encoding == 'UTF-8'), pdf_encoding) |