+
+@code {
+
+ const string SignatureTabDraw = "draw";
+ const string SignatureTabText = "text";
+ const string SignatureTabImage = "image";
+ const string DrawCanvasId = "receiver-signature-pad";
+ const string TypedCanvasId = "receiver-typed-signature-pad";
+ const string ImageInputId = "receiver-signature-image-input";
+ const string ImageCanvasId = "receiver-image-signature-pad";
+
+ readonly (string Text, string Value)[] TypedSignatureFonts = {
+ ("Brush Script", "'Brush Script MT', cursive"),
+ ("Segoe Script", "'Segoe Script', cursive"),
+ ("Lucida Handwriting", "'Lucida Handwriting', cursive"),
+ ("Comic Sans", "'Comic Sans MS', cursive"),
+ ("Cursive", "cursive")
+ };
+
+ [Parameter] public string? EnvelopeKey { get; set; }
+
+ DxReportViewer? reportViewer;
+ XtraReport? Report;
+ string PdfViewerUrl = string.Empty;
+ byte[]? PdfBytes;
+ byte[]? SignedPdfBytes;
+ bool SignatureApplied;
+ bool SignaturePopupVisible;
+ string? PopupValidationMessage;
+ string ActiveSignatureTab = SignatureTabDraw;
+ string TypedSignatureText = string.Empty;
+ string TypedSignatureFont = "'Brush Script MT', cursive";
+ string SignerFullName = string.Empty;
+ string SignerPosition = string.Empty;
+ string SignaturePlace = string.Empty;
+ int ViewerKey;
+
+ protected override async Task OnInitializedAsync() {
+ PdfBytes = await Http.GetByteArrayAsync("/docs/Document.pdf");
+ }
+
+
+}
+
diff --git a/EnvelopeGenerator.ReceiverUI/wwwroot/docs/Document.pdf b/EnvelopeGenerator.ReceiverUI/wwwroot/docs/Document.pdf
new file mode 100644
index 00000000..e36adb6c
Binary files /dev/null and b/EnvelopeGenerator.ReceiverUI/wwwroot/docs/Document.pdf differ
diff --git a/EnvelopeGenerator.sln b/EnvelopeGenerator.sln
index 71f89297..3ab80b45 100644
--- a/EnvelopeGenerator.sln
+++ b/EnvelopeGenerator.sln
@@ -35,10 +35,10 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "EnvelopeGenerator.Tests", "
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "EnvelopeGenerator.API", "EnvelopeGenerator.API\EnvelopeGenerator.API.csproj", "{EC768913-6270-14F4-1DD3-69C87A659462}"
EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "EnvelopeGenerator.ReceiverUI", "EnvelopeGenerator.ReceiverUI\EnvelopeGenerator.ReceiverUI.csproj", "{FB2D306B-1042-4A70-31ED-F991A1599371}"
-EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "EnvelopeGenerator.DependencyInjection", "EnvelopeGenerator.DependencyInjection\EnvelopeGenerator.DependencyInjection.csproj", "{5DCCF9A1-C03F-90E6-87D3-E96DB25250C2}"
EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "EnvelopeGenerator.ReceiverUI", "EnvelopeGenerator.ReceiverUI\EnvelopeGenerator.ReceiverUI.csproj", "{FB2D306B-1042-4A70-31ED-F991A1599371}"
+EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
@@ -89,14 +89,14 @@ Global
{EC768913-6270-14F4-1DD3-69C87A659462}.Debug|Any CPU.Build.0 = Debug|Any CPU
{EC768913-6270-14F4-1DD3-69C87A659462}.Release|Any CPU.ActiveCfg = Release|Any CPU
{EC768913-6270-14F4-1DD3-69C87A659462}.Release|Any CPU.Build.0 = Release|Any CPU
- {FB2D306B-1042-4A70-31ED-F991A1599371}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {FB2D306B-1042-4A70-31ED-F991A1599371}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {FB2D306B-1042-4A70-31ED-F991A1599371}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {FB2D306B-1042-4A70-31ED-F991A1599371}.Release|Any CPU.Build.0 = Release|Any CPU
{5DCCF9A1-C03F-90E6-87D3-E96DB25250C2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{5DCCF9A1-C03F-90E6-87D3-E96DB25250C2}.Debug|Any CPU.Build.0 = Debug|Any CPU
{5DCCF9A1-C03F-90E6-87D3-E96DB25250C2}.Release|Any CPU.ActiveCfg = Release|Any CPU
{5DCCF9A1-C03F-90E6-87D3-E96DB25250C2}.Release|Any CPU.Build.0 = Release|Any CPU
+ {FB2D306B-1042-4A70-31ED-F991A1599371}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {FB2D306B-1042-4A70-31ED-F991A1599371}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {FB2D306B-1042-4A70-31ED-F991A1599371}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {FB2D306B-1042-4A70-31ED-F991A1599371}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
@@ -116,8 +116,8 @@ Global
{211619F5-AE25-4BA5-A552-BACAFE0632D3} = {9943209E-1744-4944-B1BA-4F87FC1A0EEB}
{224C4845-1CDE-22B7-F3A9-1FF9297F70E8} = {0CBC2432-A561-4440-89BC-671B66A24146}
{EC768913-6270-14F4-1DD3-69C87A659462} = {E3C758DC-914D-4B7E-8457-0813F1FDB0CB}
- {FB2D306B-1042-4A70-31ED-F991A1599371} = {E3C758DC-914D-4B7E-8457-0813F1FDB0CB}
{5DCCF9A1-C03F-90E6-87D3-E96DB25250C2} = {E3C758DC-914D-4B7E-8457-0813F1FDB0CB}
+ {FB2D306B-1042-4A70-31ED-F991A1599371} = {E3C758DC-914D-4B7E-8457-0813F1FDB0CB}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {73E60370-756D-45AD-A19A-C40A02DACCC7}