Skip to content

class PdfLiteralWhatsitNode

  • supers: WhatsitNode

The higher the number, the less checking and the more you can run into trouble. Especially the raw variant can produce bad PDF so you can best check what you generate.

Example:

assert.node_type("whatsit", "pdf_literal", {
  id = "whatsit (8)",
  subtype = "pdf_literal (16)",
  fields = {
    "prev (-1)",
    "next (0)",
    "id (1)",
    "subtype (2)",
    "attr (3)",
    "mode (4)",
    "data (5)",
  },
})

Reference:

😱 Types incomplete or incorrect? πŸ™ Please contribute!


fields


PdfLiteralWhatsitNode.attr


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

A list of attributes.

PdfLiteralWhatsitNode.mode


PdfLiteralWhatsitNode.mode : PdfLiteralModes

the β€œmode” setting of this literal

PdfLiteralWhatsitNode.data


PdfLiteralWhatsitNode.data : string

the to be written information stored as Lua string

PdfLiteralWhatsitNode.token


PdfLiteralWhatsitNode.token : string

the to be written information stored as token list