Add PDF preview and improve document upload UX

Enhanced `CreateEnvelopeWizardPopup.razor` with PDF preview functionality using `SenderPdfImageEditor` and `PdfRenderService`. Added `_documentPagePreviews` to store rendered pages and `DocumentPdfDataUrl` for base64-encoded PDF data. Updated document upload logic to render pages and handle errors gracefully. Cleared `_documentPagePreviews` on reset.

Modified `PdfFileDropZone.razor` to include a spacer for better layout when no document is present. Updated `sender-page.css` to improve layout responsiveness, add dynamic resizing, and refine styles for document preview and drop zone. Removed unused `sender-create-wizard__document-meta` class.

These changes improve the user experience by providing PDF previews, enhancing layout consistency, and ensuring robust error handling during document uploads.
This commit is contained in:
2026-11-30 12:32:30 +01:00
parent 0c27219542
commit bf9895c9ba
3 changed files with 69 additions and 8 deletions

View File

@@ -21,6 +21,11 @@
{
<div class="sender-pdf-dropzone__hint">@CurrentActionText</div>
}
@if (!HasDocument)
{
<div class="sender-pdf-dropzone__initial-spacer" aria-hidden="true"></div>
}
</div>
<InputFile OnChange="OnFileSelectedAsync"