Creates a PDF editor instance and initializes the SDK.
This is the main entry point for creating a PDF editor. It:
Configuration options for the PDF editor
Promise resolving to IPdfEditorResult with UI components and initialized SDK
// Full UI modeconst result = await PdfEditor({ container: document.getElementById('editor'), license: 'your-license-key'});// Open a document using the SDKconst document = await result.sdk.openDocument({ file: pdfFile }); Copy
// Full UI modeconst result = await PdfEditor({ container: document.getElementById('editor'), license: 'your-license-key'});// Open a document using the SDKconst 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}); Copy
// Minimal UI mode (document view only, no toolbar)const result = await PdfEditor({ container: document.getElementById('editor'), license: 'your-license-key', hideToolsPanel: true});
Creates a PDF editor instance and initializes the SDK.
This is the main entry point for creating a PDF editor. It: