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 sameidas 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
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 ofoptions.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; seeProjectExportOptions.
The package does not export this type by name.
ExportOptions
Per-call options for the exporter’s methods.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”.