Imports PDF documents as SceneModels — strokes, filled regions,
image XObjects, and positioned text — suitable for displaying
plan / section sheets alongside (or instead of) the projected
drawings produced by the presentations/drawings system.
PDF parsing uses pdfjs-dist dynamically imported from a CDN on
first call and cached. The CDN URLs are configurable via
PDFLoadOptions.pdfjsEsmUrl /
PDFLoadOptions.pdfjsWorkerSrc for self-hosting / CSP /
version pinning; a pre-initialised pdf.js namespace can be
injected via PDFLoadOptions.pdfjs (essential for Node).
xeokit PDF Drawing Loader
Imports PDF documents as
SceneModels — strokes, filled regions, image XObjects, and positioned text — suitable for displaying plan / section sheets alongside (or instead of) the projected drawings produced by the presentations/drawings system.PDF parsing uses
pdfjs-distdynamically imported from a CDN on first call and cached. The CDN URLs are configurable via PDFLoadOptions.pdfjsEsmUrl / PDFLoadOptions.pdfjsWorkerSrc for self-hosting / CSP / version pinning; a pre-initialised pdf.js namespace can be injected via PDFLoadOptions.pdfjs (essential for Node).Usage
Self-hosting
Node hosts
Dynamic CDN imports don't work in Node without polyfills — pre-initialise pdf.js and pass it through:
See PDFLoadOptions for per-call tuning (scale, page list, page gap, line colour, bezier tessellation, fills, text, images).