-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
381112: Get Base 64 string of the loaded PDF document
- Loading branch information
1 parent
c26dc04
commit 9c8dce7
Showing
21 changed files
with
818 additions
and
0 deletions.
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
How to/Get Base 64 string of the loaded PDF document/PdfViewerSample/PdfViewerSample.sln
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
|
||
Microsoft Visual Studio Solution File, Format Version 12.00 | ||
# Visual Studio Version 17 | ||
VisualStudioVersion = 17.9.34728.123 | ||
MinimumVisualStudioVersion = 10.0.40219.1 | ||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PdfViewerSample", "PdfViewerSample\PdfViewerSample.csproj", "{E3A32E33-181A-4F13-99DD-FCFC12D7EE13}" | ||
EndProject | ||
Global | ||
GlobalSection(SolutionConfigurationPlatforms) = preSolution | ||
Debug|Any CPU = Debug|Any CPU | ||
Release|Any CPU = Release|Any CPU | ||
EndGlobalSection | ||
GlobalSection(ProjectConfigurationPlatforms) = postSolution | ||
{E3A32E33-181A-4F13-99DD-FCFC12D7EE13}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{E3A32E33-181A-4F13-99DD-FCFC12D7EE13}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{E3A32E33-181A-4F13-99DD-FCFC12D7EE13}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{E3A32E33-181A-4F13-99DD-FCFC12D7EE13}.Release|Any CPU.Build.0 = Release|Any CPU | ||
EndGlobalSection | ||
GlobalSection(SolutionProperties) = preSolution | ||
HideSolutionNode = FALSE | ||
EndGlobalSection | ||
GlobalSection(ExtensibilityGlobals) = postSolution | ||
SolutionGuid = {A4611910-68BF-4084-B38B-6ACB783D18D0} | ||
EndGlobalSection | ||
EndGlobal |
30 changes: 30 additions & 0 deletions
30
...ring of the loaded PDF document/PdfViewerSample/PdfViewerSample/App_Start/BundleConfig.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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")); | ||
} | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
...ring of the loaded PDF document/PdfViewerSample/PdfViewerSample/App_Start/FilterConfig.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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()); | ||
} | ||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
...tring of the loaded PDF document/PdfViewerSample/PdfViewerSample/App_Start/RouteConfig.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 } | ||
); | ||
} | ||
} | ||
} |
30 changes: 30 additions & 0 deletions
30
... of the loaded PDF document/PdfViewerSample/PdfViewerSample/Controllers/HomeController.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Web; | ||
using System.Web.Mvc; | ||
|
||
namespace PdfViewerSample.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(); | ||
} | ||
} | ||
} |
1 change: 1 addition & 0 deletions
1
...Get Base 64 string of the loaded PDF document/PdfViewerSample/PdfViewerSample/Global.asax
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<%@ Application Codebehind="Global.asax.cs" Inherits="PdfViewerSample.MvcApplication" Language="C#" %> |
21 changes: 21 additions & 0 deletions
21
... Base 64 string of the loaded PDF document/PdfViewerSample/PdfViewerSample/Global.asax.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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); | ||
} | ||
} | ||
} |
Oops, something went wrong.