PDF Web Viewer
    Preparing search index...

    Interface IPdfSdk

    Interface representing the PDF SDK static methods. This interface is used for typing the sdk field in IPdfEditorResult.

    interface IPdfSdk {
        initialize(options: IInitializeData): Promise<void>;
        listSystemFonts(): Promise<IFontMini[]>;
        openBlankDocument(data?: ICreateNewDocumentData): Promise<IDocumentModel>;
        openDocument(options: IOpenDocumentOptions): Promise<IDocumentModel>;
        registerUserFonts(fonts: IUserFontData): Promise<void>;
    }
    Index

    Methods

    • Initializes the PDF SDK with the provided configuration. Must be called before any other SDK operations when using PdfSdk directly. Not needed when using the sdk from PdfEditor() result as it's already initialized.

      Parameters

      • options: IInitializeData

      Returns Promise<void>

    • Retrieves all system fonts available for use in PDF documents.

      Returns Promise<IFontMini[]>

    • Registers user-provided fonts for use in PDF documents.

      Parameters

      Returns Promise<void>