@@ -17,13 +17,13 @@ This section explains how to create the PDF viewer in your web application using
17
17
18
18
Create a new project in the Visual Studio by selecting the ASP.NET Empty Web Application template. The following screenshot displays the Project Creation Wizard in Visual Studio 2012.
19
19
20
-

20
+

21
21
22
22
**Create HTML Page**
23
23
24
24
Right-click the project and select New Item option from the ‘Add’ menu to add a HTML page to the application. Name the page as **Default.html** and click OK.
25
25
26
-

26
+

27
27
28
28
### Add References, Scripts, Styles
29
29
@@ -402,7 +402,7 @@ Add the following code in the <body> tag in the Default.html page. Here, the PDF
402
402
403
403
The PDF viewer uses Web API services to process the PDF file. Right-Click the Project, select Add and Web API Controller Class from the listed templates. Rename it as **PdfViewerAPIController.cs**.
404
404
405
-

405
+

406
406
407
407
N> While adding WebAPI Controller Class, name it with the suffix “Controller” that is mandatory. For example, in the demo the controller is named as “PdfViewerAPIController”.
408
408
@@ -465,7 +465,7 @@ N> Create a folder named Data in the project location and add the PDF document t
465
465
466
466
Right-Click the Project, select Add and Global.asax file from the listed templates.
467
467
468
-

468
+

469
469
470
470
You can route the Web API in the Application_Start event into Global.asax file as follows.
471
471
@@ -519,7 +519,7 @@ Run the sample application and you can see the PDF Viewer on the page as display
0 commit comments