##// END OF EJS Templates
pdf: add the new feature to include attachment images (#3261)...
Toshi MARUYAMA -
r7795:b200fcfdae3c
parent child
Show More
@@ -116,12 +116,23 module Redmine
116 116 end
117 117
118 118 def RDMwriteHTMLCell(w, h, x, y, txt='', attachments=[], border=0, ln=1, fill=0)
119 @attachments = attachments
119 120 writeHTMLCell(w, h, x, y,
120 121 fix_text_encoding(
121 122 Redmine::WikiFormatting.to_html(Setting.text_formatting, txt)),
122 123 border, ln, fill)
123 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 136 def Footer
126 137 SetFont(@font_for_footer, 'I', 8)
127 138 SetY(-15)
General Comments 0
You need to be logged in to leave comments. Login now