OptionalerrorError that occurred during initialization, if any.
OptionalisLoading state indicator.
The initialized PDF SDK instance. Use this for headless PDF operations such as:
result.sdk.openDocument({ file })result.sdk.openBlankDocument()result.sdk.listSystemFonts()result.sdk.registerUserFonts(fonts)The SDK is already initialized when returned from PdfEditor().
UI components for the PDF editor.
The PDF editor wrapper element.
This element contains the document view and UI controls.
When hideToolsPanel: true is set, the toolbar and panels are hidden
but the wrapper element is still used for consistent API.
Service for managing document view instances. Use this service to:
Result object returned from PDF editor initialization.
This is the main return type from PdfEditor function. It provides access to:
Example
Remarks
Headless Mode: Users can work with PDFs without the UI by using the
sdkfield:Alternatively, users can use PdfSdk directly from
'@avanquest/pdf-web-viewer/sdk'. In this case, PdfSdk.initialize must be called manually before any operations: