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:
- Corresponding C source code: texnodes.c#L1148-L1151
π± 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
the βmodeβ setting of this literal
PdfLiteralWhatsitNode.data
the to be written information stored as Lua string
PdfLiteralWhatsitNode.token
the to be written information stored as token list