discontinuedPackage jet_cad_floor_plan has been discontinued and replaced by jet_cad_2d_plan.

exportPageOf function

PageComponent? exportPageOf(
  1. DraftDocument document
)

The page document's root carries, or null when it has none (spec 13 D8: the flow then returns without effect). Read from the document, never from the screen: the export plots the page, at its scale.

Implementation

PageComponent? exportPageOf(DraftDocument document) =>
    document.components.isRegistered<PageComponent>()
        ? document.components.get<PageComponent>(document.rootHandle)
        : null;