@gembox/pdfviewer 2025.2.101 → 2025.3.101

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 CHANGED
@@ -20,7 +20,7 @@ You can set up the PDF viewer with just few lines of code:
20
20
 
21
21
  <script type="module">
22
22
  import { GemBoxPdfViewer} from '@gembox/pdfviewer';
23
- import '@gembox/pdfviewer/dist/es/style.css';
23
+ import '@gembox/pdfviewer/dist/es/pdfviewer.css';
24
24
 
25
25
  GemBoxPdfViewer.setLicense("FREE-LIMITED-KEY");
26
26
  GemBoxPdfViewer.create({ container: "#viewer" });
@@ -1,5 +1,5 @@
1
1
  /*
2
- * GemBox.PdfViewer v2025.2.101 (https://www.gemboxsoftware.com/pdfviewer)
2
+ * GemBox.PdfViewer v2025.3.101 (https://www.gemboxsoftware.com/pdfviewer)
3
3
  * Copyright © GemBox Ltd. — All rights reserved.
4
4
  * Licensed under commercial license. See LICENSE.txt in the package root or e-mail us at info@gemboxsoftware.com to obtain the license.
5
5
  *
@@ -0,0 +1,41 @@
1
+ import { ApplicationContext } from "./models/application-context.ts";
2
+ export interface ViewerOptions {
3
+ container: HTMLElement | string;
4
+ initialDocument?: string | Uint8Array | ArrayBuffer | null;
5
+ theme?: "light" | "dark" | "red" | "dark-red" | "blue" | "dark-blue" | "green" | "dark-green" | null;
6
+ visibility?: VisibilityOptions | null;
7
+ localization?: "en" | "de" | "es" | NestedMessages | null;
8
+ digitalSigning?: DigitalSignatureOptions | null;
9
+ }
10
+ export interface VisibilityOptions {
11
+ sideMenu?: boolean | null;
12
+ open?: boolean | null;
13
+ download?: boolean | null;
14
+ print?: boolean | null;
15
+ pageNavigation?: boolean | null;
16
+ zoom?: boolean | null;
17
+ panMode?: boolean | null;
18
+ search?: boolean | null;
19
+ }
20
+ export interface DigitalSignatureOptions {
21
+ serverUrl: string;
22
+ apiPassword?: string | null;
23
+ }
24
+ export interface NestedMessages {
25
+ [key: string]: string | NestedMessages;
26
+ }
27
+ export declare class GemBoxPdfViewer {
28
+ private applicationContext;
29
+ private static releaseDate;
30
+ private static licensing;
31
+ constructor(applicationContext: ApplicationContext);
32
+ open(document: string | Uint8Array | ArrayBuffer): Promise<void>;
33
+ static setLicense(licenseKey: string): void;
34
+ private static validate;
35
+ static create(options: ViewerOptions): Promise<GemBoxPdfViewer>;
36
+ setZoom(zoom: number | "fitPage" | "fitWidth"): void;
37
+ setCurrentPage(page: number): void;
38
+ getCurrentPage(): number;
39
+ getPageCount(): number;
40
+ search(text: string | null): void;
41
+ }