Type alias TextContent

TextContent: {
    items: (TextItem | TextMarkedContent)[];
    styles: {
        [x: string]: TextStyle;
    };
}

Page text content.

Type declaration

  • items: (TextItem | TextMarkedContent)[]
    • Array of TextItem and TextMarkedContent objects. TextMarkedContent items are included when includeMarkedContent is true.
  • styles: {
        [x: string]: TextStyle;
    }
    • TextStyle objects, indexed by font name.
    • [x: string]: TextStyle