tag_begin#

Opens a tagged region, used to attach structure such as links and document outlines to PDF output.

$cr->tag_begin(‘Link’, “uri=’https://example.org’”); $cr->show_text(‘example’); $cr->tag_end(‘Link’);

$attributes is a single string of name=value pairs. Backends other than PDF ignore tags. Needs cairo 1.16 or newer; on an older library the call dies saying so. Wraps cairo_tag_begin.