FPDFText_SetText function
- @Native<FPDF_BOOL Function(FPDF_PAGEOBJECT, FPDF_WIDESTRING)>(FPDF_PAGEOBJECT, FPDF_WIDESTRING)>()
- FPDF_PAGEOBJECT text_object,
- FPDF_WIDESTRING text
Set the text for a text object. If it had text, it will be replaced.
text_object - handle to the text object. text - the UTF-16LE encoded string containing the text to be added.
Returns TRUE on success. Fails if |text_object| is null or if |text| is empty.
Implementation
@ffi.Native<FPDF_BOOL Function(FPDF_PAGEOBJECT, FPDF_WIDESTRING)>()
external int FPDFText_SetText(
FPDF_PAGEOBJECT text_object,
FPDF_WIDESTRING text,
);