PoDoFo
1.0.0-dev
|
This class describes a manually handled PDF text object (content stream operators surrounded by BT . More...
#include <PdfPainterTextObject.h>
Public Member Functions | |
void | Begin () |
Begin drawing multiple text strings on a page using a given font object. More... | |
void | AddText (const std::string_view &str) |
Draw a string on a page. More... | |
void | MoveTo (double x, double y) |
Move position for text drawing on a page. More... | |
void | End () |
End drawing multiple text strings on a page. More... | |
Friends | |
class | PdfPainter |
This class describes a manually handled PDF text object (content stream operators surrounded by BT .
. ET) being written to a PdfPainter
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.
str | the text string which should be printed |
void PdfPainterTextObject::Begin | ( | ) |
void PdfPainterTextObject::End | ( | ) |
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.
x | the x offset relative to pos of BeginText or last MoveTextPos |
y | the y offset relative to pos of BeginText or last MoveTextPos |