set_node_id

Function set_node_id 

Source
pub fn set_node_id(canvas: &Canvas, node_id: i32)
Expand description

Associate a node ID with subsequent drawing commands in a Canvas.

The same node ID can appear in a StructureElementNode in order to associate a document’s structure element tree with its content.

A node ID of zero indicates no node ID. Negative node IDs are reserved.

  • canvas - The canvas used to draw to the PDF.
  • node_id - The node ID for subsequent drawing commands.