Wraps FPDFPageObj_NewTextObj (when font is a standard-font
name) or FPDFPageObj_CreateTextObj (when font is a custom
pdfium_font handle from pdf_font_load_standard() /
pdf_font_load()). Either path is followed by an optional
FPDFText_SetText, FPDFPageObj_Transform, and
FPDFPage_InsertObject.
Arguments
- page
A
pdfium_pagefrompdf_page_load(). Parent doc must be readwrite.- text
Character scalar — the text content. Pass
""to create an empty text object you'll populate later viapdf_text_set_content().- font
Either a character scalar — one of the 14 PDF standard font names (see
pdf_font_load_standard()for the list) — or apdfium_fonthandle frompdf_font_load_standard()orpdf_font_load(). Default"Helvetica". Pass apdfium_fonthandle when you need a custom TrueType / Type1 font; the standard-font shortcut is purely for convenience.- font_size
Numeric scalar — font size in points. Default
12.- x, y
Numeric scalars — baseline position in PDF user-space points. Default
0, 0.