Skip to content

renderHeadless()

Render a specific spine item document headless. Spine items can have more than one document iframe rendered (PDF for example render an extra canvas to show the page) but the document that matters to you is the one containing the actual content.

const document$ = reader.renderHeadless(3)

renderHeadless(spineItem)

function locateResource(spineItem: SpineItemReference): Observable<{
doc: Document;
release: () => void;
} | undefined>
  • spineItem: A reference to a spine item (index, id, ...)
Observable<{
doc: Document;
release: () => void;
} | undefined>

An observable containing frame document or undefined