On this page

PreparedRender

linnet_py Class

PreparedRender()

One Typst render whose virtual project and generated entrypoint share a lifetime.

Member details

typst_source

Property · read-only
#
typst_source: str

Return the exact generated Typst entrypoint for this preparation.

render

Method
#
render(output: str | os.PathLike[str]) -> pathlib.Path

Compile this preparation to a PDF, SVG, or PNG selected by the suffix.

Parameters

NameTypeDefaultDescription
outputstr | os.PathLike[str]——

to_svg

Method
#
to_svg() -> str

Compile this preparation and return its one-page SVG document.