Share an existing content mark with another page object
Source:R/obj_setters.R
pdf_obj_add_existing_mark.RdWraps FPDFPageObj_AddExistingMark: appends mark number
mark_index of src to obj's mark stack. Unlike
pdf_obj_add_mark(), which creates a fresh mark, the mark is
shared by reference: both objects hold the same mark, so a
parameter edited through either object (e.g. with
pdf_obj_mark_set_blob() or pdf_obj_mark_remove_param()) is
visible from both. When the page content is regenerated,
consecutive page objects that share a mark are written inside a
single marked-content sequence (one BDC ... EMC pair); this
is how to tag several objects as one logical span, e.g. one
structure element's MCID.
Arguments
- obj
A
pdfium_objfrompdf_page_objects(). Parent doc must be readwrite.- src
A
pdfium_objcarrying the mark, from the same document asobj(it may beobjitself or live on another page).- mark_index
One-based index of the mark within
src, as reported bypdf_obj_marks().