#include <invoice.h>
◆ Invoice()
| Invoice::Invoice |
( |
const std::shared_ptr< InvoiceData > & | invoice_data | ) |
|
|
inlineexplicit |
◆ _generateFooter()
| void Invoice::_generateFooter |
( |
HPDF_Page | page | ) |
const |
|
private |
prints the footer on the current pdf page, excluding the page number
◆ _generateNewPage()
| HPDF_Page Invoice::_generateNewPage |
( |
| ) |
|
|
private |
create a new page and add to pages list
- Returns
- the created page
◆ _generatePageNumbers()
| void Invoice::_generatePageNumbers |
( |
| ) |
const |
|
private |
print page numbering on all pages
◆ generate()
| std::string Invoice::generate |
( |
| ) |
|
generate a PDF invoice and save it to the users downloads folder as the invoice_number.pdf
- Returns
- the location of the saved pdf
- Exceptions
-
◆ current_height
| HPDF_REAL Invoice::current_height |
|
private |
◆ font_bold
| HPDF_Font Invoice::font_bold |
|
private |
◆ font_normal
| HPDF_Font Invoice::font_normal |
|
private |
◆ invoice_data
◆ line_height_factor
| float Invoice::line_height_factor = 1.2 |
|
private |
◆ padding_bottom
| float Invoice::padding_bottom = 65 |
|
private |
◆ padding_left
| float Invoice::padding_left = 55 |
|
private |
◆ padding_right
| float Invoice::padding_right = 55 |
|
private |
◆ padding_top
| float Invoice::padding_top = 55 |
|
private |
◆ page_direction
| HPDF_PageDirection Invoice::page_direction = HPDF_PAGE_PORTRAIT |
|
private |
◆ page_size
| HPDF_PageSizes Invoice::page_size = HPDF_PAGE_SIZE_A4 |
|
private |
◆ pages
| std::list<HPDF_Page> Invoice::pages {} |
|
private |
◆ pdf
The documentation for this class was generated from the following files: