Header menu logo Nao

Document Module

Functions and values

Function or value Description

Document.toBlocks doc

Full Usage: Document.toBlocks doc

Parameters:
Returns: Block list

All top-level blocks of a document as a single stream, flattening pages (and their headers/footers) in order. Useful for fluid writers.

doc : Document
Returns: Block list

Document.tryResource id doc

Full Usage: Document.tryResource id doc

Parameters:
Returns: Resource option

Look up a resource by id.

id : ResourceId
doc : Document
Returns: Resource option

Type something to start searching.