diff --git a/How to/Line Angle Constraint/PDFViewer/App_Start/BundleConfig.cs b/How to/Line Angle Constraint/PDFViewer/App_Start/BundleConfig.cs new file mode 100644 index 0000000..dd9d788 --- /dev/null +++ b/How to/Line Angle Constraint/PDFViewer/App_Start/BundleConfig.cs @@ -0,0 +1,30 @@ +using System.Web; +using System.Web.Optimization; + +namespace PDFViewer +{ + 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/Line Angle Constraint/PDFViewer/App_Start/FilterConfig.cs b/How to/Line Angle Constraint/PDFViewer/App_Start/FilterConfig.cs new file mode 100644 index 0000000..a4853fc --- /dev/null +++ b/How to/Line Angle Constraint/PDFViewer/App_Start/FilterConfig.cs @@ -0,0 +1,13 @@ +using System.Web; +using System.Web.Mvc; + +namespace PDFViewer +{ + public class FilterConfig + { + public static void RegisterGlobalFilters(GlobalFilterCollection filters) + { + filters.Add(new HandleErrorAttribute()); + } + } +} diff --git a/How to/Line Angle Constraint/PDFViewer/App_Start/RouteConfig.cs b/How to/Line Angle Constraint/PDFViewer/App_Start/RouteConfig.cs new file mode 100644 index 0000000..cb40335 --- /dev/null +++ b/How to/Line Angle Constraint/PDFViewer/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 PDFViewer +{ + 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/Line Angle Constraint/PDFViewer/Controllers/HomeController.cs b/How to/Line Angle Constraint/PDFViewer/Controllers/HomeController.cs new file mode 100644 index 0000000..832e322 --- /dev/null +++ b/How to/Line Angle Constraint/PDFViewer/Controllers/HomeController.cs @@ -0,0 +1,30 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.Mvc; + +namespace PDFViewer.Controllers +{ + public class HomeController : Controller + { + 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(); + } + } +} \ No newline at end of file diff --git a/How to/Line Angle Constraint/PDFViewer/Global.asax b/How to/Line Angle Constraint/PDFViewer/Global.asax new file mode 100644 index 0000000..b424382 --- /dev/null +++ b/How to/Line Angle Constraint/PDFViewer/Global.asax @@ -0,0 +1 @@ +<%@ Application Codebehind="Global.asax.cs" Inherits="PDFViewer.MvcApplication" Language="C#" %> diff --git a/How to/Line Angle Constraint/PDFViewer/Global.asax.cs b/How to/Line Angle Constraint/PDFViewer/Global.asax.cs new file mode 100644 index 0000000..a24def1 --- /dev/null +++ b/How to/Line Angle Constraint/PDFViewer/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 PDFViewer +{ + 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/Line Angle Constraint/PDFViewer/PDFViewer.csproj b/How to/Line Angle Constraint/PDFViewer/PDFViewer.csproj new file mode 100644 index 0000000..6fabeee --- /dev/null +++ b/How to/Line Angle Constraint/PDFViewer/PDFViewer.csproj @@ -0,0 +1,340 @@ + + + + + + + Debug + AnyCPU + + + 2.0 + {A9053FE1-3D3D-4173-8579-CC720DBADECD} + {349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc} + Library + Properties + PDFViewer + PDFViewer + v4.7.2 + false + true + + 44308 + + + + + + + + + true + full + false + bin\ + DEBUG;TRACE + prompt + 4 + + + true + pdbonly + true + bin\ + TRACE + prompt + 4 + + + + + packages\Syncfusion.Pdf.AspNet.Mvc5.31.1.17\lib\net462\Syncfusion.Compression.Base.dll + + + packages\Syncfusion.EJ2.MVC5.31.1.17\lib\net462\Syncfusion.EJ2.dll + + + packages\Syncfusion.EJ2.PdfViewer.AspNet.Mvc5.31.1.17\lib\net462\Syncfusion.EJ2.PdfViewer.dll + + + packages\Syncfusion.Pdf.AspNet.Mvc5.31.1.17\lib\net462\Syncfusion.Licensing.dll + + + packages\Syncfusion.Pdf.AspNet.Mvc5.31.1.17\lib\net462\Syncfusion.Pdf.Base.dll + + + packages\Syncfusion.PdfToImageConverter.AspNet.Mvc5.31.1.17\lib\net462\Syncfusion.PdfToImageConverter.Base.dll + + + + + + + + + + + + packages\Microsoft.AspNet.WebPages.3.3.0\lib\net45\System.Web.Helpers.dll + + + packages\Microsoft.AspNet.Mvc.5.3.0\lib\net45\System.Web.Mvc.dll + + + packages\Microsoft.AspNet.Razor.3.3.0\lib\net45\System.Web.Razor.dll + + + packages\Microsoft.AspNet.WebPages.3.3.0\lib\net45\System.Web.WebPages.dll + + + packages\Microsoft.AspNet.WebPages.3.3.0\lib\net45\System.Web.WebPages.Deployment.dll + + + packages\Microsoft.AspNet.WebPages.3.3.0\lib\net45\System.Web.WebPages.Razor.dll + + + + + + + + + + + + True + packages\Microsoft.Web.Infrastructure.2.0.0\lib\net40\Microsoft.Web.Infrastructure.dll + + + + + + + packages\Microsoft.AspNet.Web.Optimization.1.1.3\lib\net40\System.Web.Optimization.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 + 57077 + / + https://localhost:44308/ + False + False + + + False + + + + + + + This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}. + + + + + + + + + + \ No newline at end of file diff --git a/How to/Line Angle Constraint/PDFViewer/PDFViewer.sln b/How to/Line Angle Constraint/PDFViewer/PDFViewer.sln new file mode 100644 index 0000000..7f99bbe --- /dev/null +++ b/How to/Line Angle Constraint/PDFViewer/PDFViewer.sln @@ -0,0 +1,22 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.12.35527.113 d17.12 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PDFViewer", "PDFViewer.csproj", "{A9053FE1-3D3D-4173-8579-CC720DBADECD}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {A9053FE1-3D3D-4173-8579-CC720DBADECD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {A9053FE1-3D3D-4173-8579-CC720DBADECD}.Debug|Any CPU.Build.0 = Debug|Any CPU + {A9053FE1-3D3D-4173-8579-CC720DBADECD}.Release|Any CPU.ActiveCfg = Release|Any CPU + {A9053FE1-3D3D-4173-8579-CC720DBADECD}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/How to/Line Angle Constraint/PDFViewer/Properties/AssemblyInfo.cs b/How to/Line Angle Constraint/PDFViewer/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..beb1681 --- /dev/null +++ b/How to/Line Angle Constraint/PDFViewer/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("PDFViewer")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("PDFViewer")] +[assembly: AssemblyCopyright("Copyright © 2025")] +[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("f82cd9ec-cf80-4229-bd75-0b7859e2edf5")] + +// 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/Line Angle Constraint/PDFViewer/Views/Home/About.cshtml b/How to/Line Angle Constraint/PDFViewer/Views/Home/About.cshtml new file mode 100644 index 0000000..5fa414e --- /dev/null +++ b/How to/Line Angle Constraint/PDFViewer/Views/Home/About.cshtml @@ -0,0 +1,9 @@ +@{ + ViewBag.Title = "About"; +} +
+

@ViewBag.Title.

+

@ViewBag.Message

+ +

Use this area to provide additional information.

+
\ No newline at end of file diff --git a/How to/Line Angle Constraint/PDFViewer/Views/Home/Contact.cshtml b/How to/Line Angle Constraint/PDFViewer/Views/Home/Contact.cshtml new file mode 100644 index 0000000..91aeb8a --- /dev/null +++ b/How to/Line Angle Constraint/PDFViewer/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/Line Angle Constraint/PDFViewer/Views/Home/Index.cshtml b/How to/Line Angle Constraint/PDFViewer/Views/Home/Index.cshtml new file mode 100644 index 0000000..d0945fc --- /dev/null +++ b/How to/Line Angle Constraint/PDFViewer/Views/Home/Index.cshtml @@ -0,0 +1,19 @@ +@using Syncfusion.EJ2 +@{ + ViewBag.Title = "Home Page"; +} + +
+ + @Html.EJS().PdfViewer("pdfviewer").DocumentPath("https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf").Render() +
+ + + + \ No newline at end of file diff --git a/How to/Line Angle Constraint/PDFViewer/Views/Shared/Error.cshtml b/How to/Line Angle Constraint/PDFViewer/Views/Shared/Error.cshtml new file mode 100644 index 0000000..4c9a28a --- /dev/null +++ b/How to/Line Angle Constraint/PDFViewer/Views/Shared/Error.cshtml @@ -0,0 +1,13 @@ + + + + + Error + + +
+

Error.

+

An error occurred while processing your request.

+
+ + diff --git a/How to/Line Angle Constraint/PDFViewer/Views/Shared/_Layout.cshtml b/How to/Line Angle Constraint/PDFViewer/Views/Shared/_Layout.cshtml new file mode 100644 index 0000000..67c7989 --- /dev/null +++ b/How to/Line Angle Constraint/PDFViewer/Views/Shared/_Layout.cshtml @@ -0,0 +1,47 @@ + +@using Syncfusion.EJ2 +@using Syncfusion.EJ2.Base +@using Syncfusion.EJ2.PdfViewer + + + + + + + @ViewBag.Title - My ASP.NET Application + @Styles.Render("~/Content/css") + @Scripts.Render("~/bundles/modernizr") + + + + + +
+ @RenderBody() +
+ +
+ + @Scripts.Render("~/bundles/jquery") + @Scripts.Render("~/bundles/bootstrap") + @RenderSection("scripts", required: false) + @Html.EJS().ScriptManager() + + diff --git a/How to/Line Angle Constraint/PDFViewer/Views/Web.config b/How to/Line Angle Constraint/PDFViewer/Views/Web.config new file mode 100644 index 0000000..6292185 --- /dev/null +++ b/How to/Line Angle Constraint/PDFViewer/Views/Web.config @@ -0,0 +1,43 @@ + + + + + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/How to/Line Angle Constraint/PDFViewer/Views/_ViewStart.cshtml b/How to/Line Angle Constraint/PDFViewer/Views/_ViewStart.cshtml new file mode 100644 index 0000000..2de6241 --- /dev/null +++ b/How to/Line Angle Constraint/PDFViewer/Views/_ViewStart.cshtml @@ -0,0 +1,3 @@ +@{ + Layout = "~/Views/Shared/_Layout.cshtml"; +} diff --git a/How to/Line Angle Constraint/PDFViewer/Web.Debug.config b/How to/Line Angle Constraint/PDFViewer/Web.Debug.config new file mode 100644 index 0000000..d7712aa --- /dev/null +++ b/How to/Line Angle Constraint/PDFViewer/Web.Debug.config @@ -0,0 +1,30 @@ + + + + + + + + + + diff --git a/How to/Line Angle Constraint/PDFViewer/Web.Release.config b/How to/Line Angle Constraint/PDFViewer/Web.Release.config new file mode 100644 index 0000000..28a4d5f --- /dev/null +++ b/How to/Line Angle Constraint/PDFViewer/Web.Release.config @@ -0,0 +1,31 @@ + + + + + + + + + + + diff --git a/How to/Line Angle Constraint/PDFViewer/Web.config b/How to/Line Angle Constraint/PDFViewer/Web.config new file mode 100644 index 0000000..1e57a0b --- /dev/null +++ b/How to/Line Angle Constraint/PDFViewer/Web.config @@ -0,0 +1,76 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/How to/Line Angle Constraint/PDFViewer/favicon.ico b/How to/Line Angle Constraint/PDFViewer/favicon.ico new file mode 100644 index 0000000..a3a7999 Binary files /dev/null and b/How to/Line Angle Constraint/PDFViewer/favicon.ico differ diff --git a/How to/Line Angle Constraint/PDFViewer/packages.config b/How to/Line Angle Constraint/PDFViewer/packages.config new file mode 100644 index 0000000..a8d1c51 --- /dev/null +++ b/How to/Line Angle Constraint/PDFViewer/packages.config @@ -0,0 +1,23 @@ + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file