@@ -34,12 +34,12 module Redmine | |||||
34 | attr_accessor :footer_date |
|
34 | attr_accessor :footer_date | |
35 |
|
35 | |||
36 | def initialize(lang) |
|
36 | def initialize(lang) | |
|
37 | set_language_if_valid lang | |||
|
38 | pdf_encoding = l(:general_pdf_encoding).upcase | |||
37 | if RUBY_VERSION < '1.9' |
|
39 | if RUBY_VERSION < '1.9' | |
38 |
@ic = Iconv.new( |
|
40 | @ic = Iconv.new(pdf_encoding, 'UTF-8') | |
39 | end |
|
41 | end | |
40 | pdf_encoding = l(:general_pdf_encoding).upcase |
|
|||
41 | super('P', 'mm', 'A4', (pdf_encoding == 'UTF-8'), pdf_encoding) |
|
42 | super('P', 'mm', 'A4', (pdf_encoding == 'UTF-8'), pdf_encoding) | |
42 | set_language_if_valid lang |
|
|||
43 | case pdf_encoding |
|
43 | case pdf_encoding | |
44 | when 'UTF-8' |
|
44 | when 'UTF-8' | |
45 | @font_for_content = 'FreeSans' |
|
45 | @font_for_content = 'FreeSans' |
General Comments 0
You need to be logged in to leave comments.
Login now