#include <PdfPainterTextObject.h>
This class describes a manually handled PDF text object (content stream operators surrounded by BT .. ET) being written to a PdfPainter
◆ AddText()
void PdfPainterTextObject::AddText |
( |
const std::string_view & |
str | ) |
|
Draw a string on a page. You have to call BeginText before the first call of this function and EndText after the last call.
If you want more simpler text output and do not need the advanced text position features of MoveTextPos use DrawText which is easier.
- Parameters
-
str | the text string which should be printed |
- See also
- SetFont()
-
MoveTo()
-
End()
◆ Begin()
void PdfPainterTextObject::Begin |
( |
| ) |
|
Begin drawing multiple text strings on a page using a given font object. You have to call SetFont before calling this function.
If you want more simpler text output and do not need the advanced text position features of MoveTextPos use DrawText which is easier.
- See also
- AddText()
-
MoveTo()
-
EndText()
◆ End()
void PdfPainterTextObject::End |
( |
| ) |
|
End drawing multiple text strings on a page
If you want more simpler text output and do not need the advanced text position features of MoveTextPos use DrawText which is easier.
- See also
- Begin()
-
AddText()
-
MoveTo()
◆ MoveTo()
void PdfPainterTextObject::MoveTo |
( |
double |
x, |
|
|
double |
y |
|
) |
| |
Move position for text drawing on a page. You have to call BeginText before calling this function
If you want more simpler text output and do not need the advanced text position features of MoveTextPos use DrawText which is easier.
- Parameters
-
x | the x offset relative to pos of BeginText or last MoveTextPos |
y | the y offset relative to pos of BeginText or last MoveTextPos |
- See also
- Begin()
-
AddText()
-
End()