Revamp streaming PDF reader to render pages on demand (#2332)

Co-authored-by: acx10 <acx10@users.noreply.github.com>
This commit is contained in:
ACX
2026-01-18 22:38:19 -07:00
committed by GitHub
co-authored by acx10
parent d4cd6f52f4
commit a39043c2a0
37 changed files with 1266 additions and 413 deletions
@@ -52,17 +52,6 @@ export type PageSpread = 'off' | 'even' | 'odd';
export type BookFilterMode = 'and' | 'or' | 'single';
export type FilterSortingMode = 'alphabetical' | 'count';
export enum CbxBackgroundColor {
GRAY = 'GRAY',
BLACK = 'BLACK',
WHITE = 'WHITE'
}
export interface PdfReaderSetting {
pageSpread: PageSpread;
pageZoom: string;
showSidebar: boolean;
}
export enum CbxPageViewMode {
SINGLE_PAGE = 'SINGLE_PAGE',
@@ -74,14 +63,10 @@ export enum CbxPageSpread {
ODD = 'ODD',
}
export enum PdfPageViewMode {
SINGLE_PAGE = 'SINGLE_PAGE',
TWO_PAGE = 'TWO_PAGE',
}
export enum PdfPageSpread {
EVEN = 'EVEN',
ODD = 'ODD',
export enum CbxBackgroundColor {
GRAY = 'GRAY',
BLACK = 'BLACK',
WHITE = 'WHITE'
}
export enum CbxFitMode {
@@ -97,6 +82,49 @@ export enum CbxScrollMode {
INFINITE = 'INFINITE'
}
export interface PdfReaderSetting {
pageSpread: PageSpread;
pageZoom: string;
showSidebar: boolean;
}
export enum PdfPageViewMode {
SINGLE_PAGE = 'SINGLE_PAGE',
TWO_PAGE = 'TWO_PAGE',
}
export enum PdfPageSpread {
EVEN = 'EVEN',
ODD = 'ODD',
}
export enum PdfBackgroundColor {
GRAY = 'GRAY',
BLACK = 'BLACK',
WHITE = 'WHITE'
}
export enum PdfFitMode {
ACTUAL_SIZE = 'ACTUAL_SIZE',
FIT_PAGE = 'FIT_PAGE',
FIT_WIDTH = 'FIT_WIDTH',
FIT_HEIGHT = 'FIT_HEIGHT',
AUTO = 'AUTO'
}
export enum PdfScrollMode {
PAGINATED = 'PAGINATED',
INFINITE = 'INFINITE'
}
export interface NewPdfReaderSetting {
pageSpread: PdfPageSpread;
pageViewMode: PdfPageViewMode;
fitMode: PdfFitMode;
scrollMode?: PdfScrollMode;
backgroundColor?: PdfBackgroundColor;
}
export interface EbookReaderSetting {
lineHeight: number;
justify: boolean;
@@ -132,11 +160,6 @@ export interface CbxReaderSetting {
backgroundColor?: CbxBackgroundColor;
}
export interface NewPdfReaderSetting {
pageSpread: PdfPageSpread;
pageViewMode: PdfPageViewMode;
}
export interface TableColumnPreference {
field: string;
visible: boolean;