@inject IJSRuntime JS @implements IAsyncDisposable
@code { [Parameter] public byte[]? DocumentBytes { get; set; } protected override async Task OnAfterRenderAsync(bool firstRender) { if (firstRender && DocumentBytes is not null) { // TODO: PSPDFKit JS-Interop implementieren (Phase 6) // await JS.InvokeVoidAsync("initPdfViewer", DocumentBytes); } } public async ValueTask DisposeAsync() { // TODO: PSPDFKit aufräumen // await JS.InvokeVoidAsync("destroyPdfViewer"); } }