Wraps FPDFPageObj_AddMark. Content marks tag the object for
downstream consumers (the structure tree, custom workflows).
Optional params are written via FPDFPageObjMark_SetIntParam
or _SetStringParam depending on each value's R type.
Usage
pdf_obj_add_mark(obj, name, params = list())Arguments
- obj
A
pdfium_objfrompdf_page_objects(). Parent doc must be readwrite.- name
Character scalar — the mark's name (e.g.
"Span","Artifact","MCID").- params
Optional named list of integer- or character-typed parameter values to attach to the mark. Numeric values are coerced to integer; character values are written as strings. Other types raise an error.