Rapport.PageNumbering (rapport v0.7.2)
Summary
Functions
Adds page numbers to the pages
Types
Functions
Link to this function
add_page_numbers(report, page_number_position \\ :bottom_right, formatter \\ fn cnt_page, _ -> "#{cnt_page}" end)
@spec add_page_numbers( Rapport.Report.t(), :bottom_right | :bottom_left | :top_right | :top_left, function() ) :: Rapport.Report.t()
Adds page numbers to the pages
It expects the page position to be an atom and must be :bottom_right
, :bottom_left
, :top_right
or :top_left
,
otherwise ArgumentError
will be raised.
Options
report
- TheRapport.Report
that you want set the padding forpage_number_position
- Where the page number will be positioned.