Skip to content

Commit 5409d30

Browse files
905903: updated the samples for Customize existing toolbar in both Standalone and Server-Backed
1 parent eb39c8a commit 5409d30

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+659850
-92
lines changed

How to/Customize existing toolbar/PDFViewerSample/Global.asax

-1
This file was deleted.

How to/Customize existing toolbar/PDFViewerSample/PDFViewerSample.csproj.user

-6
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11

22
Microsoft Visual Studio Solution File, Format Version 12.00
33
# Visual Studio Version 17
4-
VisualStudioVersion = 17.7.34221.43
4+
VisualStudioVersion = 17.9.34728.123
55
MinimumVisualStudioVersion = 10.0.40219.1
6-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PDFViewerSample", "PDFViewerSample\PDFViewerSample.csproj", "{14D0976C-0D5C-4F75-B5B3-68FB1C9AB17A}"
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ToolbarCustomization", "ToolbarCustomization\ToolbarCustomization.csproj", "{98BE0BE2-3AAC-49EE-99AF-26D642E48940}"
77
EndProject
88
Global
99
GlobalSection(SolutionConfigurationPlatforms) = preSolution
1010
Debug|Any CPU = Debug|Any CPU
1111
Release|Any CPU = Release|Any CPU
1212
EndGlobalSection
1313
GlobalSection(ProjectConfigurationPlatforms) = postSolution
14-
{14D0976C-0D5C-4F75-B5B3-68FB1C9AB17A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15-
{14D0976C-0D5C-4F75-B5B3-68FB1C9AB17A}.Debug|Any CPU.Build.0 = Debug|Any CPU
16-
{14D0976C-0D5C-4F75-B5B3-68FB1C9AB17A}.Release|Any CPU.ActiveCfg = Release|Any CPU
17-
{14D0976C-0D5C-4F75-B5B3-68FB1C9AB17A}.Release|Any CPU.Build.0 = Release|Any CPU
14+
{98BE0BE2-3AAC-49EE-99AF-26D642E48940}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15+
{98BE0BE2-3AAC-49EE-99AF-26D642E48940}.Debug|Any CPU.Build.0 = Debug|Any CPU
16+
{98BE0BE2-3AAC-49EE-99AF-26D642E48940}.Release|Any CPU.ActiveCfg = Release|Any CPU
17+
{98BE0BE2-3AAC-49EE-99AF-26D642E48940}.Release|Any CPU.Build.0 = Release|Any CPU
1818
EndGlobalSection
1919
GlobalSection(SolutionProperties) = preSolution
2020
HideSolutionNode = FALSE
2121
EndGlobalSection
2222
GlobalSection(ExtensibilityGlobals) = postSolution
23-
SolutionGuid = {E5DAA405-B48B-44EA-8892-A076D26C432C}
23+
SolutionGuid = {284420A6-F4BA-4342-9222-A45E7BA64AC2}
2424
EndGlobalSection
2525
EndGlobal

How to/Customize existing toolbar/PDFViewerSample/App_Start/BundleConfig.cs renamed to How to/Customize existing toolbar/Server-Backed/ToolbarCustomization/App_Start/BundleConfig.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
using System.Web;
22
using System.Web.Optimization;
33

4-
namespace PDFViewerSample
4+
namespace WebApplication1
55
{
66
public class BundleConfig
77
{

How to/Customize existing toolbar/PDFViewerSample/App_Start/FilterConfig.cs renamed to How to/Customize existing toolbar/Server-Backed/ToolbarCustomization/App_Start/FilterConfig.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
using System.Web;
22
using System.Web.Mvc;
33

4-
namespace PDFViewerSample
4+
namespace WebApplication1
55
{
66
public class FilterConfig
77
{

How to/Customize existing toolbar/PDFViewerSample/App_Start/RouteConfig.cs renamed to How to/Customize existing toolbar/Server-Backed/ToolbarCustomization/App_Start/RouteConfig.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
using System.Web.Mvc;
66
using System.Web.Routing;
77

8-
namespace PDFViewerSample
8+
namespace WebApplication1
99
{
1010
public class RouteConfig
1111
{

How to/Customize existing toolbar/PDFViewerSample/Controllers/HomeController.cs renamed to How to/Customize existing toolbar/Server-Backed/ToolbarCustomization/Controllers/HomeController.cs

+13-4
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,20 @@
44
using System.Collections.Generic;
55
using System.IO;
66
using System.Linq;
7-
using System.Net;
87
using System.Net.Http;
8+
using System.Net;
99
using System.Reflection;
1010
using System.Web;
1111
using System.Web.Mvc;
1212

13-
namespace GettingStartedMVC.Controllers
13+
namespace ToolbarCustomization.Controllers
1414
{
15+
public class CustomToolbarItems
16+
{
17+
public CustomToolbarItems() { }
18+
public List<object> ToolbarItems { get; set; }
19+
20+
}
1521
public class HomeController : Controller
1622
{
1723
[System.Web.Mvc.HttpPost]
@@ -252,13 +258,16 @@ public class jsonObjects
252258
public string uniqueId { get; set; }
253259
public string data { get; set; }
254260
public string viewPortWidth { get; set; }
255-
public string viewportHeight { get; set; }
261+
public string viewPortHeight { get; set; }
256262
public string tilecount { get; set; }
257263
public string isCompletePageSizeNotReceived { get; set; }
258264
public string freeTextAnnotation { get; set; }
259265
public string signatureData { get; set; }
260266
public string fieldsData { get; set; }
261-
public string FormDesigner { get; set; }
267+
public string formDesigner { get; set; }
262268
public string inkSignatureData { get; set; }
269+
public string tileXCount { get; set; }
270+
public string tileYCount { get; set; }
271+
public bool digitalSignaturePresent { get; set; }
263272
}
264273
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<%@ Application Codebehind="Global.asax.cs" Inherits="WebApplication1.MvcApplication" Language="C#" %>

How to/Customize existing toolbar/PDFViewerSample/Global.asax.cs renamed to How to/Customize existing toolbar/Server-Backed/ToolbarCustomization/Global.asax.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
using System.Web.Optimization;
77
using System.Web.Routing;
88

9-
namespace PDFViewerSample
9+
namespace WebApplication1
1010
{
1111
public class MvcApplication : System.Web.HttpApplication
1212
{

How to/Customize existing toolbar/PDFViewerSample/Properties/AssemblyInfo.cs renamed to How to/Customize existing toolbar/Server-Backed/ToolbarCustomization/Properties/AssemblyInfo.cs

+4-4
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55
// General Information about an assembly is controlled through the following
66
// set of attributes. Change these attribute values to modify the information
77
// associated with an assembly.
8-
[assembly: AssemblyTitle("PDFViewerSample")]
8+
[assembly: AssemblyTitle("WebApplication1")]
99
[assembly: AssemblyDescription("")]
1010
[assembly: AssemblyConfiguration("")]
1111
[assembly: AssemblyCompany("")]
12-
[assembly: AssemblyProduct("PDFViewerSample")]
13-
[assembly: AssemblyCopyright("Copyright © 2023")]
12+
[assembly: AssemblyProduct("WebApplication1")]
13+
[assembly: AssemblyCopyright("Copyright © 2024")]
1414
[assembly: AssemblyTrademark("")]
1515
[assembly: AssemblyCulture("")]
1616

@@ -20,7 +20,7 @@
2020
[assembly: ComVisible(false)]
2121

2222
// The following GUID is for the ID of the typelib if this project is exposed to COM
23-
[assembly: Guid("1e0f8a05-2fee-4eba-9353-fd340b3c7187")]
23+
[assembly: Guid("3b7cd9a9-285b-4ee6-9769-292bd0c20a0d")]
2424

2525
// Version information for an assembly consists of the following four values:
2626
//

0 commit comments

Comments
 (0)