pdfSurfaceAddOutline
fn
int pdfSurfaceAddOutline(cairo.surface.Surface surface, int parentId, string utf8, string linkAttribs, cairo.types.PdfOutlineFlags flags)Add an item to the document outline hierarchy with the name utf8 that links to the location specified by link_attribs. Link attributes have the same keys and values as the [Link Tag][link], excluding the "rect" attribute. The item will be a child of the item with id parent_id. Use [cairo.types.PDF_OUTLINE_ROOT] as the parent id of top level items.
Parameters
surface | a PDF #cairo_surface_t |
parentId | the id of the parent item or [cairo.types.PDF_OUTLINE_ROOT] if this is a top level item. |
utf8 | the name of the outline |
linkAttribs | the link attributes specifying where this outline links to |
flags | outline item flags |
Returns
the id for the added item.