pdf_doc->drawText

Draws text in a PDF.

Target member

Signature

1pdf_doc->drawText(text::string, ...)

Draws text in a PDF.

pdf_doc->drawText is called with member syntax on a receiver value. pdf_doc->drawText works with structured document or media data. Keep parsing, transformation, and output steps separate enough that each step can be checked on its own.

Parameters

text
Required value of type string. Supply text positionally unless the signature shows a keyword form.
...
Additional values may be supplied after the earlier arguments.

Examples

Basic call

1pdf_doc->drawText('Hello', -x=20, -y=20)
The example shows the normal call shape. Adapt variable names, validation, and surrounding error handling to the context.