|
| void | error_handler (const HPDF_STATUS error_no, const HPDF_STATUS detail_no, void *user_data) |
| | libharu error handler
|
| |
| HPDF_REAL | calculate_text_height (const HPDF_Page page, const std::string &text, const HPDF_REAL max_width, const HPDF_REAL line_height, const HPDF_REAL max_lines=NULL) |
| | calculates the height of a given text on the pdf
|
| |
| HPDF_REAL | writeText (const HPDF_Page page, std::string text, const HPDF_REAL left, const HPDF_REAL top, const HPDF_REAL line_height, const HPDF_REAL max_width, const _HPDF_TextAlignment alignment, const HPDF_REAL max_height) |
| | write text on to the pdf at a given point
|
| |
| HPDF_REAL | writeTextIfNotHeightExceeded (const HPDF_Page page, std::string text, const HPDF_REAL left, const HPDF_REAL top, const HPDF_REAL line_height, const HPDF_REAL max_width, const _HPDF_TextAlignment alignment, const HPDF_REAL max_height) |
| | write text on to the pdf at a given point when max height is not exceeded
|
| |
| HPDF_REAL | writeText (const HPDF_Page page, std::string text, const HPDF_REAL left, const HPDF_REAL top, const HPDF_REAL line_height, const HPDF_REAL max_width, const _HPDF_TextAlignment alignment, const int max_lines=0) |
| | write text on to the pdf at a given point
|
| |
| HPDF_REAL | writeTextIfNotLinesExceeded (const HPDF_Page page, std::string text, const HPDF_REAL left, const HPDF_REAL top, const HPDF_REAL line_height, const HPDF_REAL max_width, const _HPDF_TextAlignment alignment, const int max_lines=0) |
| | write text on to the pdf at a given point when max lines is not exceeded
|
| |
| HPDF_REAL | changeFont (const HPDF_Page page, const HPDF_REAL font_size, const HPDF_Font font) |
| | change the font and font size
|
| |
| void | drawLine (const HPDF_Page page, const HPDF_REAL from_x, const HPDF_REAL from_y, const HPDF_REAL to_x, const HPDF_REAL to_y) |
| | draw a line, line width needs to be set before
|
| |