Colibrio Reader Framework API - Cloud license
    Preparing search index...

    An abstraction of the content in a IReaderDocument.

    interface IContentBlockTree {
        getContentBlockById(contentBlockId: number): IContentBlock;
        getContentBlocks(): IContentBlock[];
        getReaderDocument(): IReaderDocument;
        toSerializableData(
            options?: Partial<IContentBlockSerializationOptions>,
        ): IContentBlockData[];
    }

    Methods

    • Get a content block by id, previously retrieved using IContentBlock.getId() for a content block associated with this reader document.

      Using a contentBlockId from another reader document will produce undefined results.

      Parameters

      • contentBlockId: number

      Returns IContentBlock