Skip to content

class PdfAnnotWhatsitNode

  • supers: WhatsitNode

Example:

assert.node_type("whatsit", "pdf_annot", {
  id = "whatsit (8)",
  subtype = "pdf_annot (19)",
  fields = {
    "prev (-1)",
    "next (0)",
    "id (1)",
    "subtype (2)",
    "attr (3)",
    "width (4)",
    "depth (5)",
    "height (6)",
    "objnum (7)",
    "data (8)",
  },
})

😱 Types incomplete or incorrect? 🙏 Please contribute!


fields


PdfAnnotWhatsitNode.attr


PdfAnnotWhatsitNode.attr : Node {
    next: Node?,
    prev: Node?,
    id: integer,
    subtype: integer,
    head: Node?,
    attr: Node,
}

A list of attributes.

PdfAnnotWhatsitNode.width


PdfAnnotWhatsitNode.width : integer

the width (not used in calculations)

PdfAnnotWhatsitNode.height


PdfAnnotWhatsitNode.height : integer

the height (not used in calculations)

PdfAnnotWhatsitNode.depth


PdfAnnotWhatsitNode.depth : integer

the depth (not used in calculations)

PdfAnnotWhatsitNode.objnum


PdfAnnotWhatsitNode.objnum : integer

the referenced PDF object number

PdfAnnotWhatsitNode.data


PdfAnnotWhatsitNode.data : string

the annotation data