PDF Web Viewer
    Preparing search index...

    Function PdfEditor

    • Creates a PDF editor instance and initializes the SDK.

      This is the main entry point for creating a PDF editor. It:

      1. Initializes the PDF SDK with the provided license and configuration
      2. Sets up the UI components
      3. Returns both UI handles and the initialized SDK for document operations

      Parameters

      Returns Promise<IPdfEditorResult>

      Promise resolving to IPdfEditorResult with UI components and initialized SDK

      // Full UI mode
      const result = await PdfEditor({
      container: document.getElementById('editor'),
      license: 'your-license-key'
      });

      // Open a document using the SDK
      const document = await result.sdk.openDocument({ file: pdfFile });
      // Minimal UI mode (document view only, no toolbar)
      const result = await PdfEditor({
      container: document.getElementById('editor'),
      license: 'your-license-key',
      hideToolsPanel: true
      });