FPDFText_SetText method

int FPDFText_SetText(
  1. FPDF_PAGEOBJECT text_object,
  2. 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

int FPDFText_SetText(FPDF_PAGEOBJECT text_object, FPDF_WIDESTRING text) {
  return _FPDFText_SetText(text_object, text);
}