Skip to main content
Each sheet becomes one page with vector linework.

Import

Example

Notes

  • Without sheetIds, Floorkit exports all sheets.
  • With { session }, the export reads the model and the live build of the session. It does not build the model again. The project gives only the views and the sheets. Its building model must have the same id as the model of the session.
  • With { session }, the export draws every view at the call. A later step of the session does not change it.
  • Without a session, the export builds a temporary copy of the model of the project. Use this for a project file that has no open session.
  • The result is a Blob. Your app downloads it or uploads it.
  • If a sheet shows raster views, prepare the images first and pass them in rasterViews.
  • If Floorkit cannot draw a view, the promise rejects. You do not get a partial PDF.
  • A deployed site needs a valid hostname key, including a non-commercial demo. See Licensing.

Signature

Parameters

ProjectFile
required
string[]
ProjectExportOptions
Default: {}.

Returns

sheetsToPdf

Every sheet as one multi-page PDF, in document order.

preflightProjectSheet

Report one sheet’s native layout using the same project context as export: the live build of options.session, or one temporary build.

renderProjectSheetPreview

Render inline sheet markup using the existing session or a temporary build.

Types

ProjectExportOptions

PaperPreflightOptions

Options of a preflight: the export options, and the target whose text metrics are used.

PaperPreflightReport

Detached authored-layout report.

ProjectExportOutput

The options of a sheet export besides what it reads; see ProjectExportOptions. The package does not export this type by name.
RasterViewBatch
Prepared committed raster content for named isometric, section and elevation views.
ExportOptions['style']
Per-call paper style override.
ExportOptions['idPrefix']
string
Title-block auto fields; the project model’s name or id supplies the default name.
string
PaperRenderDeps['templates']
Custom templates and style presets for this export.
PaperRenderDeps['paperStyles']

ExportOptions

Per-call options for the exporter’s methods.
PaperStyleInput
Draw this export in a paper style — a builtin id ("ink-sketch"), a document-registered id, or an inline overlay — for this call only, without touching the document. Outranks the document’s, the sheet’s and the viewport’s own style; absent means “as the document says”.
string

PaperPreflightItem

One measured source of a sheet’s layout.
PaperPreflightSource
required
PlanVectorBounds
Conservative known layout bounds in paper mm, not exact glyph ink.
'complete' | 'partial'
required

PaperPreflightWarning

A possible overflow, a view title on a drawing or another title, or a gap in what a preflight could measure.

PaperPreflightSource

What a preflight item or warning is about: an annotation, a viewport part, a title-block element or the frame.
Last modified on November 30, 2026