Sha256: a113e802168b3daa50e5aa6d3b88e088147729268b2f03798ae96bfd1a9b9d69
Contents?: true
Size: 902 Bytes
Versions: 5
Compression:
Stored size: 902 Bytes
Contents
# coding: utf-8 example :page_number, 'Draw page-number automatically each pages' do |t| # Basic PageNumber report = Thinreports::Report.new layout: t.layout_filename report.start_new_page do |page| # change visibility page.item(:pageno).hide end report.start_new_page do |page| # change style page.item(:pageno).styles(color: 'red', bold: true, underline: true, linethrough: true) end # Do not count as total page count report.start_new_page count: false report.start_new_page count: true report.generate filename: t.output_filename # PageNumber is started from 5 report = Thinreports::Report.new layout: t.layout_filename report.start_page_number_from 5 10.times { report.start_new_page } report.generate filename: t.resource("#{t.name}_from5.pdf") end
Version data entries
5 entries across 5 versions & 1 rubygems