pdf.alias_nb_pages
pdf.footer_date = format_date(User.current.today)
pdf.add_page
- pdf.SetFontStyle('B',11)
- pdf.RDMMultiCell(190,5, project.name)
+ pdf.SetFontStyle('B', 11)
+ pdf.RDMMultiCell(190, 5, project.name)
pdf.ln
# Set resize image scale
pdf.set_image_scale(1.6)
- pdf.SetFontStyle('',9)
+ pdf.SetFontStyle('', 9)
write_page_hierarchy(pdf, pages.group_by(&:parent_id))
pdf.output
end
pdf.alias_nb_pages
pdf.footer_date = format_date(User.current.today)
pdf.add_page
- pdf.SetFontStyle('B',11)
+ pdf.SetFontStyle('B', 11)
pdf.
RDMMultiCell(
190, 5,
pdf.ln
# Set resize image scale
pdf.set_image_scale(1.6)
- pdf.SetFontStyle('',9)
+ pdf.SetFontStyle('', 9)
write_wiki_page(pdf, page)
pdf.output
end
:headings => false,
:inline_attachments => false
)
- pdf.RDMwriteFormattedCell(190,5,'','', text, page.attachments, 0)
+ pdf.RDMwriteFormattedCell(190, 5, '', '', text, page.attachments, 0)
if page.attachments.any?
pdf.ln(5)
- pdf.SetFontStyle('B',9)
- pdf.RDMCell(190,5, l(:label_attachment_plural), "B")
+ pdf.SetFontStyle('B', 9)
+ pdf.RDMCell(190, 5, l(:label_attachment_plural), "B")
pdf.ln
for attachment in page.attachments
- pdf.SetFontStyle('',8)
- pdf.RDMCell(80,5, attachment.filename)
- pdf.RDMCell(20,5, number_to_human_size(attachment.filesize),0,0,"R")
- pdf.RDMCell(25,5, format_date(attachment.created_on),0,0,"R")
- pdf.RDMCell(65,5, attachment.author.name,0,0,"R")
+ pdf.SetFontStyle('', 8)
+ pdf.RDMCell(80, 5, attachment.filename)
+ pdf.RDMCell(20, 5, number_to_human_size(attachment.filesize), 0, 0, "R")
+ pdf.RDMCell(25, 5, format_date(attachment.created_on), 0, 0, "R")
+ pdf.RDMCell(65, 5, attachment.author.name, 0, 0, "R")
pdf.ln
end
end