@dvvebond/core 0.2.12 → 0.2.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +249 -114
- package/dist/index.cjs +60708 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +21553 -0
- package/dist/index.d.mts +1 -581
- package/dist/index.mjs +2 -1081
- package/dist/index.mjs.map +1 -1
- package/dist/parsing-worker-host-CBKQ4mss.cjs +652 -0
- package/dist/parsing-worker-host-CBKQ4mss.cjs.map +1 -0
- package/dist/parsing-worker-host-DIPVulML.cjs +3 -0
- package/dist/react.cjs +49896 -0
- package/dist/react.cjs.map +1 -0
- package/dist/react.d.cts +11207 -0
- package/dist/react.d.mts +11207 -0
- package/dist/react.mjs +49855 -0
- package/dist/react.mjs.map +1 -0
- package/package.json +23 -8
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React$1 from "react";
|
|
2
1
|
import * as _google_cloud_kms0 from "@google-cloud/kms";
|
|
3
2
|
import * as _google_cloud_secret_manager0 from "@google-cloud/secret-manager";
|
|
4
3
|
import * as PDFJSLib from "pdfjs-dist";
|
|
@@ -21548,584 +21547,5 @@ declare function loadPDFFromUrl(url: string, options?: PDFResourceLoaderOptions)
|
|
|
21548
21547
|
*/
|
|
21549
21548
|
declare function loadPDFFromBytes(data: Uint8Array, options?: PDFResourceLoaderOptions): Promise<PDFLoadResult>;
|
|
21550
21549
|
//#endregion
|
|
21551
|
-
//#region src/react/ReactPDFViewer.d.ts
|
|
21552
|
-
/**
|
|
21553
|
-
* ReactPDFViewer component for rendering PDF documents in React applications.
|
|
21554
|
-
*
|
|
21555
|
-
* This component wraps the core PDF viewer infrastructure and provides a React-friendly
|
|
21556
|
-
* API with hooks for state management, search, and bounding box visualization.
|
|
21557
|
-
*
|
|
21558
|
-
* @example
|
|
21559
|
-
* Basic usage with URL:
|
|
21560
|
-
* ```tsx
|
|
21561
|
-
* <ReactPDFViewer url="/path/to/document.pdf" />
|
|
21562
|
-
* ```
|
|
21563
|
-
*
|
|
21564
|
-
* @example
|
|
21565
|
-
* With document instance:
|
|
21566
|
-
* ```tsx
|
|
21567
|
-
* const pdf = await PDF.load(bytes);
|
|
21568
|
-
* <ReactPDFViewer document={pdf} initialScale={1.5} />
|
|
21569
|
-
* ```
|
|
21570
|
-
*
|
|
21571
|
-
* @example
|
|
21572
|
-
* With ref for imperative control:
|
|
21573
|
-
* ```tsx
|
|
21574
|
-
* const viewerRef = useRef<ReactPDFViewerRef>(null);
|
|
21575
|
-
*
|
|
21576
|
-
* // Navigate programmatically
|
|
21577
|
-
* viewerRef.current?.goToPage(5);
|
|
21578
|
-
* viewerRef.current?.zoomIn();
|
|
21579
|
-
*
|
|
21580
|
-
* <ReactPDFViewer ref={viewerRef} url="/document.pdf" />
|
|
21581
|
-
* ```
|
|
21582
|
-
*/
|
|
21583
|
-
declare const ReactPDFViewer: any;
|
|
21584
|
-
/**
|
|
21585
|
-
* Convenience component for the page navigation bar.
|
|
21586
|
-
*/
|
|
21587
|
-
interface PageNavigationProps {
|
|
21588
|
-
/** Current page number (1-indexed) */
|
|
21589
|
-
currentPage: number;
|
|
21590
|
-
/** Total number of pages */
|
|
21591
|
-
pageCount: number;
|
|
21592
|
-
/** Callback when user requests a page change */
|
|
21593
|
-
onPageChange: (page: number) => void;
|
|
21594
|
-
/** CSS class name */
|
|
21595
|
-
className?: string;
|
|
21596
|
-
/** Inline styles */
|
|
21597
|
-
style?: React$1.CSSProperties;
|
|
21598
|
-
}
|
|
21599
|
-
declare function PageNavigation({
|
|
21600
|
-
currentPage,
|
|
21601
|
-
pageCount,
|
|
21602
|
-
onPageChange,
|
|
21603
|
-
className,
|
|
21604
|
-
style
|
|
21605
|
-
}: PageNavigationProps): any;
|
|
21606
|
-
/**
|
|
21607
|
-
* Convenience component for zoom controls.
|
|
21608
|
-
*/
|
|
21609
|
-
interface ZoomControlsProps {
|
|
21610
|
-
/** Current scale */
|
|
21611
|
-
scale: number;
|
|
21612
|
-
/** Minimum scale */
|
|
21613
|
-
minScale?: number;
|
|
21614
|
-
/** Maximum scale */
|
|
21615
|
-
maxScale?: number;
|
|
21616
|
-
/** Callback when scale changes */
|
|
21617
|
-
onScaleChange: (scale: number) => void;
|
|
21618
|
-
/** CSS class name */
|
|
21619
|
-
className?: string;
|
|
21620
|
-
/** Inline styles */
|
|
21621
|
-
style?: React$1.CSSProperties;
|
|
21622
|
-
}
|
|
21623
|
-
declare function ZoomControls({
|
|
21624
|
-
scale,
|
|
21625
|
-
minScale,
|
|
21626
|
-
maxScale,
|
|
21627
|
-
onScaleChange,
|
|
21628
|
-
className,
|
|
21629
|
-
style
|
|
21630
|
-
}: ZoomControlsProps): any;
|
|
21631
|
-
/**
|
|
21632
|
-
* Convenience component for search input.
|
|
21633
|
-
*/
|
|
21634
|
-
interface SearchInputProps {
|
|
21635
|
-
/** Search state */
|
|
21636
|
-
searchState: {
|
|
21637
|
-
query: string;
|
|
21638
|
-
results: Array<unknown>;
|
|
21639
|
-
currentIndex: number;
|
|
21640
|
-
isSearching: boolean;
|
|
21641
|
-
};
|
|
21642
|
-
/** Search actions */
|
|
21643
|
-
searchActions: {
|
|
21644
|
-
search: (query: string) => void;
|
|
21645
|
-
findNext: () => void;
|
|
21646
|
-
findPrevious: () => void;
|
|
21647
|
-
clearSearch: () => void;
|
|
21648
|
-
};
|
|
21649
|
-
/** CSS class name */
|
|
21650
|
-
className?: string;
|
|
21651
|
-
/** Inline styles */
|
|
21652
|
-
style?: React$1.CSSProperties;
|
|
21653
|
-
}
|
|
21654
|
-
declare function SearchInput({
|
|
21655
|
-
searchState,
|
|
21656
|
-
searchActions,
|
|
21657
|
-
className,
|
|
21658
|
-
style
|
|
21659
|
-
}: SearchInputProps): any;
|
|
21660
|
-
//#endregion
|
|
21661
|
-
//#region src/react/types.d.ts
|
|
21662
|
-
/**
|
|
21663
|
-
* Page render state for tracking individual page status.
|
|
21664
|
-
*/
|
|
21665
|
-
type PageRenderState = "idle" | "rendering" | "rendered" | "error";
|
|
21666
|
-
/**
|
|
21667
|
-
* Information about a rendered page.
|
|
21668
|
-
*/
|
|
21669
|
-
interface RenderedPage {
|
|
21670
|
-
/** Page index (0-based) */
|
|
21671
|
-
pageIndex: number;
|
|
21672
|
-
/** Current render state */
|
|
21673
|
-
state: PageRenderState;
|
|
21674
|
-
/** Rendered element (canvas or SVG) */
|
|
21675
|
-
element: HTMLElement | null;
|
|
21676
|
-
/** Error if rendering failed */
|
|
21677
|
-
error: Error | null;
|
|
21678
|
-
/** Viewport used for rendering */
|
|
21679
|
-
viewport: Viewport | null;
|
|
21680
|
-
}
|
|
21681
|
-
/**
|
|
21682
|
-
* Props for the ReactPDFViewer component.
|
|
21683
|
-
*/
|
|
21684
|
-
interface ReactPDFViewerProps {
|
|
21685
|
-
/**
|
|
21686
|
-
* The PDF document to display.
|
|
21687
|
-
* Can be null/undefined for initial empty state.
|
|
21688
|
-
*/
|
|
21689
|
-
document?: PDF | null;
|
|
21690
|
-
/**
|
|
21691
|
-
* PDF data as Uint8Array bytes.
|
|
21692
|
-
* Alternative to passing a PDF document directly.
|
|
21693
|
-
* If provided, the component will load the PDF internally.
|
|
21694
|
-
*/
|
|
21695
|
-
data?: Uint8Array;
|
|
21696
|
-
/**
|
|
21697
|
-
* URL to load the PDF from.
|
|
21698
|
-
* Alternative to passing document or data.
|
|
21699
|
-
*/
|
|
21700
|
-
url?: string;
|
|
21701
|
-
/**
|
|
21702
|
-
* Renderer type to use for rendering pages.
|
|
21703
|
-
* @default "canvas"
|
|
21704
|
-
*/
|
|
21705
|
-
renderer?: RendererType;
|
|
21706
|
-
/**
|
|
21707
|
-
* Initial scale factor for rendering.
|
|
21708
|
-
* @default 1
|
|
21709
|
-
*/
|
|
21710
|
-
initialScale?: number;
|
|
21711
|
-
/**
|
|
21712
|
-
* Initial page number (1-indexed).
|
|
21713
|
-
* @default 1
|
|
21714
|
-
*/
|
|
21715
|
-
initialPage?: number;
|
|
21716
|
-
/**
|
|
21717
|
-
* Initial rotation in degrees (0, 90, 180, 270).
|
|
21718
|
-
* @default 0
|
|
21719
|
-
*/
|
|
21720
|
-
initialRotation?: number;
|
|
21721
|
-
/**
|
|
21722
|
-
* Scroll mode for page navigation.
|
|
21723
|
-
* @default "vertical"
|
|
21724
|
-
*/
|
|
21725
|
-
scrollMode?: ScrollMode;
|
|
21726
|
-
/**
|
|
21727
|
-
* Spread mode for displaying pages.
|
|
21728
|
-
* @default "none"
|
|
21729
|
-
*/
|
|
21730
|
-
spreadMode?: SpreadMode;
|
|
21731
|
-
/**
|
|
21732
|
-
* Whether to enable text selection layer.
|
|
21733
|
-
* @default true
|
|
21734
|
-
*/
|
|
21735
|
-
enableTextLayer?: boolean;
|
|
21736
|
-
/**
|
|
21737
|
-
* Whether to enable annotation layer.
|
|
21738
|
-
* @default true
|
|
21739
|
-
*/
|
|
21740
|
-
enableAnnotationLayer?: boolean;
|
|
21741
|
-
/**
|
|
21742
|
-
* Maximum concurrent page renders.
|
|
21743
|
-
* @default 4
|
|
21744
|
-
*/
|
|
21745
|
-
maxConcurrentRenders?: number;
|
|
21746
|
-
/**
|
|
21747
|
-
* Number of pages to cache.
|
|
21748
|
-
* @default 10
|
|
21749
|
-
*/
|
|
21750
|
-
cacheSize?: number;
|
|
21751
|
-
/**
|
|
21752
|
-
* CSS class name for the container element.
|
|
21753
|
-
*/
|
|
21754
|
-
className?: string;
|
|
21755
|
-
/**
|
|
21756
|
-
* Inline styles for the container element.
|
|
21757
|
-
*/
|
|
21758
|
-
style?: React$1.CSSProperties;
|
|
21759
|
-
/**
|
|
21760
|
-
* Callback when a page is rendered.
|
|
21761
|
-
*/
|
|
21762
|
-
onPageRender?: (pageIndex: number, result: RenderResult) => void;
|
|
21763
|
-
/**
|
|
21764
|
-
* Callback when page rendering fails.
|
|
21765
|
-
*/
|
|
21766
|
-
onPageError?: (pageIndex: number, error: Error) => void;
|
|
21767
|
-
/**
|
|
21768
|
-
* Callback when the current page changes.
|
|
21769
|
-
*/
|
|
21770
|
-
onPageChange?: (pageNumber: number) => void;
|
|
21771
|
-
/**
|
|
21772
|
-
* Callback when the scale changes.
|
|
21773
|
-
*/
|
|
21774
|
-
onScaleChange?: (scale: number) => void;
|
|
21775
|
-
/**
|
|
21776
|
-
* Callback when the document is loaded.
|
|
21777
|
-
*/
|
|
21778
|
-
onDocumentLoad?: (pdf: PDF) => void;
|
|
21779
|
-
/**
|
|
21780
|
-
* Callback when document loading fails.
|
|
21781
|
-
*/
|
|
21782
|
-
onDocumentError?: (error: Error) => void;
|
|
21783
|
-
/**
|
|
21784
|
-
* Children to render inside the viewer (e.g., overlays).
|
|
21785
|
-
*/
|
|
21786
|
-
children?: React$1.ReactNode;
|
|
21787
|
-
}
|
|
21788
|
-
/**
|
|
21789
|
-
* State for the PDF viewer.
|
|
21790
|
-
*/
|
|
21791
|
-
interface PDFViewerState {
|
|
21792
|
-
/** Whether the viewer is initialized */
|
|
21793
|
-
initialized: boolean;
|
|
21794
|
-
/** Whether a document is currently loading */
|
|
21795
|
-
loading: boolean;
|
|
21796
|
-
/** The loaded PDF document */
|
|
21797
|
-
document: PDF | null;
|
|
21798
|
-
/** Current page number (1-indexed) */
|
|
21799
|
-
currentPage: number;
|
|
21800
|
-
/** Total number of pages */
|
|
21801
|
-
pageCount: number;
|
|
21802
|
-
/** Current scale factor */
|
|
21803
|
-
scale: number;
|
|
21804
|
-
/** Current rotation in degrees */
|
|
21805
|
-
rotation: number;
|
|
21806
|
-
/** Loading/error state */
|
|
21807
|
-
error: Error | null;
|
|
21808
|
-
/** Map of page states by page index */
|
|
21809
|
-
pageStates: Map<number, RenderedPage>;
|
|
21810
|
-
}
|
|
21811
|
-
/**
|
|
21812
|
-
* Actions for the PDF viewer state reducer.
|
|
21813
|
-
*/
|
|
21814
|
-
type PDFViewerAction = {
|
|
21815
|
-
type: "SET_LOADING";
|
|
21816
|
-
loading: boolean;
|
|
21817
|
-
} | {
|
|
21818
|
-
type: "SET_DOCUMENT";
|
|
21819
|
-
document: PDF | null;
|
|
21820
|
-
} | {
|
|
21821
|
-
type: "SET_ERROR";
|
|
21822
|
-
error: Error | null;
|
|
21823
|
-
} | {
|
|
21824
|
-
type: "SET_INITIALIZED";
|
|
21825
|
-
initialized: boolean;
|
|
21826
|
-
} | {
|
|
21827
|
-
type: "SET_CURRENT_PAGE";
|
|
21828
|
-
page: number;
|
|
21829
|
-
} | {
|
|
21830
|
-
type: "SET_SCALE";
|
|
21831
|
-
scale: number;
|
|
21832
|
-
} | {
|
|
21833
|
-
type: "SET_ROTATION";
|
|
21834
|
-
rotation: number;
|
|
21835
|
-
} | {
|
|
21836
|
-
type: "SET_PAGE_STATE";
|
|
21837
|
-
pageIndex: number;
|
|
21838
|
-
state: RenderedPage;
|
|
21839
|
-
} | {
|
|
21840
|
-
type: "CLEAR_PAGE_STATES";
|
|
21841
|
-
};
|
|
21842
|
-
/**
|
|
21843
|
-
* Props for search functionality.
|
|
21844
|
-
*/
|
|
21845
|
-
interface SearchProps {
|
|
21846
|
-
/**
|
|
21847
|
-
* Enable search functionality.
|
|
21848
|
-
* @default true
|
|
21849
|
-
*/
|
|
21850
|
-
enabled?: boolean;
|
|
21851
|
-
/**
|
|
21852
|
-
* Initial search query.
|
|
21853
|
-
*/
|
|
21854
|
-
initialQuery?: string;
|
|
21855
|
-
/**
|
|
21856
|
-
* Initial search options.
|
|
21857
|
-
*/
|
|
21858
|
-
initialOptions?: SearchOptions;
|
|
21859
|
-
/**
|
|
21860
|
-
* Callback when search results change.
|
|
21861
|
-
*/
|
|
21862
|
-
onSearchResults?: (results: SearchResult[]) => void;
|
|
21863
|
-
/**
|
|
21864
|
-
* Callback when current search result changes.
|
|
21865
|
-
*/
|
|
21866
|
-
onCurrentResultChange?: (result: SearchResult | null, index: number) => void;
|
|
21867
|
-
/**
|
|
21868
|
-
* Callback when search state changes.
|
|
21869
|
-
*/
|
|
21870
|
-
onSearchStateChange?: (state: SearchState) => void;
|
|
21871
|
-
}
|
|
21872
|
-
/**
|
|
21873
|
-
* State for search functionality.
|
|
21874
|
-
*/
|
|
21875
|
-
interface SearchStateHook {
|
|
21876
|
-
/** Current search query */
|
|
21877
|
-
query: string;
|
|
21878
|
-
/** Current search options */
|
|
21879
|
-
options: SearchOptions;
|
|
21880
|
-
/** All search results */
|
|
21881
|
-
results: SearchResult[];
|
|
21882
|
-
/** Current result index (-1 if none) */
|
|
21883
|
-
currentIndex: number;
|
|
21884
|
-
/** Whether a search is in progress */
|
|
21885
|
-
isSearching: boolean;
|
|
21886
|
-
/** Current result or null */
|
|
21887
|
-
currentResult: SearchResult | null;
|
|
21888
|
-
/** Total number of results */
|
|
21889
|
-
resultCount: number;
|
|
21890
|
-
/** Search error if any */
|
|
21891
|
-
error: string | null;
|
|
21892
|
-
}
|
|
21893
|
-
/**
|
|
21894
|
-
* Search actions returned by the search hook.
|
|
21895
|
-
*/
|
|
21896
|
-
interface SearchActions {
|
|
21897
|
-
/** Execute a search */
|
|
21898
|
-
search: (query: string, options?: SearchOptions) => Promise<SearchResult[]>;
|
|
21899
|
-
/** Navigate to next result */
|
|
21900
|
-
findNext: () => SearchResult | null;
|
|
21901
|
-
/** Navigate to previous result */
|
|
21902
|
-
findPrevious: () => SearchResult | null;
|
|
21903
|
-
/** Go to a specific result by index */
|
|
21904
|
-
goToResult: (index: number) => SearchResult | null;
|
|
21905
|
-
/** Clear the current search */
|
|
21906
|
-
clearSearch: () => void;
|
|
21907
|
-
/** Cancel an in-progress search */
|
|
21908
|
-
cancelSearch: () => void;
|
|
21909
|
-
}
|
|
21910
|
-
/**
|
|
21911
|
-
* Props for bounding box overlay functionality.
|
|
21912
|
-
*/
|
|
21913
|
-
interface BoundingBoxProps {
|
|
21914
|
-
/**
|
|
21915
|
-
* Enable bounding box visualization.
|
|
21916
|
-
* @default false
|
|
21917
|
-
*/
|
|
21918
|
-
enabled?: boolean;
|
|
21919
|
-
/**
|
|
21920
|
-
* Initial visibility settings for bounding box types.
|
|
21921
|
-
*/
|
|
21922
|
-
initialVisibility?: Partial<BoundingBoxVisibility>;
|
|
21923
|
-
/**
|
|
21924
|
-
* Callback when visibility changes.
|
|
21925
|
-
*/
|
|
21926
|
-
onVisibilityChange?: (visibility: BoundingBoxVisibility) => void;
|
|
21927
|
-
/**
|
|
21928
|
-
* Callback when a bounding box is clicked.
|
|
21929
|
-
*/
|
|
21930
|
-
onBoxClick?: (box: OverlayBoundingBox, pageIndex: number) => void;
|
|
21931
|
-
/**
|
|
21932
|
-
* Callback when a bounding box is hovered.
|
|
21933
|
-
*/
|
|
21934
|
-
onBoxHover?: (box: OverlayBoundingBox | null, pageIndex: number) => void;
|
|
21935
|
-
}
|
|
21936
|
-
/**
|
|
21937
|
-
* State for bounding box functionality.
|
|
21938
|
-
*/
|
|
21939
|
-
interface BoundingBoxStateHook {
|
|
21940
|
-
/** Current visibility settings */
|
|
21941
|
-
visibility: BoundingBoxVisibility;
|
|
21942
|
-
/** Bounding boxes by page index */
|
|
21943
|
-
boxes: Map<number, OverlayBoundingBox[]>;
|
|
21944
|
-
}
|
|
21945
|
-
/**
|
|
21946
|
-
* Bounding box actions returned by the hook.
|
|
21947
|
-
*/
|
|
21948
|
-
interface BoundingBoxActions {
|
|
21949
|
-
/** Set visibility for a specific type */
|
|
21950
|
-
setVisibility: (type: BoundingBoxType, visible: boolean) => void;
|
|
21951
|
-
/** Toggle visibility for a specific type */
|
|
21952
|
-
toggleVisibility: (type: BoundingBoxType) => void;
|
|
21953
|
-
/** Set all visibility settings */
|
|
21954
|
-
setAllVisibility: (visibility: Partial<BoundingBoxVisibility>) => void;
|
|
21955
|
-
/** Set bounding boxes for a page */
|
|
21956
|
-
setBoundingBoxes: (pageIndex: number, boxes: OverlayBoundingBox[]) => void;
|
|
21957
|
-
/** Clear bounding boxes for a page */
|
|
21958
|
-
clearBoundingBoxes: (pageIndex: number) => void;
|
|
21959
|
-
/** Clear all bounding boxes */
|
|
21960
|
-
clearAllBoundingBoxes: () => void;
|
|
21961
|
-
}
|
|
21962
|
-
/**
|
|
21963
|
-
* Ref handle for imperative control of the viewer.
|
|
21964
|
-
*/
|
|
21965
|
-
interface ReactPDFViewerRef {
|
|
21966
|
-
/** Go to a specific page (1-indexed) */
|
|
21967
|
-
goToPage: (pageNumber: number) => void;
|
|
21968
|
-
/** Go to next page */
|
|
21969
|
-
nextPage: () => void;
|
|
21970
|
-
/** Go to previous page */
|
|
21971
|
-
previousPage: () => void;
|
|
21972
|
-
/** Set the scale */
|
|
21973
|
-
setScale: (scale: number) => void;
|
|
21974
|
-
/** Zoom in by a factor */
|
|
21975
|
-
zoomIn: (factor?: number) => void;
|
|
21976
|
-
/** Zoom out by a factor */
|
|
21977
|
-
zoomOut: (factor?: number) => void;
|
|
21978
|
-
/** Set the rotation */
|
|
21979
|
-
setRotation: (rotation: number) => void;
|
|
21980
|
-
/** Rotate by 90 degrees clockwise */
|
|
21981
|
-
rotateClockwise: () => void;
|
|
21982
|
-
/** Rotate by 90 degrees counter-clockwise */
|
|
21983
|
-
rotateCounterClockwise: () => void;
|
|
21984
|
-
/** Force re-render of visible pages */
|
|
21985
|
-
refresh: () => void;
|
|
21986
|
-
/** Get the current viewer state */
|
|
21987
|
-
getState: () => PDFViewerState;
|
|
21988
|
-
/** Access search functionality */
|
|
21989
|
-
search: SearchActions;
|
|
21990
|
-
/** Access bounding box functionality */
|
|
21991
|
-
boundingBox: BoundingBoxActions;
|
|
21992
|
-
}
|
|
21993
|
-
/**
|
|
21994
|
-
* Event types emitted by the React viewer.
|
|
21995
|
-
*/
|
|
21996
|
-
type ReactPDFViewerEventType = "pageChange" | "scaleChange" | "rotationChange" | "documentLoad" | "documentError" | "pageRenderStart" | "pageRenderComplete" | "pageRenderError" | SearchEventType;
|
|
21997
|
-
/**
|
|
21998
|
-
* Event data for React viewer events.
|
|
21999
|
-
*/
|
|
22000
|
-
interface ReactPDFViewerEvent {
|
|
22001
|
-
type: ReactPDFViewerEventType;
|
|
22002
|
-
pageNumber?: number;
|
|
22003
|
-
pageIndex?: number;
|
|
22004
|
-
scale?: number;
|
|
22005
|
-
rotation?: number;
|
|
22006
|
-
document?: PDF;
|
|
22007
|
-
error?: Error;
|
|
22008
|
-
result?: RenderResult;
|
|
22009
|
-
searchResults?: SearchResult[];
|
|
22010
|
-
searchState?: SearchState;
|
|
22011
|
-
}
|
|
22012
|
-
//#endregion
|
|
22013
|
-
//#region src/react/hooks.d.ts
|
|
22014
|
-
/**
|
|
22015
|
-
* Hook for managing PDF viewer state.
|
|
22016
|
-
*
|
|
22017
|
-
* Handles document loading, page navigation, scale, and rotation.
|
|
22018
|
-
*
|
|
22019
|
-
* @example
|
|
22020
|
-
* ```tsx
|
|
22021
|
-
* const {
|
|
22022
|
-
* state,
|
|
22023
|
-
* loadDocument,
|
|
22024
|
-
* goToPage,
|
|
22025
|
-
* setScale,
|
|
22026
|
-
* setRotation,
|
|
22027
|
-
* viewer,
|
|
22028
|
-
* } = usePDFViewer({
|
|
22029
|
-
* initialScale: 1.5,
|
|
22030
|
-
* onDocumentLoad: (pdf) => console.log('Loaded:', pdf.getPageCount(), 'pages'),
|
|
22031
|
-
* });
|
|
22032
|
-
* ```
|
|
22033
|
-
*/
|
|
22034
|
-
declare function usePDFViewer(options?: {
|
|
22035
|
-
document?: PDF | null;
|
|
22036
|
-
data?: Uint8Array;
|
|
22037
|
-
url?: string;
|
|
22038
|
-
initialScale?: number;
|
|
22039
|
-
initialPage?: number;
|
|
22040
|
-
initialRotation?: number;
|
|
22041
|
-
viewerOptions?: PDFViewerOptions;
|
|
22042
|
-
onDocumentLoad?: (pdf: PDF) => void;
|
|
22043
|
-
onDocumentError?: (error: Error) => void;
|
|
22044
|
-
onPageChange?: (pageNumber: number) => void;
|
|
22045
|
-
onScaleChange?: (scale: number) => void;
|
|
22046
|
-
}): {
|
|
22047
|
-
state: any;
|
|
22048
|
-
viewer: any;
|
|
22049
|
-
goToPage: any;
|
|
22050
|
-
nextPage: any;
|
|
22051
|
-
previousPage: any;
|
|
22052
|
-
setScale: any;
|
|
22053
|
-
zoomIn: any;
|
|
22054
|
-
zoomOut: any;
|
|
22055
|
-
setRotation: any;
|
|
22056
|
-
rotateClockwise: any;
|
|
22057
|
-
rotateCounterClockwise: any;
|
|
22058
|
-
setPageState: any;
|
|
22059
|
-
refresh: any;
|
|
22060
|
-
};
|
|
22061
|
-
/**
|
|
22062
|
-
* Hook for PDF search functionality.
|
|
22063
|
-
*
|
|
22064
|
-
* Provides search state and actions for searching text within a PDF document.
|
|
22065
|
-
*
|
|
22066
|
-
* @example
|
|
22067
|
-
* ```tsx
|
|
22068
|
-
* const { state, actions } = usePDFSearch({
|
|
22069
|
-
* document: pdf,
|
|
22070
|
-
* onSearchResults: (results) => console.log('Found:', results.length),
|
|
22071
|
-
* });
|
|
22072
|
-
*
|
|
22073
|
-
* // Execute search
|
|
22074
|
-
* actions.search('hello world', { caseSensitive: false });
|
|
22075
|
-
*
|
|
22076
|
-
* // Navigate results
|
|
22077
|
-
* actions.findNext();
|
|
22078
|
-
* actions.findPrevious();
|
|
22079
|
-
* ```
|
|
22080
|
-
*/
|
|
22081
|
-
declare function usePDFSearch(options: {
|
|
22082
|
-
document: PDF | null;
|
|
22083
|
-
enabled?: boolean;
|
|
22084
|
-
onSearchResults?: (results: SearchResult[]) => void;
|
|
22085
|
-
onCurrentResultChange?: (result: SearchResult | null, index: number) => void;
|
|
22086
|
-
onSearchStateChange?: (state: SearchState) => void;
|
|
22087
|
-
}): {
|
|
22088
|
-
state: SearchStateHook;
|
|
22089
|
-
actions: SearchActions;
|
|
22090
|
-
};
|
|
22091
|
-
/**
|
|
22092
|
-
* Hook for bounding box visualization.
|
|
22093
|
-
*
|
|
22094
|
-
* Manages visibility and state for bounding box overlays.
|
|
22095
|
-
*
|
|
22096
|
-
* @example
|
|
22097
|
-
* ```tsx
|
|
22098
|
-
* const { state, actions, overlay } = useBoundingBoxOverlay({
|
|
22099
|
-
* initialVisibility: { character: true, word: true },
|
|
22100
|
-
* });
|
|
22101
|
-
*
|
|
22102
|
-
* // Set boxes for a page
|
|
22103
|
-
* actions.setBoundingBoxes(0, characterBoxes);
|
|
22104
|
-
*
|
|
22105
|
-
* // Toggle visibility
|
|
22106
|
-
* actions.toggleVisibility('word');
|
|
22107
|
-
* ```
|
|
22108
|
-
*/
|
|
22109
|
-
declare function useBoundingBoxOverlay(options: {
|
|
22110
|
-
enabled?: boolean;
|
|
22111
|
-
initialVisibility?: Partial<BoundingBoxVisibility>;
|
|
22112
|
-
overlayOptions?: BoundingBoxOverlayOptions;
|
|
22113
|
-
onVisibilityChange?: (visibility: BoundingBoxVisibility) => void;
|
|
22114
|
-
}): {
|
|
22115
|
-
state: BoundingBoxStateHook;
|
|
22116
|
-
actions: BoundingBoxActions;
|
|
22117
|
-
overlay: BoundingBoxOverlay | null;
|
|
22118
|
-
};
|
|
22119
|
-
/**
|
|
22120
|
-
* Hook for viewport management.
|
|
22121
|
-
*
|
|
22122
|
-
* Tracks viewport dimensions and provides utilities for coordinate transformation.
|
|
22123
|
-
*/
|
|
22124
|
-
declare function useViewport(containerRef: React.RefObject<HTMLElement>): any;
|
|
22125
|
-
/**
|
|
22126
|
-
* Hook for scroll position tracking.
|
|
22127
|
-
*/
|
|
22128
|
-
declare function useScrollPosition(containerRef: React.RefObject<HTMLElement>): any;
|
|
22129
|
-
//#endregion
|
|
22130
|
-
export { AnnotationFlags, type AnnotationSubtype, type AuthConfig, AuthHandler, AuthenticationError as AuthHandlerAuthenticationError, type AuthHandlerOptions, type AuthRefreshCallback, type AuthenticatedResponse, type AuthenticationResult, type AxialCoords, type AxialShadingOptions, type BBox, type BaseRenderer, type BaseSearchEvent, type BlendMode, type BorderStyle, type BorderStyleType, type BoundingBox, type BoundingBoxActions, type BoundingBoxColors, BoundingBoxControls, type BoundingBoxControlsEvent, type BoundingBoxControlsEventListener, type BoundingBoxControlsEventType, type BoundingBoxControlsOptions, BoundingBoxOverlay, type BoundingBoxOverlayEvent, type BoundingBoxOverlayEventListener, type BoundingBoxOverlayEventType, type BoundingBoxOverlayOptions, type BoundingBoxProps, type BoundingBoxStateHook, type BoundingBoxToggleConfig, type BoundingBoxType, type BoundingBoxVisibility, BundledCMapProvider, type ButtonField, type CIDMapping, type CIDRangeMapping, type CIDSystemInfo, CJKCMapLoader, type CJKScript, type CMYK, CMap, type CMapDataProvider, CMapLoadError, type CMapLoadOptions, type CMapOptions, CMapRegistry, type CMapRegistryEntry, type CMapRegistryOptions, type CMapRegistryStats, type CMapType, type CancellableOperation, type CancellableParseOperation, CanvasRenderer, type CanvasRendererOptions, type CaretAnnotationOptions, type CaretSymbol, CertificateChainError, type Character, type CharacterBBox, type CharacterMapping, type CharacterRangeMapping, type CheckboxField, type CheckboxOptions, type CheckboxSymbol, type CircleAnnotationOptions, type CodespaceRange, type Color, ColorSpace, type ColorStop, type ContainerInfo, type ContentAnalysisResult, type ContentStats, ContentStreamProcessor, ContentType, CoordinateTransformer, type CoordinateTransformerOptions, type CopyPagesOptions, CryptoKeySigner, DEFAULT_BOUNDING_BOX_BORDER_COLORS, DEFAULT_BOUNDING_BOX_COLORS, DEFAULT_PARSING_TIMEOUTS, DEFAULT_PROGRESS_INTERVAL, DEFAULT_TOGGLE_CONFIGS, type DecodeResult, type Deferred, type Degrees, type DestinationType, type DifferenceEntry, type DigestAlgorithm, type DocumentMetadata, DocumentParser, type DocumentText, type DocumentTypeInfo, type DrawCircleOptions, type DrawEllipseOptions, type DrawFieldOptions, type DrawImageOptions, type DrawLineOptions, type DrawPageOptions, type DrawRectangleOptions, type DrawSvgPathOptions, type DrawTextOptions, type DropdownField, type DropdownOptions, type EmbedFontOptions, type EmbeddedFont, type EncryptionAlgorithmOption, type ExtGStateOptions, type ExtractOptions, type ExtractPagesOptions, type ExtractTextOptions, type ExtractTextResult, type ExtractedChar, type ExtractedPageText, type ExtractionOptions, type FieldOptions, type FieldType, type FieldValue, type FileAttachmentIcon, FileReadError, type FindTextOptions, type FlattenAllOptions, type FlattenAllResult, type FlattenAnnotationsOptions, type FlattenLayersResult, type FlattenOptions, type FontAnalysis, type FontChange, type FontInput, FontManager, type FontMetrics, type FontStyle, type FormField, type FormProperties, type FormXObjectOptions, type FreeTextAnnotationOptions, type FreeTextJustification, GoogleKmsSigner, type GraphicsOperator, type GraphicsState, type GraphicsStateChange, type Grayscale, HierarchicalTextExtractor, type HierarchicalTextExtractorOptions, type HighlightMode, HttpError, HttpTimestampAuthority, type HttpTimestampAuthorityOptions, type ICMap, type ImageAnalysis, type ImagePatternOptions, type InkAnnotationOptions, InvalidFileTypeError, type KeyType, KmsSignerError, type LayerInfo, type LayoutResult, LegacyCMapSupport, type LegacyEncodingOptions, type LegacyEncodingType, type Line, type LineAnnotationOptions, type LineCap, type LineEndingStyle, type LineGrouperOptions, type LineJoin, type LinearGradientOptions, type LinkAction, type LinkAnnotationOptions, type LinkDestination, type ListBoxField, type ListboxOptions, type LoadOptions, type LoadResourceOptions, type LoadResourceResult, type LoadedDocument, type LoadedFont, MAX_ZOOM, MIN_ZOOM, type ManagedPage, Matrix, type MergeOptions, type MessageId, type MouseCoordinateOptions, type MousePdfCoordinateResult, NetworkError, ObjectParseError, type OverlayBoundingBox, type OverlayConfig, type OverlayEvent, type OverlayEventListener, type OverlayEventType, OverlayManager, type OverlayManagerOptions, type OverlayType, P12Signer, type PAdESLevel, PDF, PDFAnnotation, type AuthConfig$1 as PDFAuthConfig, PDFCaretAnnotation, PDFCircleAnnotation, type PDFDocumentProxy, PDFEmbeddedPage, type PDFExtGState, PDFFileAttachmentAnnotation, PDFForm, type PDFFormXObject, PDFFreeTextAnnotation, PDFHighlightAnnotation, PDFImage, PDFInkAnnotation, type LoadDocumentOptions as PDFJSLoadDocumentOptions, PDFJSRenderer, type PDFJSRendererOptions, PDFJSSearchEngine, type PDFJSSearchOptions, type PDFJSSearchResult, type PDFJSSearchState, type TextContent as PDFJSTextContent, type TextItem as PDFJSTextItem, PDFJSTextLayerBuilder, type PDFJSTextLayerOptions, type PDFJSTextLayerResult, type TextMarkedContent as PDFJSTextMarkedContent, type PDFJSWrapperOptions, PDFLineAnnotation, PDFLinkAnnotation, PDFLoadError, type PDFLoadResult, PDFMarkupAnnotation, PDFPage, type PDFPageProxy, type PDFPattern, PDFPolygonAnnotation, PDFPolylineAnnotation, PDFPopupAnnotation, type ProgressCallback as PDFProgressCallback, PDFResourceLoader, type PDFResourceLoaderOptions, type PDFShading, type PDFShadingPattern, type PDFSource, PDFSquareAnnotation, PDFSquigglyAnnotation, PDFStampAnnotation, PDFStrikeOutAnnotation, PDFTextAnnotation, PDFTextMarkupAnnotation, type PDFTilingPattern, PDFUnderlineAnnotation, PDFUnknownAnnotation, PDFViewer, type PDFViewerEvent, type PDFViewerEventListener, type PDFViewerEventType, type PDFViewerOptions, PDFWorker, type PDFWorkerOptions, PREDEFINED_CMAPS, type PageAnalysisInput, type PageContainerTransformerOptions, type PageDimensions, type PageLayout, PageNavigation, type PageNavigationProps, type PageRenderState, type PageSource, type PageState, type PageText, type PageTypeInfo, type PageViewport, type Paragraph, type ParseOptions, type ParseResult, type ParsedDocument, type ParsedDocumentInfo, type DocumentMetadata$1 as ParsingDocumentMetadata, type ParsingErrorCode, type ParsingPhase, type ParsingProgress, type ParsingProgressCallback, type ParsingWorkerCreationOptions, type ParsingWorkerError, ParsingWorkerHost, type ParsingWorkerHostOptions, type ParseOptions$1 as ParsingWorkerParseOptions, type ParsingWorkerState, type PartialUIState, PathBuilder, type PathOptions, type PatternMatrix, PdfArray, PdfBool, type PdfBoundingBox, PdfDict, PdfName, PdfNull, PdfNumber, type PdfObject, PdfRef, PdfStream, PdfString, PdfType, type PdfTypeDetectionResult, PdfTypeDetector, type PdfTypeDetectorOptions, type PemBlock, PermissionDeniedError, type PermissionOptions, type Permissions, PlaceholderError, type Point, type Point2D, type PolygonAnnotationOptions, type PolylineAnnotationOptions, type PopupOptions, type PositionedWord, type PredefinedCMapInfo, type ProgressMessage, ProgressTracker, type ProgressTrackerOptions, type ProtectionOptions, type ProxyLoadOptions, type ProxySaveOptions, type RGB, type RadialCoords, type RadialShadingOptions, type RadioField, type RadioGroupOptions, type RadioSymbol, type RawExtractionResult, ReactPDFViewer, type PDFViewerAction as ReactPDFViewerAction, type ReactPDFViewerEvent, type ReactPDFViewerEventType, type ReactPDFViewerProps, type ReactPDFViewerRef, type PDFViewerState as ReactPDFViewerState, RecoverableParseError, type Rect, type Rect2D, type Rectangle, type RemoveAnnotationsOptions, type RenderOptionsWithTypeDetection, type RenderResult, type RenderTask, type RenderedPage, type RendererFactory, type RendererOptions, type RendererType, RenderingPipeline, type RenderingPipelineOptions, type RenderingStrategy, type ResourceInput, ResourceLoader, AuthenticationError$1 as ResourceLoaderAuthenticationError, ResourceLoaderError, type ResultChangeEvent, RetryExhaustedError, RetryLogic, type RetryOptions, RetryPresets, type RetryResult, RevocationError, type RevocationProvider, type Rotation, type RotationAngle, type RotationOrigin, type RotationOriginName, type RuntimeEnvironment, STANDARD_STAMPS, type GraphicsState$1 as SVGGraphicsState, LineCap$1 as SVGLineCap, LineJoin$1 as SVGLineJoin, SVGRenderer, type SVGRendererOptions, TextRenderMode as SVGTextRenderMode, type TextState as SVGTextState, type SaveOptions, type ScreenBoundingBox, type ScrollMode, type ScrollPosition, type SearchActions, type SearchCompleteEvent, SearchEngine, type SearchEngineOptions, type SearchErrorEvent, type SearchEvent, type SearchEventListener, type SearchEventType, type SearchHistoryEntry, SearchInput, type SearchInputProps, type SearchOptions, type SearchProgressEvent, type SearchProps, type SearchResult, type SearchStartEvent, type SearchState, type SearchStateHook, SearchStateManager, type SearchStateManagerOptions, type SearchStatus, SecurityError, type SecurityInfo, type SetTitleOptions, type ShadingPatternOptions, type SignOptions, type SignResult, type SignWarning, type SignatureAlgorithm, SignatureError, type SignatureField, type SignatureFieldOptions, type Signer, SignerError, type SpreadMode, type SquareAnnotationOptions, type StampAnnotationOptions, type StampName, Standard14Font, type Standard14FontName, StandardFonts, type StateChangeEvent, StreamDecodeError, StructureError, type SubFilter, type TaskId, type TextAlignment, type TextAnnotationIcon, type TextAnnotationOptions, type TextAnnotationState, type TextAnnotationStateModel, type TextArrayElement, TextContentStreamParser, TextExtractor, type TextExtractorOptions, type TextField, type TextFieldOptions, type TextItem$1 as TextItem, TextLayerBuilder, type TextLayerBuilderOptions, type TextLayerResult, type TextLine, type TextMarkupAnnotationOptions, type TextMatch, type TextMatrixSet, type TextObjectBoundary, type TextOperation, type TextPage, type TextParams, type TextParseResult, TextPositionCalculator, type TextPositionChange, type TextPositionOperator, type TextProvider, type TextShow, type TextShowItem, type TextShowOperator, type TextSpan, TextState$1 as TextState, type TextStateChange, type TextStateOperator, type TilingPatternOptions, type TimestampAuthority, TimestampError, type TokenProvider, type ToolbarButtonId, ToolbarController, type ToolbarControllerOptions, type ToolbarEvent, type ToolbarEventListener, type ToolbarEventType, type TrappedStatus, type TypeAwareRenderer, type UIState, type UIStateEvent, type UIStateEventListener, type UIStateEventType, UIStateManager, type UIStateManagerOptions, UnrecoverableParseError, type UrlRefreshCallback, type Viewport, ViewportAwareBoundingBoxOverlay, type ViewportAwareBoundingBoxOverlayOptions, type ViewportBounds, ViewportManager, type ViewportManagerEvent, type ViewportManagerEventListener, type ViewportManagerEventType, type ViewportManagerOptions, type ViewportOverlayEvent, type ViewportOverlayEventListener, type ViewportOverlayEventType, VirtualScroller, type VirtualScrollerEvent, type VirtualScrollerEventListener, type VirtualScrollerEventType, type VirtualScrollerOptions, type VisibleRange, type Word, type WorkerError, type WorkerParseOptions, WorkerProxy, type WorkerProxyOptions, type WorkerRequest, type WorkerResponse, type WorkerState, type WorkerTask, type WritingMode, type XRefData, type XRefEntry, XRefParseError, ZoomControls, type ZoomControlsProps, type ZoomFitMode, analyzeContentStream, analyzeFonts, analyzeImages, appearsScanned, black, blue, boxesOverlap, buildPDFJSTextLayer, calculateCenteredOffset, calculateParsingTimeout, cloneTextParams, closeDocument as closePDFJSDocument, cmyk, countFormXObjects, createAnnotation, createBoundingBoxControls, createBoundingBoxOverlay, createCJKCMapLoader, createCMapRegistry, createCanvasRenderer, createContentStreamProcessor, createCoordinateTransformer, createDefaultContentStats, createDefaultFontAnalysis, createDefaultImageAnalysis, createDefaultTextParams, createDeferred, createFontManager, createHierarchicalTextExtractor, createInitialSearchState, createLegacyCMapSupport, createLegacyEncodingCMap, createOverlayManager, createPageViewport as createPDFJSPageViewport, createPDFJSRenderer, createPDFJSSearchEngine, createPDFJSTextLayerBuilder, createPDFResourceLoader, createPDFViewer, createPDFWorker, createParsingWorkerHost, createPdfTypeDetector, createProgressTracker, createRenderingPipeline, createResourceLoader, createSVGRenderer, createSearchEngine, createSearchEvent, createSearchStateManager, createSelectionRect, createTextLayerBuilder, createTokenProvider, createToolbarController, createTransformerForPageContainer, createUIStateManager, createViewportAwareBoundingBoxOverlay, createViewportManager, createVirtualScroller, createWorkerProxy, decodeLegacyByte, decodeLegacyBytes, degrees, detectEnvironment, detectPdfType, extractTransferables, findAllBoxesAtPoint, findBoxesInSelection, generateParsingMessageId, generateParsingTaskId, getCurrentDocument as getCurrentPDFJSDocument, getDefaultRegistry, getDefaultRenderingStrategy, getGlobalFontManager, getImageDimensions, getMousePdfCoordinates, getPDFJS, getPage as getPDFJSPage, getPageCount as getPDFJSPageCount, getTextContent as getPDFJSTextContent, getPlainText, getPrimaryContentType, getRenderingStrategy, getTouchPdfCoordinates, glyphNameToUnicode, grayscale, green, groupCharactersIntoPage, groupCharsIntoLines, hitTestBoundingBoxes, horizontalGap, initializePDFJS, isFormXObject, isPDFJSInitialized, isTextItem as isPDFJSTextItem, isPopupAnnotation, isWidgetAnnotation, isWorkerContext, isWorkerSupported, layoutJustifiedLine, layoutText, lineCapToNumber, lineJoinToNumber, loadPDFFromBytes, loadPDFFromUrl, loadDocument as loadPDFJSDocument, loadDocumentFromUrl as loadPDFJSDocumentFromUrl, loadResource, measureText, mergeBoundingBoxes, mergeContentStats, operators_d_exports as ops, parseCMapData, parseCMapText, parseDocument, parseDocumentAsync, parsePem, rectToQuadPoints, rectsToQuadPoints, red, rgb, searchDocument as searchPDFJSDocument, searchPage, searchPages, setDefaultRegistry, transformBoundingBoxes, transformScreenRectToPdf, useBoundingBoxOverlay, usePDFSearch, usePDFViewer, useScrollPosition, useViewport, version, verticalGap, white };
|
|
21550
|
+
export { AnnotationFlags, type AnnotationSubtype, type AuthConfig, AuthHandler, AuthenticationError as AuthHandlerAuthenticationError, type AuthHandlerOptions, type AuthRefreshCallback, type AuthenticatedResponse, type AuthenticationResult, type AxialCoords, type AxialShadingOptions, type BBox, type BaseRenderer, type BaseSearchEvent, type BlendMode, type BorderStyle, type BorderStyleType, type BoundingBox, type BoundingBoxColors, BoundingBoxControls, type BoundingBoxControlsEvent, type BoundingBoxControlsEventListener, type BoundingBoxControlsEventType, type BoundingBoxControlsOptions, BoundingBoxOverlay, type BoundingBoxOverlayEvent, type BoundingBoxOverlayEventListener, type BoundingBoxOverlayEventType, type BoundingBoxOverlayOptions, type BoundingBoxToggleConfig, type BoundingBoxType, type BoundingBoxVisibility, BundledCMapProvider, type ButtonField, type CIDMapping, type CIDRangeMapping, type CIDSystemInfo, CJKCMapLoader, type CJKScript, type CMYK, CMap, type CMapDataProvider, CMapLoadError, type CMapLoadOptions, type CMapOptions, CMapRegistry, type CMapRegistryEntry, type CMapRegistryOptions, type CMapRegistryStats, type CMapType, type CancellableOperation, type CancellableParseOperation, CanvasRenderer, type CanvasRendererOptions, type CaretAnnotationOptions, type CaretSymbol, CertificateChainError, type Character, type CharacterBBox, type CharacterMapping, type CharacterRangeMapping, type CheckboxField, type CheckboxOptions, type CheckboxSymbol, type CircleAnnotationOptions, type CodespaceRange, type Color, ColorSpace, type ColorStop, type ContainerInfo, type ContentAnalysisResult, type ContentStats, ContentStreamProcessor, ContentType, CoordinateTransformer, type CoordinateTransformerOptions, type CopyPagesOptions, CryptoKeySigner, DEFAULT_BOUNDING_BOX_BORDER_COLORS, DEFAULT_BOUNDING_BOX_COLORS, DEFAULT_PARSING_TIMEOUTS, DEFAULT_PROGRESS_INTERVAL, DEFAULT_TOGGLE_CONFIGS, type DecodeResult, type Deferred, type Degrees, type DestinationType, type DifferenceEntry, type DigestAlgorithm, type DocumentMetadata, DocumentParser, type DocumentText, type DocumentTypeInfo, type DrawCircleOptions, type DrawEllipseOptions, type DrawFieldOptions, type DrawImageOptions, type DrawLineOptions, type DrawPageOptions, type DrawRectangleOptions, type DrawSvgPathOptions, type DrawTextOptions, type DropdownField, type DropdownOptions, type EmbedFontOptions, type EmbeddedFont, type EncryptionAlgorithmOption, type ExtGStateOptions, type ExtractOptions, type ExtractPagesOptions, type ExtractTextOptions, type ExtractTextResult, type ExtractedChar, type ExtractedPageText, type ExtractionOptions, type FieldOptions, type FieldType, type FieldValue, type FileAttachmentIcon, FileReadError, type FindTextOptions, type FlattenAllOptions, type FlattenAllResult, type FlattenAnnotationsOptions, type FlattenLayersResult, type FlattenOptions, type FontAnalysis, type FontChange, type FontInput, FontManager, type FontMetrics, type FontStyle, type FormField, type FormProperties, type FormXObjectOptions, type FreeTextAnnotationOptions, type FreeTextJustification, GoogleKmsSigner, type GraphicsOperator, type GraphicsState, type GraphicsStateChange, type Grayscale, HierarchicalTextExtractor, type HierarchicalTextExtractorOptions, type HighlightMode, HttpError, HttpTimestampAuthority, type HttpTimestampAuthorityOptions, type ICMap, type ImageAnalysis, type ImagePatternOptions, type InkAnnotationOptions, InvalidFileTypeError, type KeyType, KmsSignerError, type LayerInfo, type LayoutResult, LegacyCMapSupport, type LegacyEncodingOptions, type LegacyEncodingType, type Line, type LineAnnotationOptions, type LineCap, type LineEndingStyle, type LineGrouperOptions, type LineJoin, type LinearGradientOptions, type LinkAction, type LinkAnnotationOptions, type LinkDestination, type ListBoxField, type ListboxOptions, type LoadOptions, type LoadResourceOptions, type LoadResourceResult, type LoadedDocument, type LoadedFont, MAX_ZOOM, MIN_ZOOM, type ManagedPage, Matrix, type MergeOptions, type MessageId, type MouseCoordinateOptions, type MousePdfCoordinateResult, NetworkError, ObjectParseError, type OverlayBoundingBox, type OverlayConfig, type OverlayEvent, type OverlayEventListener, type OverlayEventType, OverlayManager, type OverlayManagerOptions, type OverlayType, P12Signer, type PAdESLevel, PDF, PDFAnnotation, type AuthConfig$1 as PDFAuthConfig, PDFCaretAnnotation, PDFCircleAnnotation, type PDFDocumentProxy, PDFEmbeddedPage, type PDFExtGState, PDFFileAttachmentAnnotation, PDFForm, type PDFFormXObject, PDFFreeTextAnnotation, PDFHighlightAnnotation, PDFImage, PDFInkAnnotation, type LoadDocumentOptions as PDFJSLoadDocumentOptions, PDFJSRenderer, type PDFJSRendererOptions, PDFJSSearchEngine, type PDFJSSearchOptions, type PDFJSSearchResult, type PDFJSSearchState, type TextContent as PDFJSTextContent, type TextItem as PDFJSTextItem, PDFJSTextLayerBuilder, type PDFJSTextLayerOptions, type PDFJSTextLayerResult, type TextMarkedContent as PDFJSTextMarkedContent, type PDFJSWrapperOptions, PDFLineAnnotation, PDFLinkAnnotation, PDFLoadError, type PDFLoadResult, PDFMarkupAnnotation, PDFPage, type PDFPageProxy, type PDFPattern, PDFPolygonAnnotation, PDFPolylineAnnotation, PDFPopupAnnotation, type ProgressCallback as PDFProgressCallback, PDFResourceLoader, type PDFResourceLoaderOptions, type PDFShading, type PDFShadingPattern, type PDFSource, PDFSquareAnnotation, PDFSquigglyAnnotation, PDFStampAnnotation, PDFStrikeOutAnnotation, PDFTextAnnotation, PDFTextMarkupAnnotation, type PDFTilingPattern, PDFUnderlineAnnotation, PDFUnknownAnnotation, PDFViewer, type PDFViewerEvent, type PDFViewerEventListener, type PDFViewerEventType, type PDFViewerOptions, PDFWorker, type PDFWorkerOptions, PREDEFINED_CMAPS, type PageAnalysisInput, type PageContainerTransformerOptions, type PageDimensions, type PageLayout, type PageSource, type PageState, type PageText, type PageTypeInfo, type PageViewport, type Paragraph, type ParseOptions, type ParseResult, type ParsedDocument, type ParsedDocumentInfo, type DocumentMetadata$1 as ParsingDocumentMetadata, type ParsingErrorCode, type ParsingPhase, type ParsingProgress, type ParsingProgressCallback, type ParsingWorkerCreationOptions, type ParsingWorkerError, ParsingWorkerHost, type ParsingWorkerHostOptions, type ParseOptions$1 as ParsingWorkerParseOptions, type ParsingWorkerState, type PartialUIState, PathBuilder, type PathOptions, type PatternMatrix, PdfArray, PdfBool, type PdfBoundingBox, PdfDict, PdfName, PdfNull, PdfNumber, type PdfObject, PdfRef, PdfStream, PdfString, PdfType, type PdfTypeDetectionResult, PdfTypeDetector, type PdfTypeDetectorOptions, type PemBlock, PermissionDeniedError, type PermissionOptions, type Permissions, PlaceholderError, type Point, type Point2D, type PolygonAnnotationOptions, type PolylineAnnotationOptions, type PopupOptions, type PositionedWord, type PredefinedCMapInfo, type ProgressMessage, ProgressTracker, type ProgressTrackerOptions, type ProtectionOptions, type ProxyLoadOptions, type ProxySaveOptions, type RGB, type RadialCoords, type RadialShadingOptions, type RadioField, type RadioGroupOptions, type RadioSymbol, type RawExtractionResult, RecoverableParseError, type Rect, type Rect2D, type Rectangle, type RemoveAnnotationsOptions, type RenderOptionsWithTypeDetection, type RenderResult, type RenderTask, type RendererFactory, type RendererOptions, type RendererType, RenderingPipeline, type RenderingPipelineOptions, type RenderingStrategy, type ResourceInput, ResourceLoader, AuthenticationError$1 as ResourceLoaderAuthenticationError, ResourceLoaderError, type ResultChangeEvent, RetryExhaustedError, RetryLogic, type RetryOptions, RetryPresets, type RetryResult, RevocationError, type RevocationProvider, type Rotation, type RotationAngle, type RotationOrigin, type RotationOriginName, type RuntimeEnvironment, STANDARD_STAMPS, type GraphicsState$1 as SVGGraphicsState, LineCap$1 as SVGLineCap, LineJoin$1 as SVGLineJoin, SVGRenderer, type SVGRendererOptions, TextRenderMode as SVGTextRenderMode, type TextState as SVGTextState, type SaveOptions, type ScreenBoundingBox, type ScrollMode, type ScrollPosition, type SearchCompleteEvent, SearchEngine, type SearchEngineOptions, type SearchErrorEvent, type SearchEvent, type SearchEventListener, type SearchEventType, type SearchHistoryEntry, type SearchOptions, type SearchProgressEvent, type SearchResult, type SearchStartEvent, type SearchState, SearchStateManager, type SearchStateManagerOptions, type SearchStatus, SecurityError, type SecurityInfo, type SetTitleOptions, type ShadingPatternOptions, type SignOptions, type SignResult, type SignWarning, type SignatureAlgorithm, SignatureError, type SignatureField, type SignatureFieldOptions, type Signer, SignerError, type SpreadMode, type SquareAnnotationOptions, type StampAnnotationOptions, type StampName, Standard14Font, type Standard14FontName, StandardFonts, type StateChangeEvent, StreamDecodeError, StructureError, type SubFilter, type TaskId, type TextAlignment, type TextAnnotationIcon, type TextAnnotationOptions, type TextAnnotationState, type TextAnnotationStateModel, type TextArrayElement, TextContentStreamParser, TextExtractor, type TextExtractorOptions, type TextField, type TextFieldOptions, type TextItem$1 as TextItem, TextLayerBuilder, type TextLayerBuilderOptions, type TextLayerResult, type TextLine, type TextMarkupAnnotationOptions, type TextMatch, type TextMatrixSet, type TextObjectBoundary, type TextOperation, type TextPage, type TextParams, type TextParseResult, TextPositionCalculator, type TextPositionChange, type TextPositionOperator, type TextProvider, type TextShow, type TextShowItem, type TextShowOperator, type TextSpan, TextState$1 as TextState, type TextStateChange, type TextStateOperator, type TilingPatternOptions, type TimestampAuthority, TimestampError, type TokenProvider, type ToolbarButtonId, ToolbarController, type ToolbarControllerOptions, type ToolbarEvent, type ToolbarEventListener, type ToolbarEventType, type TrappedStatus, type TypeAwareRenderer, type UIState, type UIStateEvent, type UIStateEventListener, type UIStateEventType, UIStateManager, type UIStateManagerOptions, UnrecoverableParseError, type UrlRefreshCallback, type Viewport, ViewportAwareBoundingBoxOverlay, type ViewportAwareBoundingBoxOverlayOptions, type ViewportBounds, ViewportManager, type ViewportManagerEvent, type ViewportManagerEventListener, type ViewportManagerEventType, type ViewportManagerOptions, type ViewportOverlayEvent, type ViewportOverlayEventListener, type ViewportOverlayEventType, VirtualScroller, type VirtualScrollerEvent, type VirtualScrollerEventListener, type VirtualScrollerEventType, type VirtualScrollerOptions, type VisibleRange, type Word, type WorkerError, type WorkerParseOptions, WorkerProxy, type WorkerProxyOptions, type WorkerRequest, type WorkerResponse, type WorkerState, type WorkerTask, type WritingMode, type XRefData, type XRefEntry, XRefParseError, type ZoomFitMode, analyzeContentStream, analyzeFonts, analyzeImages, appearsScanned, black, blue, boxesOverlap, buildPDFJSTextLayer, calculateCenteredOffset, calculateParsingTimeout, cloneTextParams, closeDocument as closePDFJSDocument, cmyk, countFormXObjects, createAnnotation, createBoundingBoxControls, createBoundingBoxOverlay, createCJKCMapLoader, createCMapRegistry, createCanvasRenderer, createContentStreamProcessor, createCoordinateTransformer, createDefaultContentStats, createDefaultFontAnalysis, createDefaultImageAnalysis, createDefaultTextParams, createDeferred, createFontManager, createHierarchicalTextExtractor, createInitialSearchState, createLegacyCMapSupport, createLegacyEncodingCMap, createOverlayManager, createPageViewport as createPDFJSPageViewport, createPDFJSRenderer, createPDFJSSearchEngine, createPDFJSTextLayerBuilder, createPDFResourceLoader, createPDFViewer, createPDFWorker, createParsingWorkerHost, createPdfTypeDetector, createProgressTracker, createRenderingPipeline, createResourceLoader, createSVGRenderer, createSearchEngine, createSearchEvent, createSearchStateManager, createSelectionRect, createTextLayerBuilder, createTokenProvider, createToolbarController, createTransformerForPageContainer, createUIStateManager, createViewportAwareBoundingBoxOverlay, createViewportManager, createVirtualScroller, createWorkerProxy, decodeLegacyByte, decodeLegacyBytes, degrees, detectEnvironment, detectPdfType, extractTransferables, findAllBoxesAtPoint, findBoxesInSelection, generateParsingMessageId, generateParsingTaskId, getCurrentDocument as getCurrentPDFJSDocument, getDefaultRegistry, getDefaultRenderingStrategy, getGlobalFontManager, getImageDimensions, getMousePdfCoordinates, getPDFJS, getPage as getPDFJSPage, getPageCount as getPDFJSPageCount, getTextContent as getPDFJSTextContent, getPlainText, getPrimaryContentType, getRenderingStrategy, getTouchPdfCoordinates, glyphNameToUnicode, grayscale, green, groupCharactersIntoPage, groupCharsIntoLines, hitTestBoundingBoxes, horizontalGap, initializePDFJS, isFormXObject, isPDFJSInitialized, isTextItem as isPDFJSTextItem, isPopupAnnotation, isWidgetAnnotation, isWorkerContext, isWorkerSupported, layoutJustifiedLine, layoutText, lineCapToNumber, lineJoinToNumber, loadPDFFromBytes, loadPDFFromUrl, loadDocument as loadPDFJSDocument, loadDocumentFromUrl as loadPDFJSDocumentFromUrl, loadResource, measureText, mergeBoundingBoxes, mergeContentStats, operators_d_exports as ops, parseCMapData, parseCMapText, parseDocument, parseDocumentAsync, parsePem, rectToQuadPoints, rectsToQuadPoints, red, rgb, searchDocument as searchPDFJSDocument, searchPage, searchPages, setDefaultRegistry, transformBoundingBoxes, transformScreenRectToPdf, version, verticalGap, white };
|
|
22131
21551
|
//# sourceMappingURL=index.d.mts.map
|