@@ -116,12 +116,23 module Redmine | |||||
116 | end |
|
116 | end | |
117 |
|
117 | |||
118 | def RDMwriteHTMLCell(w, h, x, y, txt='', attachments=[], border=0, ln=1, fill=0) |
|
118 | def RDMwriteHTMLCell(w, h, x, y, txt='', attachments=[], border=0, ln=1, fill=0) | |
|
119 | @attachments = attachments | |||
119 | writeHTMLCell(w, h, x, y, |
|
120 | writeHTMLCell(w, h, x, y, | |
120 | fix_text_encoding( |
|
121 | fix_text_encoding( | |
121 | Redmine::WikiFormatting.to_html(Setting.text_formatting, txt)), |
|
122 | Redmine::WikiFormatting.to_html(Setting.text_formatting, txt)), | |
122 | border, ln, fill) |
|
123 | border, ln, fill) | |
123 | end |
|
124 | end | |
124 |
|
125 | |||
|
126 | def getImageFilename(attrname) | |||
|
127 | # attrname: general_pdf_encoding string file/uri name | |||
|
128 | atta = RDMPdfEncoding.attach(@attachments, attrname, l(:general_pdf_encoding)) | |||
|
129 | if atta | |||
|
130 | return atta.diskfile | |||
|
131 | else | |||
|
132 | return nil | |||
|
133 | end | |||
|
134 | end | |||
|
135 | ||||
125 | def Footer |
|
136 | def Footer | |
126 | SetFont(@font_for_footer, 'I', 8) |
|
137 | SetFont(@font_for_footer, 'I', 8) | |
127 | SetY(-15) |
|
138 | SetY(-15) |
General Comments 0
You need to be logged in to leave comments.
Login now