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..aedcaba --- /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..d9756c1 --- /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 0000000..a3a7999 Binary files /dev/null and b/How to/Add Handwritten Signature Programmatically/PDFViewerSample/PDFViewerSample/favicon.ico differ diff --git a/How to/Add Handwritten Signature Programmatically/PDFViewerSample/PDFViewerSample/packages.config b/How to/Add Handwritten Signature Programmatically/PDFViewerSample/PDFViewerSample/packages.config new file mode 100644 index 0000000..964e330 --- /dev/null +++ b/How to/Add Handwritten Signature Programmatically/PDFViewerSample/PDFViewerSample/packages.config @@ -0,0 +1,20 @@ + + + + + + + + + + + + + + + + + + + +