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)Reference
Section titled “Reference”renderHeadless(spineItem)
function locateResource(spineItem: SpineItemReference): Observable<{ doc: Document; release: () => void;} | undefined>Parameters
Section titled “Parameters”spineItem: A reference to a spine item (index, id, ...)
Returns
Section titled “Returns”Observable<{ doc: Document; release: () => void;} | undefined>An observable containing frame document or undefined