From 89fb6f1452d80187d1bfb6d239b44e7577328d46 Mon Sep 17 00:00:00 2001 From: TekH Date: Sun, 7 Jun 2026 12:55:21 +0200 Subject: [PATCH] Add interactive signature buttons to PDF viewer Implemented a new feature to render clickable "Sign" buttons on the PDF canvas at signature field positions fetched from the database. - Updated `EnvelopeViewer.razor` to fetch signature data, convert coordinates from inches to points, and invoke JavaScript for rendering. - Added `renderSignatureButtons` and `clearSignatureButtons` functions in `pdf-viewer.js` to dynamically create and position buttons based on page and zoom level. - Modified HTML to include a new `#pdf-signature-layer` overlay for buttons. - Styled buttons with a purple gradient, hover/active effects, and focus outlines for accessibility. - Defined rendering triggers for initial load, page changes, and zoom changes. - Documented coordinate conversion flow from inches to points to pixels for accurate positioning. - Enhanced accessibility with `tabindex="0"`, focus outlines, and semantic `