Skip to contents

Wraps FPDFTextObj_SetFontSize: rewrites the size operand of the object's Tf operator, so pdf_text_font_size() reads the new value back and the object renders at the new size. This is distinct from scaling the object's matrix with pdf_obj_set_matrix(), which changes the rendered size but leaves the font size unchanged.

Usage

pdf_text_set_font_size(obj, size)

Arguments

obj

A pdfium_obj of type "text". Parent doc must be readwrite.

size

Numeric scalar, the new font size in PDF points (1/72 inch). Must be non-negative; 0 is allowed, matching pdf_text_new().

Value

Invisibly returns the parent pdfium_doc.