From 912ac4eb45ea1c2e6f0f951af85dee585c0f3a06 Mon Sep 17 00:00:00 2001 From: VijayalakshmiGSF4561 Date: Tue, 17 Sep 2024 15:58:34 +0530 Subject: [PATCH 1/2] 897552: Added Signature programmatically --- .../PDFViewerSample/PDFViewerSample.sln | 25 ++ .../PDFViewerSample/App_Start/BundleConfig.cs | 30 ++ .../PDFViewerSample/App_Start/FilterConfig.cs | 13 + .../PDFViewerSample/App_Start/RouteConfig.cs | 23 ++ .../Controllers/HomeController.cs | 264 +++++++++++++++ .../PDFViewerSample/Global.asax | 1 + .../PDFViewerSample/Global.asax.cs | 21 ++ .../PDFViewerSample/PDFViewerSample.csproj | 300 ++++++++++++++++++ .../PDFViewerSample.csproj.user | 6 + .../Properties/AssemblyInfo.cs | 35 ++ .../PDFViewerSample/Views/Home/About.cshtml | 52 +++ .../PDFViewerSample/Views/Home/Contact.cshtml | 19 ++ .../PDFViewerSample/Views/Home/Index.cshtml | 33 ++ .../PDFViewerSample/Views/Shared/Error.cshtml | 13 + .../Views/Shared/_Layout.cshtml | 45 +++ .../PDFViewerSample/Views/Web.config | 44 +++ .../PDFViewerSample/Views/_ViewStart.cshtml | 3 + .../PDFViewerSample/Web.Debug.config | 30 ++ .../PDFViewerSample/Web.Release.config | 31 ++ .../PDFViewerSample/Web.config | 89 ++++++ .../PDFViewerSample/favicon.ico | Bin 0 -> 32038 bytes .../PDFViewerSample/packages.config | 20 ++ 22 files changed, 1097 insertions(+) create mode 100644 How to/Add Handwritten Signature Programmatically/PDFViewerSample/PDFViewerSample.sln create mode 100644 How to/Add Handwritten Signature Programmatically/PDFViewerSample/PDFViewerSample/App_Start/BundleConfig.cs create mode 100644 How to/Add Handwritten Signature Programmatically/PDFViewerSample/PDFViewerSample/App_Start/FilterConfig.cs create mode 100644 How to/Add Handwritten Signature Programmatically/PDFViewerSample/PDFViewerSample/App_Start/RouteConfig.cs create mode 100644 How to/Add Handwritten Signature Programmatically/PDFViewerSample/PDFViewerSample/Controllers/HomeController.cs create mode 100644 How to/Add Handwritten Signature Programmatically/PDFViewerSample/PDFViewerSample/Global.asax create mode 100644 How to/Add Handwritten Signature Programmatically/PDFViewerSample/PDFViewerSample/Global.asax.cs create mode 100644 How to/Add Handwritten Signature Programmatically/PDFViewerSample/PDFViewerSample/PDFViewerSample.csproj create mode 100644 How to/Add Handwritten Signature Programmatically/PDFViewerSample/PDFViewerSample/PDFViewerSample.csproj.user create mode 100644 How to/Add Handwritten Signature Programmatically/PDFViewerSample/PDFViewerSample/Properties/AssemblyInfo.cs create mode 100644 How to/Add Handwritten Signature Programmatically/PDFViewerSample/PDFViewerSample/Views/Home/About.cshtml create mode 100644 How to/Add Handwritten Signature Programmatically/PDFViewerSample/PDFViewerSample/Views/Home/Contact.cshtml create mode 100644 How to/Add Handwritten Signature Programmatically/PDFViewerSample/PDFViewerSample/Views/Home/Index.cshtml create mode 100644 How to/Add Handwritten Signature Programmatically/PDFViewerSample/PDFViewerSample/Views/Shared/Error.cshtml create mode 100644 How to/Add Handwritten Signature Programmatically/PDFViewerSample/PDFViewerSample/Views/Shared/_Layout.cshtml create mode 100644 How to/Add Handwritten Signature Programmatically/PDFViewerSample/PDFViewerSample/Views/Web.config create mode 100644 How to/Add Handwritten Signature Programmatically/PDFViewerSample/PDFViewerSample/Views/_ViewStart.cshtml create mode 100644 How to/Add Handwritten Signature Programmatically/PDFViewerSample/PDFViewerSample/Web.Debug.config create mode 100644 How to/Add Handwritten Signature Programmatically/PDFViewerSample/PDFViewerSample/Web.Release.config create mode 100644 How to/Add Handwritten Signature Programmatically/PDFViewerSample/PDFViewerSample/Web.config create mode 100644 How to/Add Handwritten Signature Programmatically/PDFViewerSample/PDFViewerSample/favicon.ico create mode 100644 How to/Add Handwritten Signature Programmatically/PDFViewerSample/PDFViewerSample/packages.config diff --git a/How to/Add Handwritten Signature Programmatically/PDFViewerSample/PDFViewerSample.sln b/How to/Add Handwritten Signature Programmatically/PDFViewerSample/PDFViewerSample.sln new file mode 100644 index 0000000..6cbcf76 --- /dev/null +++ b/How to/Add Handwritten Signature Programmatically/PDFViewerSample/PDFViewerSample.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.10.34607.79 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PDFViewerSample", "PDFViewerSample\PDFViewerSample.csproj", "{77AAD936-5FAF-417D-A7BB-26D295D484EB}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {77AAD936-5FAF-417D-A7BB-26D295D484EB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {77AAD936-5FAF-417D-A7BB-26D295D484EB}.Debug|Any CPU.Build.0 = Debug|Any CPU + {77AAD936-5FAF-417D-A7BB-26D295D484EB}.Release|Any CPU.ActiveCfg = Release|Any CPU + {77AAD936-5FAF-417D-A7BB-26D295D484EB}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {5B3E2E64-4271-4523-A821-A84228167523} + EndGlobalSection +EndGlobal diff --git a/How to/Add Handwritten Signature Programmatically/PDFViewerSample/PDFViewerSample/App_Start/BundleConfig.cs b/How to/Add Handwritten Signature Programmatically/PDFViewerSample/PDFViewerSample/App_Start/BundleConfig.cs new file mode 100644 index 0000000..aab4145 --- /dev/null +++ b/How to/Add Handwritten Signature Programmatically/PDFViewerSample/PDFViewerSample/App_Start/BundleConfig.cs @@ -0,0 +1,30 @@ +using System.Web; +using System.Web.Optimization; + +namespace PDFViewerSample +{ + public class BundleConfig + { + // For more information on bundling, visit https://go.microsoft.com/fwlink/?LinkId=301862 + public static void RegisterBundles(BundleCollection bundles) + { + bundles.Add(new ScriptBundle("~/bundles/jquery").Include( + "~/Scripts/jquery-{version}.js")); + + bundles.Add(new ScriptBundle("~/bundles/jqueryval").Include( + "~/Scripts/jquery.validate*")); + + // Use the development version of Modernizr to develop with and learn from. Then, when you're + // ready for production, use the build tool at https://modernizr.com to pick only the tests you need. + bundles.Add(new ScriptBundle("~/bundles/modernizr").Include( + "~/Scripts/modernizr-*")); + + bundles.Add(new Bundle("~/bundles/bootstrap").Include( + "~/Scripts/bootstrap.js")); + + bundles.Add(new StyleBundle("~/Content/css").Include( + "~/Content/bootstrap.css", + "~/Content/site.css")); + } + } +} diff --git a/How to/Add Handwritten Signature Programmatically/PDFViewerSample/PDFViewerSample/App_Start/FilterConfig.cs b/How to/Add Handwritten Signature Programmatically/PDFViewerSample/PDFViewerSample/App_Start/FilterConfig.cs new file mode 100644 index 0000000..39e7832 --- /dev/null +++ b/How to/Add Handwritten Signature Programmatically/PDFViewerSample/PDFViewerSample/App_Start/FilterConfig.cs @@ -0,0 +1,13 @@ +using System.Web; +using System.Web.Mvc; + +namespace PDFViewerSample +{ + public class FilterConfig + { + public static void RegisterGlobalFilters(GlobalFilterCollection filters) + { + filters.Add(new HandleErrorAttribute()); + } + } +} diff --git a/How to/Add Handwritten Signature Programmatically/PDFViewerSample/PDFViewerSample/App_Start/RouteConfig.cs b/How to/Add Handwritten Signature Programmatically/PDFViewerSample/PDFViewerSample/App_Start/RouteConfig.cs new file mode 100644 index 0000000..cbd7c74 --- /dev/null +++ b/How to/Add Handwritten Signature Programmatically/PDFViewerSample/PDFViewerSample/App_Start/RouteConfig.cs @@ -0,0 +1,23 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.Mvc; +using System.Web.Routing; + +namespace PDFViewerSample +{ + public class RouteConfig + { + public static void RegisterRoutes(RouteCollection routes) + { + routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); + + routes.MapRoute( + name: "Default", + url: "{controller}/{action}/{id}", + defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional } + ); + } + } +} diff --git a/How to/Add Handwritten Signature Programmatically/PDFViewerSample/PDFViewerSample/Controllers/HomeController.cs b/How to/Add Handwritten Signature Programmatically/PDFViewerSample/PDFViewerSample/Controllers/HomeController.cs new file mode 100644 index 0000000..2b4e91e --- /dev/null +++ b/How to/Add Handwritten Signature Programmatically/PDFViewerSample/PDFViewerSample/Controllers/HomeController.cs @@ -0,0 +1,264 @@ +using Newtonsoft.Json; +using Syncfusion.EJ2.PdfViewer; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Net; +using System.Net.Http; +using System.Reflection; +using System.Web; +using System.Web.Mvc; + +namespace GettingStartedMVC.Controllers +{ + public class HomeController : Controller + { + [System.Web.Mvc.HttpPost] + public ActionResult Load(jsonObjects jsonObject) + { + PdfRenderer pdfviewer = new PdfRenderer(); + MemoryStream stream = new MemoryStream(); + var jsonData = JsonConverter(jsonObject); + object jsonResult = new object(); + if (jsonObject != null && jsonData.ContainsKey("document")) + { + if (bool.Parse(jsonData["isFileName"])) + { + string documentPath = GetDocumentPath(jsonData["document"]); + + if (!string.IsNullOrEmpty(documentPath)) + { + byte[] bytes = System.IO.File.ReadAllBytes(documentPath); + stream = new MemoryStream(bytes); + } + else + { + string fileName = jsonData["document"].Split(new string[] { "://" }, StringSplitOptions.None)[0]; + if (fileName == "http" || fileName == "https") + { + var WebClient = new WebClient(); + byte[] pdfDoc = WebClient.DownloadData(jsonData["document"]); + stream = new MemoryStream(pdfDoc); + } + else + { + return this.Content(jsonData["document"] + " is not found"); + } + } + } + else + { + byte[] bytes = Convert.FromBase64String(jsonData["document"]); + stream = new MemoryStream(bytes); + + } + } + jsonResult = pdfviewer.Load(stream, jsonData); + return Content(JsonConvert.SerializeObject(jsonResult)); + } + + public Dictionary JsonConverter(jsonObjects results) + { + Dictionary resultObjects = new Dictionary(); + resultObjects = results.GetType().GetProperties(BindingFlags.Instance | BindingFlags.Public) + .ToDictionary(prop => prop.Name, prop => prop.GetValue(results, null)); + var emptyObjects = (from kv in resultObjects + where kv.Value != null + select kv).ToDictionary(kv => kv.Key, kv => kv.Value); + Dictionary jsonResult = emptyObjects.ToDictionary(k => k.Key, k => k.Value.ToString()); + return jsonResult; + } + + [System.Web.Mvc.HttpPost] + public ActionResult ExportAnnotations(jsonObjects jsonObject) + { + PdfRenderer pdfviewer = new PdfRenderer(); + var jsonData = JsonConverter(jsonObject); + string jsonResult = pdfviewer.ExportAnnotation(jsonData); + return Content((jsonResult)); + } + + [System.Web.Mvc.HttpPost] + public ActionResult ImportAnnotations(jsonObjects jsonObject) + { + PdfRenderer pdfviewer = new PdfRenderer(); + string jsonResult = string.Empty; + var jsonData = JsonConverter(jsonObject); + if (jsonObject != null && jsonData.ContainsKey("fileName")) + { + string documentPath = GetDocumentPath(jsonData["fileName"]); + if (!string.IsNullOrEmpty(documentPath)) + { + jsonResult = System.IO.File.ReadAllText(documentPath); + } + else + { + return this.Content(jsonData["document"] + " is not found"); + } + } + return Content(JsonConvert.SerializeObject(jsonResult)); + } + + [System.Web.Mvc.HttpPost] + public ActionResult ImportFormFields(jsonObjects jsonObject) + { + PdfRenderer pdfviewer = new PdfRenderer(); + var jsonData = JsonConverter(jsonObject); + object jsonResult = pdfviewer.ImportFormFields(jsonData); + return Content(JsonConvert.SerializeObject(jsonResult)); + } + + [System.Web.Mvc.HttpPost] + public ActionResult ExportFormFields(jsonObjects jsonObject) + { + PdfRenderer pdfviewer = new PdfRenderer(); + var jsonData = JsonConverter(jsonObject); + string jsonResult = pdfviewer.ExportFormFields(jsonData); + return Content(jsonResult); + } + + [System.Web.Mvc.HttpPost] + public ActionResult RenderPdfPages(jsonObjects jsonObject) + { + PdfRenderer pdfviewer = new PdfRenderer(); + var jsonData = JsonConverter(jsonObject); + object jsonResult = pdfviewer.GetPage(jsonData); + return Content(JsonConvert.SerializeObject(jsonResult)); + } + + [System.Web.Mvc.HttpPost] + public ActionResult Unload(jsonObjects jsonObject) + { + PdfRenderer pdfviewer = new PdfRenderer(); + var jsonData = JsonConverter(jsonObject); + pdfviewer.ClearCache(jsonData); + return this.Content("Document cache is cleared"); + } + + [System.Web.Mvc.HttpPost] + public ActionResult RenderThumbnailImages(jsonObjects jsonObject) + { + PdfRenderer pdfviewer = new PdfRenderer(); + var jsonData = JsonConverter(jsonObject); + object result = pdfviewer.GetThumbnailImages(jsonData); + return Content(JsonConvert.SerializeObject(result)); + } + + [System.Web.Mvc.HttpPost] + public ActionResult Bookmarks(jsonObjects jsonObject) + { + PdfRenderer pdfviewer = new PdfRenderer(); + var jsonData = JsonConverter(jsonObject); + object jsonResult = pdfviewer.GetBookmarks(jsonData); + return Content(JsonConvert.SerializeObject(jsonResult)); + } + + [System.Web.Mvc.HttpPost] + public ActionResult RenderAnnotationComments(jsonObjects jsonObject) + { + PdfRenderer pdfviewer = new PdfRenderer(); + var jsonData = JsonConverter(jsonObject); + object jsonResult = pdfviewer.GetAnnotationComments(jsonData); + return Content(JsonConvert.SerializeObject(jsonResult)); + } + + [System.Web.Mvc.HttpPost] + public ActionResult Download(jsonObjects jsonObject) + { + PdfRenderer pdfviewer = new PdfRenderer(); + var jsonData = JsonConverter(jsonObject); + string documentBase = pdfviewer.GetDocumentAsBase64(jsonData); + return Content(documentBase); + } + + [System.Web.Mvc.HttpPost] + public ActionResult PrintImages(jsonObjects jsonObject) + { + PdfRenderer pdfviewer = new PdfRenderer(); + var jsonData = JsonConverter(jsonObject); + object pageImage = pdfviewer.GetPrintImage(jsonData); + return Content(JsonConvert.SerializeObject(pageImage)); + } + + private HttpResponseMessage GetPlainText(string pageImage) + { + var responseText = new HttpResponseMessage(HttpStatusCode.OK); + responseText.Content = new StringContent(pageImage, System.Text.Encoding.UTF8, "text/plain"); + return responseText; + } + + private string GetDocumentPath(string document) + { + string documentPath = string.Empty; + if (!System.IO.File.Exists(document)) + { + var path = HttpContext.Request.PhysicalApplicationPath; + if (System.IO.File.Exists(path + "App_Data\\" + document)) + documentPath = path + "App_Data\\" + document; + } + else + { + documentPath = document; + } + return documentPath; + } + + public ActionResult Index() + { + return View(); + } + + public ActionResult About() + { + ViewBag.Message = "Your application description page."; + return View(); + } + + public ActionResult Contact() + { + ViewBag.Message = "Your contact page."; + return View(); + } + } + + public class jsonObjects + { + public string document { get; set; } + public string password { get; set; } + public string zoomFactor { get; set; } + public string isFileName { get; set; } + public string xCoordinate { get; set; } + public string yCoordinate { get; set; } + public string pageNumber { get; set; } + public string documentId { get; set; } + public string hashId { get; set; } + public string sizeX { get; set; } + public string sizeY { get; set; } + public string startPage { get; set; } + public string endPage { get; set; } + public string stampAnnotations { get; set; } + public string textMarkupAnnotations { get; set; } + public string stickyNotesAnnotation { get; set; } + public string shapeAnnotations { get; set; } + public string measureShapeAnnotations { get; set; } + public string action { get; set; } + public string pageStartIndex { get; set; } + public string pageEndIndex { get; set; } + public string fileName { get; set; } + public string elementId { get; set; } + public string pdfAnnotation { get; set; } + public string importPageList { get; set; } + public string uniqueId { get; set; } + public string data { get; set; } + public string viewPortWidth { get; set; } + public string viewportHeight { get; set; } + public string tilecount { get; set; } + public string isCompletePageSizeNotReceived { get; set; } + public string freeTextAnnotation { get; set; } + public string signatureData { get; set; } + public string fieldsData { get; set; } + public string FormDesigner { get; set; } + public string inkSignatureData { get; set; } + } +} \ No newline at end of file diff --git a/How to/Add Handwritten Signature Programmatically/PDFViewerSample/PDFViewerSample/Global.asax b/How to/Add Handwritten Signature Programmatically/PDFViewerSample/PDFViewerSample/Global.asax new file mode 100644 index 0000000..3c88a3a --- /dev/null +++ b/How to/Add Handwritten Signature Programmatically/PDFViewerSample/PDFViewerSample/Global.asax @@ -0,0 +1 @@ +<%@ Application Codebehind="Global.asax.cs" Inherits="PDFViewerSample.MvcApplication" Language="C#" %> diff --git a/How to/Add Handwritten Signature Programmatically/PDFViewerSample/PDFViewerSample/Global.asax.cs b/How to/Add Handwritten Signature Programmatically/PDFViewerSample/PDFViewerSample/Global.asax.cs new file mode 100644 index 0000000..161155b --- /dev/null +++ b/How to/Add Handwritten Signature Programmatically/PDFViewerSample/PDFViewerSample/Global.asax.cs @@ -0,0 +1,21 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.Mvc; +using System.Web.Optimization; +using System.Web.Routing; + +namespace PDFViewerSample +{ + public class MvcApplication : System.Web.HttpApplication + { + protected void Application_Start() + { + AreaRegistration.RegisterAllAreas(); + FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters); + RouteConfig.RegisterRoutes(RouteTable.Routes); + BundleConfig.RegisterBundles(BundleTable.Bundles); + } + } +} diff --git a/How to/Add Handwritten Signature Programmatically/PDFViewerSample/PDFViewerSample/PDFViewerSample.csproj b/How to/Add Handwritten Signature Programmatically/PDFViewerSample/PDFViewerSample/PDFViewerSample.csproj new file mode 100644 index 0000000..dcab0da --- /dev/null +++ b/How to/Add Handwritten Signature Programmatically/PDFViewerSample/PDFViewerSample/PDFViewerSample.csproj @@ -0,0 +1,300 @@ + + + + + Debug + AnyCPU + + + 2.0 + {77AAD936-5FAF-417D-A7BB-26D295D484EB} + {349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc} + Library + Properties + PDFViewerSample + PDFViewerSample + v4.7.2 + false + true + + + + + + + + + true + full + false + bin\ + DEBUG;TRACE + prompt + 4 + + + true + pdbonly + true + bin\ + TRACE + prompt + 4 + + + + + ..\packages\Syncfusion.EJ2.PdfViewer.AspNet.Mvc5.25.1.35\lib\net45\Syncfusion.Compression.Base.dll + + + ..\packages\Syncfusion.EJ2.MVC5.25.1.35\lib\net45\Syncfusion.EJ2.dll + + + ..\packages\Syncfusion.EJ2.PdfViewer.AspNet.Mvc5.25.1.35\lib\net45\Syncfusion.EJ2.PdfViewer.dll + + + ..\packages\Syncfusion.Licensing.25.1.35\lib\net462\Syncfusion.Licensing.dll + + + ..\packages\Syncfusion.EJ2.PdfViewer.AspNet.Mvc5.25.1.35\lib\net45\Syncfusion.Pdf.Base.dll + + + ..\packages\Syncfusion.EJ2.PdfViewer.AspNet.Mvc5.25.1.35\lib\net45\Syncfusion.PdfToImageConverter.Base.dll + + + + + + + + + + + + + + + + + + + + + True + ..\packages\Microsoft.Web.Infrastructure.2.0.0\lib\net40\Microsoft.Web.Infrastructure.dll + + + + + + + True + ..\packages\Microsoft.AspNet.WebPages.3.2.9\lib\net45\System.Web.Helpers.dll + + + True + ..\packages\Microsoft.AspNet.Mvc.5.2.9\lib\net45\System.Web.Mvc.dll + + + ..\packages\Microsoft.AspNet.Web.Optimization.1.1.3\lib\net40\System.Web.Optimization.dll + + + True + ..\packages\Microsoft.AspNet.Razor.3.2.9\lib\net45\System.Web.Razor.dll + + + True + ..\packages\Microsoft.AspNet.WebPages.3.2.9\lib\net45\System.Web.WebPages.dll + + + True + ..\packages\Microsoft.AspNet.WebPages.3.2.9\lib\net45\System.Web.WebPages.Deployment.dll + + + True + ..\packages\Microsoft.AspNet.WebPages.3.2.9\lib\net45\System.Web.WebPages.Razor.dll + + + ..\packages\Newtonsoft.Json.13.0.3\lib\net45\Newtonsoft.Json.dll + + + True + ..\packages\WebGrease.1.6.0\lib\WebGrease.dll + + + True + ..\packages\Antlr.3.5.0.2\lib\Antlr3.Runtime.dll + + + + + ..\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.2.0.1\lib\net45\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.dll + + + + + + + + + Global.asax + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Web.config + + + Web.config + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 10.0 + $(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion) + + + + + + + + + + + + True + True + 60536 + / + http://localhost:60536/ + False + False + + + False + + + + + + \ No newline at end of file diff --git a/How to/Add Handwritten Signature Programmatically/PDFViewerSample/PDFViewerSample/PDFViewerSample.csproj.user b/How to/Add Handwritten Signature Programmatically/PDFViewerSample/PDFViewerSample/PDFViewerSample.csproj.user new file mode 100644 index 0000000..db86229 --- /dev/null +++ b/How to/Add Handwritten Signature Programmatically/PDFViewerSample/PDFViewerSample/PDFViewerSample.csproj.user @@ -0,0 +1,6 @@ + + + + Debug|Any CPU + + \ No newline at end of file diff --git a/How to/Add Handwritten Signature Programmatically/PDFViewerSample/PDFViewerSample/Properties/AssemblyInfo.cs b/How to/Add Handwritten Signature Programmatically/PDFViewerSample/PDFViewerSample/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..1cec5cf --- /dev/null +++ b/How to/Add Handwritten Signature Programmatically/PDFViewerSample/PDFViewerSample/Properties/AssemblyInfo.cs @@ -0,0 +1,35 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("PDFViewerSample")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("PDFViewerSample")] +[assembly: AssemblyCopyright("Copyright © 2024")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("82d0130c-7c1e-49d3-ba06-f11eefafbd5c")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Revision and Build Numbers +// by using the '*' as shown below: +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/How to/Add Handwritten Signature Programmatically/PDFViewerSample/PDFViewerSample/Views/Home/About.cshtml b/How to/Add Handwritten Signature Programmatically/PDFViewerSample/PDFViewerSample/Views/Home/About.cshtml new file mode 100644 index 0000000..0dbf1c6 --- /dev/null +++ b/How to/Add Handwritten Signature Programmatically/PDFViewerSample/PDFViewerSample/Views/Home/About.cshtml @@ -0,0 +1,52 @@ +@{ + ViewBag.Title = "Home Page"; +} + + +
+ @Html.EJS().PdfViewer("pdfviewer").DocumentPath("https://cdn.syncfusion.com/content/pdf/hive-succinctly.pdf").Render() +
+ + \ No newline at end of file diff --git a/How to/Add Handwritten Signature Programmatically/PDFViewerSample/PDFViewerSample/Views/Home/Contact.cshtml b/How to/Add Handwritten Signature Programmatically/PDFViewerSample/PDFViewerSample/Views/Home/Contact.cshtml new file mode 100644 index 0000000..91aeb8a --- /dev/null +++ b/How to/Add Handwritten Signature Programmatically/PDFViewerSample/PDFViewerSample/Views/Home/Contact.cshtml @@ -0,0 +1,19 @@ +@{ + ViewBag.Title = "Contact"; +} +
+

@ViewBag.Title.

+

@ViewBag.Message

+ +
+ One Microsoft Way
+ Redmond, WA 98052-6399
+ P: + 425.555.0100 +
+ +
+ Support: Support@example.com
+ Marketing: Marketing@example.com +
+
\ No newline at end of file diff --git a/How to/Add Handwritten Signature Programmatically/PDFViewerSample/PDFViewerSample/Views/Home/Index.cshtml b/How to/Add Handwritten Signature Programmatically/PDFViewerSample/PDFViewerSample/Views/Home/Index.cshtml new file mode 100644 index 0000000..f1948a7 --- /dev/null +++ b/How to/Add Handwritten Signature Programmatically/PDFViewerSample/PDFViewerSample/Views/Home/Index.cshtml @@ -0,0 +1,33 @@ +@{ + ViewBag.Title = "Home Page"; +} + +
+
+

ASP.NET

+

ASP.NET is a free web framework for building great Web sites and Web applications using HTML, CSS and JavaScript.

+

Learn more »

+
+ +
+
+

Getting started

+

+ ASP.NET MVC gives you a powerful, patterns-based way to build dynamic websites that + enables a clean separation of concerns and gives you full control over markup + for enjoyable, agile development. +

+

Learn more »

+
+
+

Get more libraries

+

NuGet is a free Visual Studio extension that makes it easy to add, remove, and update libraries and tools in Visual Studio projects.

+

Learn more »

+
+
+

Web Hosting

+

You can easily find a web hosting company that offers the right mix of features and price for your applications.

+

Learn more »

+
+
+
\ No newline at end of file diff --git a/How to/Add Handwritten Signature Programmatically/PDFViewerSample/PDFViewerSample/Views/Shared/Error.cshtml b/How to/Add Handwritten Signature Programmatically/PDFViewerSample/PDFViewerSample/Views/Shared/Error.cshtml new file mode 100644 index 0000000..4c9a28a --- /dev/null +++ b/How to/Add Handwritten Signature Programmatically/PDFViewerSample/PDFViewerSample/Views/Shared/Error.cshtml @@ -0,0 +1,13 @@ + + + + + Error + + +
+

Error.

+

An error occurred while processing your request.

+
+ + diff --git a/How to/Add Handwritten Signature Programmatically/PDFViewerSample/PDFViewerSample/Views/Shared/_Layout.cshtml b/How to/Add Handwritten Signature Programmatically/PDFViewerSample/PDFViewerSample/Views/Shared/_Layout.cshtml new file mode 100644 index 0000000..a896b33 --- /dev/null +++ b/How to/Add Handwritten Signature Programmatically/PDFViewerSample/PDFViewerSample/Views/Shared/_Layout.cshtml @@ -0,0 +1,45 @@ + + + + + + @ViewBag.Title - My ASP.NET Application + @Styles.Render("~/Content/css") + @Scripts.Render("~/bundles/modernizr") + + + + + + + +
+ @RenderBody() +
+
+

© @DateTime.Now.Year - My ASP.NET Application

+
+
+ + @Scripts.Render("~/bundles/jquery") + @Scripts.Render("~/bundles/bootstrap") + @RenderSection("scripts", required: false) + + @Html.EJS().ScriptManager() + + diff --git a/How to/Add Handwritten Signature Programmatically/PDFViewerSample/PDFViewerSample/Views/Web.config b/How to/Add Handwritten Signature Programmatically/PDFViewerSample/PDFViewerSample/Views/Web.config new file mode 100644 index 0000000..20a47a9 --- /dev/null +++ b/How to/Add Handwritten Signature Programmatically/PDFViewerSample/PDFViewerSample/Views/Web.config @@ -0,0 +1,44 @@ + + + + + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/How to/Add Handwritten Signature Programmatically/PDFViewerSample/PDFViewerSample/Views/_ViewStart.cshtml b/How to/Add Handwritten Signature Programmatically/PDFViewerSample/PDFViewerSample/Views/_ViewStart.cshtml new file mode 100644 index 0000000..2de6241 --- /dev/null +++ b/How to/Add Handwritten Signature Programmatically/PDFViewerSample/PDFViewerSample/Views/_ViewStart.cshtml @@ -0,0 +1,3 @@ +@{ + Layout = "~/Views/Shared/_Layout.cshtml"; +} diff --git a/How to/Add Handwritten Signature Programmatically/PDFViewerSample/PDFViewerSample/Web.Debug.config b/How to/Add Handwritten Signature Programmatically/PDFViewerSample/PDFViewerSample/Web.Debug.config new file mode 100644 index 0000000..d7712aa --- /dev/null +++ b/How to/Add Handwritten Signature Programmatically/PDFViewerSample/PDFViewerSample/Web.Debug.config @@ -0,0 +1,30 @@ + + + + + + + + + + diff --git a/How to/Add Handwritten Signature Programmatically/PDFViewerSample/PDFViewerSample/Web.Release.config b/How to/Add Handwritten Signature Programmatically/PDFViewerSample/PDFViewerSample/Web.Release.config new file mode 100644 index 0000000..28a4d5f --- /dev/null +++ b/How to/Add Handwritten Signature Programmatically/PDFViewerSample/PDFViewerSample/Web.Release.config @@ -0,0 +1,31 @@ + + + + + + + + + + + diff --git a/How to/Add Handwritten Signature Programmatically/PDFViewerSample/PDFViewerSample/Web.config b/How to/Add Handwritten Signature Programmatically/PDFViewerSample/PDFViewerSample/Web.config new file mode 100644 index 0000000..fb8682e --- /dev/null +++ b/How to/Add Handwritten Signature Programmatically/PDFViewerSample/PDFViewerSample/Web.config @@ -0,0 +1,89 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/How to/Add Handwritten Signature Programmatically/PDFViewerSample/PDFViewerSample/favicon.ico b/How to/Add Handwritten Signature Programmatically/PDFViewerSample/PDFViewerSample/favicon.ico new file mode 100644 index 0000000000000000000000000000000000000000..a3a799985c43bc7309d701b2cad129023377dc71 GIT binary patch literal 32038 zcmeHwX>eTEbtY7aYbrGrkNjgie?1jXjZ#zP%3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_5J^i(9Z7$(XG9~I3sY)`OGZ#_L06+Dy4E>UstcP-rU@xJ$&rxvo!n1Ao`P~KLU-8 z{zDgN4-&A6N!kPSYbQ&7sLufi`YtE2uN$S?e&5n>Y4(q#|KP!cc1j)T^QrUXMPFaP z_SoYO8S8G}Z$?AL4`;pE?7J5K8yWqy23>cCT2{=-)+A$X^-I9=e!@J@A&-;Ufc)`H}c(VI&;0x zrrGv()5mjP%jXzS{^|29?bLNXS0bC%p!YXI!;O457rjCEEzMkGf~B3$T}dXBO23tP z+Ci>;5UoM?C@bU@f9G1^X3=ly&ZeFH<@|RnOG--A&)fd)AUgjw?%izq{p(KJ`EP0v z2mU)P!+3t@X14DA=E2RR-|p${GZ9ETX=d+kJRZL$nSa0daI@&oUUxnZg0xd_xu>Vz lzF#z5%kSKX?YLH3ll^(hI(_`L*t#Iva2Ede*Z;>H_ + + + + + + + + + + + + + + + + + + + From 40c8ca3acc6f18cf5d5e0c121b6ede12959c21d3 Mon Sep 17 00:00:00 2001 From: VijayalakshmiGSF4561 Date: Thu, 19 Sep 2024 19:57:45 +0530 Subject: [PATCH 2/2] 897552: Modified signature position --- .../PDFViewerSample/PDFViewerSample/Views/Home/About.cshtml | 6 +++--- .../PDFViewerSample/Views/Shared/_Layout.cshtml | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/How to/Add Handwritten Signature Programmatically/PDFViewerSample/PDFViewerSample/Views/Home/About.cshtml b/How to/Add Handwritten Signature Programmatically/PDFViewerSample/PDFViewerSample/Views/Home/About.cshtml index 0dbf1c6..aedcaba 100644 --- a/How to/Add Handwritten Signature Programmatically/PDFViewerSample/PDFViewerSample/Views/Home/About.cshtml +++ b/How to/Add Handwritten Signature Programmatically/PDFViewerSample/PDFViewerSample/Views/Home/About.cshtml @@ -11,7 +11,7 @@ function addAnnotation() { var pdfViewer = document.getElementById('pdfviewer').ej2_instances[0]; viewer.annotation.addAnnotation("HandWrittenSignature", { - offset: { x: 220, y: 180 }, + offset: { x: 10, y: 10 }, pageNumber: 1, width: 150, height: 60, @@ -23,7 +23,7 @@ path: '[{\"command\":\"M\",\"x\":244.83334350585938,\"y\":982.0000305175781},{\"command\":\"L\",\"x\":244.83334350585938,\"y\":982.0000305175781},{\"command\":\"L\",\"x\":250.83334350585938,\"y\":953.3333435058594},{\"command\":\"L\",\"x\":252.83334350585938,\"y\":946.0000305175781},{\"command\":\"L\",\"x\":254.16668701171875,\"y\":940.6667175292969},{\"command\":\"L\",\"x\":256.8333435058594,\"y\":931.3333435058594},{\"command\":\"L\",\"x\":257.5,\"y\":929.3333435058594},{\"command\":\"L\",\"x\":258.8333435058594,\"y\":926.6667175292969},{\"command\":\"L\",\"x\":259.5,\"y\":924.0000305175781},{\"command\":\"L\",\"x\":259.5,\"y\":922.6667175292969},{\"command\":\"L\",\"x\":258.8333435058594,\"y\":922.0000305175781},{\"command\":\"L\",\"x\":258.16668701171875,\"y\":922.0000305175781},{\"command\":\"L\",\"x\":256.8333435058594,\"y\":922.0000305175781},{\"command\":\"L\",\"x\":256.16668701171875,\"y\":922.6667175292969},{\"command\":\"L\",\"x\":254.83334350585938,\"y\":923.3333435058594},{\"command\":\"L\",\"x\":254.16668701171875,\"y\":923.3333435058594},{\"command\":\"L\",\"x\":253.5,\"y\":923.3333435058594},{\"command\":\"L\",\"x\":252.83334350585938,\"y\":925.3333435058594},{\"command\":\"L\",\"x\":252.83334350585938,\"y\":927.3333435058594},{\"command\":\"L\",\"x\":252.83334350585938,\"y\":936.0000305175781},{\"command\":\"L\",\"x\":253.5,\"y\":940.6667175292969},{\"command\":\"L\",\"x\":254.83334350585938,\"y\":944.6667175292969},{\"command\":\"L\",\"x\":260.16668701171875,\"y\":952.0000305175781},{\"command\":\"L\",\"x\":264.16668701171875,\"y\":954.0000305175781},{\"command\":\"L\",\"x\":274.16668701171875,\"y\":958.6667175292969},{\"command\":\"L\",\"x\":278.16668701171875,\"y\":960.0000305175781},{\"command\":\"L\",\"x\":281.5,\"y\":961.3333435058594},{\"command\":\"L\",\"x\":285.5,\"y\":964.6667175292969},{\"command\":\"L\",\"x\":286.8333740234375,\"y\":967.3333435058594},{\"command\":\"L\",\"x\":286.8333740234375,\"y\":970.0000305175781},{\"command\":\"L\",\"x\":282.8333740234375,\"y\":978.6667175292969},{\"command\":\"L\",\"x\":278.16668701171875,\"y\":983.3333435058594},{\"command\":\"L\",\"x\":266.16668701171875,\"y\":991.3333435058594},{\"command\":\"L\",\"x\":259.5,\"y\":993.3333435058594},{\"command\":\"L\",\"x\":252.16668701171875,\"y\":994.0000305175781},{\"command\":\"L\",\"x\":240.83334350585938,\"y\":991.3333435058594},{\"command\":\"L\",\"x\":236.16668701171875,\"y\":988.6667175292969},{\"command\":\"L\",\"x\":230.16668701171875,\"y\":982.6667175292969},{\"command\":\"L\",\"x\":228.83334350585938,\"y\":980.6667175292969},{\"command\":\"L\",\"x\":228.16668701171875,\"y\":978.6667175292969},{\"command\":\"L\",\"x\":228.83334350585938,\"y\":974.6667175292969},{\"command\":\"L\",\"x\":230.16668701171875,\"y\":973.3333435058594},{\"command\":\"L\",\"x\":236.16668701171875,\"y\":971.3333435058594},{\"command\":\"L\",\"x\":240.83334350585938,\"y\":971.3333435058594},{\"command\":\"L\",\"x\":246.16668701171875,\"y\":972.0000305175781},{\"command\":\"L\",\"x\":257.5,\"y\":974.6667175292969},{\"command\":\"L\",\"x\":262.8333435058594,\"y\":976.0000305175781},{\"command\":\"L\",\"x\":269.5,\"y\":977.3333435058594},{\"command\":\"L\",\"x\":276.16668701171875,\"y\":978.6667175292969},{\"command\":\"L\",\"x\":279.5,\"y\":978.0000305175781},{\"command\":\"L\",\"x\":285.5,\"y\":976.6667175292969},{\"command\":\"L\",\"x\":288.16668701171875,\"y\":974.6667175292969},{\"command\":\"L\",\"x\":292.8333740234375,\"y\":969.3333435058594},{\"command\":\"L\",\"x\":293.5,\"y\":966.6667175292969},{\"command\":\"L\",\"x\":294.16668701171875,\"y\":964.0000305175781},{\"command\":\"L\",\"x\":293.5,\"y\":960.0000305175781},{\"command\":\"L\",\"x\":293.5,\"y\":958.0000305175781},{\"command\":\"L\",\"x\":292.8333740234375,\"y\":956.6667175292969},{\"command\":\"L\",\"x\":291.5,\"y\":954.6667175292969},{\"command\":\"L\",\"x\":291.5,\"y\":954.0000305175781},{\"command\":\"L\",\"x\":291.5,\"y\":953.3333435058594},{\"command\":\"L\",\"x\":291.5,\"y\":954.0000305175781},{\"command\":\"L\",\"x\":292.16668701171875,\"y\":954.6667175292969},{\"command\":\"L\",\"x\":292.8333740234375,\"y\":956.0000305175781},{\"command\":\"L\",\"x\":294.16668701171875,\"y\":961.3333435058594},{\"command\":\"L\",\"x\":295.5,\"y\":964.6667175292969},{\"command\":\"L\",\"x\":297.5,\"y\":969.3333435058594},{\"command\":\"L\",\"x\":298.8333740234375,\"y\":970.6667175292969},{\"command\":\"L\",\"x\":301.5,\"y\":970.0000305175781},{\"command\":\"L\",\"x\":304.16668701171875,\"y\":968.6667175292969},{\"command\":\"L\",\"x\":305.5,\"y\":966.0000305175781},{\"command\":\"L\",\"x\":308.8333740234375,\"y\":960.0000305175781},{\"command\":\"L\",\"x\":310.16668701171875,\"y\":957.3333435058594},{\"command\":\"L\",\"x\":310.8333740234375,\"y\":956.0000305175781},{\"command\":\"L\",\"x\":310.8333740234375,\"y\":954.6667175292969},{\"command\":\"L\",\"x\":310.8333740234375,\"y\":954.0000305175781},{\"command\":\"L\",\"x\":311.5,\"y\":956.0000305175781},{\"command\":\"L\",\"x\":312.8333740234375,\"y\":959.3333435058594},{\"command\":\"L\",\"x\":316.16668701171875,\"y\":968.0000305175781},{\"command\":\"L\",\"x\":317.5,\"y\":972.6667175292969},{\"command\":\"L\",\"x\":318.16668701171875,\"y\":977.3333435058594},{\"command\":\"L\",\"x\":319.5,\"y\":983.3333435058594},{\"command\":\"L\",\"x\":319.5,\"y\":986.0000305175781},{\"command\":\"L\",\"x\":319.5,\"y\":988.0000305175781},{\"command\":\"L\",\"x\":318.8333740234375,\"y\":988.0000305175781},{\"command\":\"L\",\"x\":318.16668701171875,\"y\":988.6667175292969},{\"command\":\"L\",\"x\":316.16668701171875,\"y\":987.3333435058594},{\"command\":\"L\",\"x\":314.8333740234375,\"y\":985.3333435058594},{\"command\":\"L\",\"x\":314.16668701171875,\"y\":980.6667175292969},{\"command\":\"L\",\"x\":314.8333740234375,\"y\":974.6667175292969},{\"command\":\"L\",\"x\":316.16668701171875,\"y\":969.3333435058594},{\"command\":\"L\",\"x\":319.5,\"y\":960.6667175292969},{\"command\":\"L\",\"x\":320.16668701171875,\"y\":957.3333435058594},{\"command\":\"L\",\"x\":321.5,\"y\":955.3333435058594},{\"command\":\"L\",\"x\":322.16668701171875,\"y\":953.3333435058594},{\"command\":\"L\",\"x\":322.8333740234375,\"y\":952.6667175292969},{\"command\":\"L\",\"x\":324.16668701171875,\"y\":952.6667175292969},{\"command\":\"L\",\"x\":324.8333740234375,\"y\":953.3333435058594},{\"command\":\"L\",\"x\":326.8333740234375,\"y\":956.0000305175781},{\"command\":\"L\",\"x\":328.16668701171875,\"y\":958.0000305175781},{\"command\":\"L\",\"x\":328.8333740234375,\"y\":960.0000305175781},{\"command\":\"L\",\"x\":329.5,\"y\":962.0000305175781},{\"command\":\"L\",\"x\":330.16668701171875,\"y\":962.0000305175781},{\"command\":\"L\",\"x\":330.16668701171875,\"y\":962.6667175292969},{\"command\":\"L\",\"x\":330.16668701171875,\"y\":962.0000305175781},{\"command\":\"L\",\"x\":330.8333740234375,\"y\":960.0000305175781},{\"command\":\"L\",\"x\":331.5,\"y\":956.0000305175781},{\"command\":\"L\",\"x\":332.8333740234375,\"y\":952.0000305175781},{\"command\":\"L\",\"x\":333.5,\"y\":950.0000305175781},{\"command\":\"L\",\"x\":334.8333740234375,\"y\":948.6667175292969},{\"command\":\"L\",\"x\":335.5,\"y\":948.6667175292969},{\"command\":\"L\",\"x\":336.16668701171875,\"y\":948.6667175292969},{\"command\":\"L\",\"x\":337.5,\"y\":950.6667175292969},{\"command\":\"L\",\"x\":338.8333740234375,\"y\":952.0000305175781},{\"command\":\"L\",\"x\":340.8333740234375,\"y\":954.0000305175781},{\"command\":\"L\",\"x\":341.5,\"y\":954.0000305175781},{\"command\":\"L\",\"x\":342.8333740234375,\"y\":954.6667175292969},{\"command\":\"L\",\"x\":344.8333740234375,\"y\":954.0000305175781},{\"command\":\"L\",\"x\":346.8333740234375,\"y\":952.6667175292969},{\"command\":\"L\",\"x\":349.5,\"y\":949.3333435058594},{\"command\":\"L\",\"x\":350.8333740234375,\"y\":948.0000305175781},{\"command\":\"L\",\"x\":351.5,\"y\":946.6667175292969},{\"command\":\"L\",\"x\":352.8333740234375,\"y\":944.0000305175781},{\"command\":\"L\",\"x\":352.8333740234375,\"y\":943.3333435058594},{\"command\":\"L\",\"x\":354.16668701171875,\"y\":942.0000305175781},{\"command\":\"L\",\"x\":354.8333740234375,\"y\":942.0000305175781},{\"command\":\"L\",\"x\":354.8333740234375,\"y\":942.6667175292969},{\"command\":\"L\",\"x\":354.16668701171875,\"y\":943.3333435058594},{\"command\":\"L\",\"x\":354.16668701171875,\"y\":946.6667175292969},{\"command\":\"L\",\"x\":354.16668701171875,\"y\":950.0000305175781},{\"command\":\"L\",\"x\":355.5,\"y\":956.0000305175781},{\"command\":\"L\",\"x\":356.16668701171875,\"y\":957.3333435058594},{\"command\":\"L\",\"x\":358.16668701171875,\"y\":959.3333435058594},{\"command\":\"L\",\"x\":360.16668701171875,\"y\":958.0000305175781},{\"command\":\"L\",\"x\":364.16668701171875,\"y\":956.0000305175781},{\"command\":\"L\",\"x\":370.8333740234375,\"y\":948.6667175292969},{\"command\":\"L\",\"x\":373.5,\"y\":943.3333435058594},{\"command\":\"L\",\"x\":375.5,\"y\":937.3333435058594},{\"command\":\"L\",\"x\":376.16668701171875,\"y\":933.3333435058594},{\"command\":\"L\",\"x\":376.8333740234375,\"y\":931.3333435058594},{\"command\":\"L\",\"x\":376.8333740234375,\"y\":930.0000305175781},{\"command\":\"L\",\"x\":376.8333740234375,\"y\":929.3333435058594},{\"command\":\"L\",\"x\":376.16668701171875,\"y\":930.0000305175781},{\"command\":\"L\",\"x\":375.5,\"y\":932.0000305175781},{\"command\":\"L\",\"x\":375.5,\"y\":937.3333435058594},{\"command\":\"L\",\"x\":374.8333740234375,\"y\":953.3333435058594},{\"command\":\"L\",\"x\":374.8333740234375,\"y\":960.6667175292969},{\"command\":\"L\",\"x\":375.5,\"y\":966.0000305175781},{\"command\":\"L\",\"x\":377.5,\"y\":974.6667175292969},{\"command\":\"L\",\"x\":378.16668701171875,\"y\":977.3333435058594},{\"command\":\"L\",\"x\":380.8333740234375,\"y\":981.3333435058594},{\"command\":\"L\",\"x\":382.16668701171875,\"y\":982.6667175292969},{\"command\":\"L\",\"x\":383.5,\"y\":982.6667175292969},{\"command\":\"L\",\"x\":387.5,\"y\":982.6667175292969},{\"command\":\"L\",\"x\":389.5,\"y\":980.6667175292969},{\"command\":\"L\",\"x\":392.16668701171875,\"y\":976.6667175292969},{\"command\":\"L\",\"x\":392.8333740234375,\"y\":973.3333435058594},{\"command\":\"L\",\"x\":392.16668701171875,\"y\":970.0000305175781},{\"command\":\"L\",\"x\":388.8333740234375,\"y\":965.3333435058594},{\"command\":\"L\",\"x\":385.5,\"y\":964.0000305175781},{\"command\":\"L\",\"x\":382.8333740234375,\"y\":964.0000305175781},{\"command\":\"L\",\"x\":377.5,\"y\":964.0000305175781},{\"command\":\"L\",\"x\":375.5,\"y\":964.6667175292969},{\"command\":\"L\",\"x\":373.5,\"y\":965.3333435058594},{\"command\":\"L\",\"x\":374.8333740234375,\"y\":963.3333435058594},{\"command\":\"L\",\"x\":376.8333740234375,\"y\":961.3333435058594},{\"command\":\"L\",\"x\":382.16668701171875,\"y\":956.0000305175781},{\"command\":\"L\",\"x\":384.16668701171875,\"y\":953.3333435058594},{\"command\":\"L\",\"x\":387.5,\"y\":950.6667175292969},{\"command\":\"L\",\"x\":388.16668701171875,\"y\":952.0000305175781},{\"command\":\"L\",\"x\":388.16668701171875,\"y\":952.6667175292969},{\"command\":\"L\",\"x\":388.8333740234375,\"y\":954.0000305175781},{\"command\":\"L\",\"x\":388.8333740234375,\"y\":954.6667175292969},{\"command\":\"L\",\"x\":389.5,\"y\":959.3333435058594},{\"command\":\"L\",\"x\":389.5,\"y\":960.6667175292969},{\"command\":\"L\",\"x\":390.16668701171875,\"y\":961.3333435058594},{\"command\":\"L\",\"x\":390.8333740234375,\"y\":960.6667175292969},{\"command\":\"L\",\"x\":393.5,\"y\":958.0000305175781},{\"command\":\"L\",\"x\":396.8333740234375,\"y\":954.0000305175781},{\"command\":\"L\",\"x\":398.16668701171875,\"y\":952.0000305175781},{\"command\":\"L\",\"x\":400.16668701171875,\"y\":949.3333435058594},{\"command\":\"L\",\"x\":400.16668701171875,\"y\":948.6667175292969},{\"command\":\"L\",\"x\":400.8333740234375,\"y\":948.0000305175781},{\"command\":\"L\",\"x\":400.8333740234375,\"y\":947.3333435058594},{\"command\":\"L\",\"x\":401.5,\"y\":948.0000305175781},{\"command\":\"L\",\"x\":402.16668701171875,\"y\":949.3333435058594},{\"command\":\"L\",\"x\":403.5,\"y\":950.6667175292969},{\"command\":\"L\",\"x\":404.8333740234375,\"y\":953.3333435058594},{\"command\":\"L\",\"x\":406.16668701171875,\"y\":954.0000305175781},{\"command\":\"L\",\"x\":407.5,\"y\":954.0000305175781},{\"command\":\"L\",\"x\":410.16668701171875,\"y\":952.0000305175781},{\"command\":\"L\",\"x\":412.16668701171875,\"y\":949.3333435058594},{\"command\":\"L\",\"x\":414.16668701171875,\"y\":944.6667175292969},{\"command\":\"L\",\"x\":414.16668701171875,\"y\":942.0000305175781},{\"command\":\"L\",\"x\":414.16668701171875,\"y\":940.6667175292969},{\"command\":\"L\",\"x\":414.16668701171875,\"y\":938.6667175292969},{\"command\":\"L\",\"x\":414.16668701171875,\"y\":938.0000305175781},{\"command\":\"L\",\"x\":415.5,\"y\":939.3333435058594},{\"command\":\"L\",\"x\":418.8333740234375,\"y\":942.6667175292969},{\"command\":\"L\",\"x\":420.16668701171875,\"y\":945.3333435058594},{\"command\":\"L\",\"x\":421.5,\"y\":946.6667175292969},{\"command\":\"L\",\"x\":422.8333740234375,\"y\":950.0000305175781},{\"command\":\"L\",\"x\":423.5,\"y\":950.6667175292969},{\"command\":\"L\",\"x\":423.5,\"y\":953.3333435058594},{\"command\":\"L\",\"x\":422.8333740234375,\"y\":954.0000305175781},{\"command\":\"L\",\"x\":421.5,\"y\":955.3333435058594},{\"command\":\"L\",\"x\":421.5,\"y\":956.0000305175781},{\"command\":\"L\",\"x\":422.16668701171875,\"y\":954.6667175292969},{\"command\":\"L\",\"x\":422.8333740234375,\"y\":954.0000305175781},{\"command\":\"L\",\"x\":424.8333740234375,\"y\":950.6667175292969},{\"command\":\"L\",\"x\":425.5,\"y\":948.6667175292969},{\"command\":\"L\",\"x\":428.16668701171875,\"y\":945.3333435058594},{\"command\":\"L\",\"x\":428.8333740234375,\"y\":943.3333435058594},{\"command\":\"L\",\"x\":428.8333740234375,\"y\":942.6667175292969},{\"command\":\"L\",\"x\":428.8333740234375,\"y\":943.3333435058594},{\"command\":\"L\",\"x\":428.8333740234375,\"y\":945.3333435058594},{\"command\":\"L\",\"x\":428.8333740234375,\"y\":948.0000305175781},{\"command\":\"L\",\"x\":428.8333740234375,\"y\":950.0000305175781},{\"command\":\"L\",\"x\":429.5,\"y\":953.3333435058594},{\"command\":\"L\",\"x\":430.16668701171875,\"y\":953.3333435058594},{\"command\":\"L\",\"x\":432.8333740234375,\"y\":952.6667175292969},{\"command\":\"L\",\"x\":434.8333740234375,\"y\":950.6667175292969},{\"command\":\"L\",\"x\":437.5,\"y\":948.6667175292969},{\"command\":\"L\",\"x\":440.16668701171875,\"y\":944.6667175292969},{\"command\":\"L\",\"x\":441.5,\"y\":942.6667175292969},{\"command\":\"L\",\"x\":442.16668701171875,\"y\":942.0000305175781},{\"command\":\"L\",\"x\":442.8333740234375,\"y\":941.3333435058594},{\"command\":\"L\",\"x\":442.8333740234375,\"y\":942.0000305175781},{\"command\":\"L\",\"x\":442.8333740234375,\"y\":943.3333435058594},{\"command\":\"L\",\"x\":442.8333740234375,\"y\":944.6667175292969},{\"command\":\"L\",\"x\":442.8333740234375,\"y\":946.0000305175781},{\"command\":\"L\",\"x\":443.5,\"y\":949.3333435058594},{\"command\":\"L\",\"x\":444.16668701171875,\"y\":950.6667175292969},{\"command\":\"L\",\"x\":445.5,\"y\":950.6667175292969},{\"command\":\"L\",\"x\":447.5,\"y\":950.6667175292969},{\"command\":\"L\",\"x\":450.16668701171875,\"y\":948.6667175292969},{\"command\":\"L\",\"x\":452.16668701171875,\"y\":945.3333435058594},{\"command\":\"L\",\"x\":453.5,\"y\":942.6667175292969},{\"command\":\"L\",\"x\":452.8333740234375,\"y\":938.6667175292969},{\"command\":\"L\",\"x\":452.16668701171875,\"y\":937.3333435058594},{\"command\":\"L\",\"x\":450.8333740234375,\"y\":936.6667175292969},{\"command\":\"L\",\"x\":448.8333740234375,\"y\":936.0000305175781},{\"command\":\"L\",\"x\":447.5,\"y\":936.6667175292969},{\"command\":\"L\",\"x\":446.16668701171875,\"y\":937.3333435058594},{\"command\":\"L\",\"x\":445.5,\"y\":938.6667175292969},{\"command\":\"L\",\"x\":445.5,\"y\":939.3333435058594},{\"command\":\"L\",\"x\":446.16668701171875,\"y\":939.3333435058594},{\"command\":\"L\",\"x\":446.8333740234375,\"y\":939.3333435058594},{\"command\":\"L\",\"x\":452.16668701171875,\"y\":937.3333435058594},{\"command\":\"L\",\"x\":454.8333740234375,\"y\":936.6667175292969},{\"command\":\"L\",\"x\":456.8333740234375,\"y\":936.0000305175781},{\"command\":\"L\",\"x\":459.5,\"y\":936.6667175292969},{\"command\":\"L\",\"x\":460.8333740234375,\"y\":937.3333435058594},{\"command\":\"L\",\"x\":461.5,\"y\":938.6667175292969},{\"command\":\"L\",\"x\":462.16668701171875,\"y\":942.0000305175781},{\"command\":\"L\",\"x\":462.16668701171875,\"y\":942.6667175292969},{\"command\":\"L\",\"x\":462.16668701171875,\"y\":944.0000305175781},{\"command\":\"L\",\"x\":462.16668701171875,\"y\":943.3333435058594},{\"command\":\"L\",\"x\":462.16668701171875,\"y\":942.6667175292969},{\"command\":\"L\",\"x\":462.16668701171875,\"y\":941.3333435058594},{\"command\":\"L\",\"x\":462.8333740234375,\"y\":938.6667175292969},{\"command\":\"L\",\"x\":464.16668701171875,\"y\":935.3333435058594},{\"command\":\"L\",\"x\":465.5,\"y\":933.3333435058594},{\"command\":\"L\",\"x\":466.16668701171875,\"y\":932.6667175292969},{\"command\":\"L\",\"x\":467.5,\"y\":933.3333435058594},{\"command\":\"L\",\"x\":469.5,\"y\":935.3333435058594},{\"command\":\"L\",\"x\":470.16668701171875,\"y\":938.6667175292969},{\"command\":\"L\",\"x\":472.8333740234375,\"y\":943.3333435058594},{\"command\":\"L\",\"x\":472.8333740234375,\"y\":944.6667175292969},{\"command\":\"L\",\"x\":474.16668701171875,\"y\":944.6667175292969},{\"command\":\"L\",\"x\":475.5,\"y\":944.0000305175781},{\"command\":\"L\",\"x\":478.16668701171875,\"y\":941.3333435058594},{\"command\":\"L\",\"x\":481.5,\"y\":937.3333435058594},{\"command\":\"L\",\"x\":484.8333740234375,\"y\":934.0000305175781},{\"command\":\"L\",\"x\":488.8333740234375,\"y\":929.3333435058594},{\"command\":\"L\",\"x\":489.5,\"y\":928.0000305175781}]' }); viewer.annotation.addAnnotation("HandWrittenSignature", { - offset: { x: 200, y: 310 }, + offset: { x: 200, y: 10 }, pageNumber: 1, width: 200, height: 65, @@ -36,7 +36,7 @@ fontFamily: "Helvetica", }); viewer.annotation.addAnnotation("Initial", { - offset: { x: 200, y: 500 }, + offset: { x: 450, y: 10 }, pageNumber: 1, width: 200, height: 80, diff --git a/How to/Add Handwritten Signature Programmatically/PDFViewerSample/PDFViewerSample/Views/Shared/_Layout.cshtml b/How to/Add Handwritten Signature Programmatically/PDFViewerSample/PDFViewerSample/Views/Shared/_Layout.cshtml index a896b33..d9756c1 100644 --- a/How to/Add Handwritten Signature Programmatically/PDFViewerSample/PDFViewerSample/Views/Shared/_Layout.cshtml +++ b/How to/Add Handwritten Signature Programmatically/PDFViewerSample/PDFViewerSample/Views/Shared/_Layout.cshtml @@ -7,9 +7,9 @@ @Styles.Render("~/Content/css") @Scripts.Render("~/bundles/modernizr") - + - +