Skip to content

alias ProcessRuleCallback


(alias) ProcessRuleCallback = fun(node: Node, width: integer, height: integer)

This is an experimental callback. It can be used with rules of subtype 4 (user). The callback gets three arguments: the node, the width and the height. The callback can use pdf.print to write code to the PDF file but beware of not messing up the final result. No checking is done.

Reference:

😱 Types incomplete or incorrect? 🙏 Please contribute!