-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
SaravanaPriya31
authored and
SaravanaPriya31
committed
Sep 28, 2023
1 parent
68ab500
commit d410504
Showing
10 changed files
with
1 addition
and
188 deletions.
There are no files selected for viewing
16 changes: 0 additions & 16 deletions
16
PDFViewer/ASP.NET MVC Razor Examples - Standalone PDF Viewer/App_Start/BundleConfig.cs
This file was deleted.
Oops, something went wrong.
13 changes: 0 additions & 13 deletions
13
PDFViewer/ASP.NET MVC Razor Examples - Standalone PDF Viewer/App_Start/FilterConfig.cs
This file was deleted.
Oops, something went wrong.
23 changes: 0 additions & 23 deletions
23
PDFViewer/ASP.NET MVC Razor Examples - Standalone PDF Viewer/App_Start/RouteConfig.cs
This file was deleted.
Oops, something went wrong.
24 changes: 0 additions & 24 deletions
24
PDFViewer/ASP.NET MVC Razor Examples - Standalone PDF Viewer/Content/Site.css
This file was deleted.
Oops, something went wrong.
6 changes: 0 additions & 6 deletions
6
PDFViewer/ASP.NET MVC Razor Examples - Standalone PDF Viewer/Content/bootstrap.min.css
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
PDFViewer/ASP.NET MVC Razor Examples - Standalone PDF Viewer/Content/bootstrap.min.css.map
This file was deleted.
Oops, something went wrong.
30 changes: 0 additions & 30 deletions
30
PDFViewer/ASP.NET MVC Razor Examples - Standalone PDF Viewer/Controllers/HomeController.cs
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
PDFViewer/ASP.NET MVC Razor Examples - Standalone PDF Viewer/Global.asax
This file was deleted.
Oops, something went wrong.
21 changes: 0 additions & 21 deletions
21
PDFViewer/ASP.NET MVC Razor Examples - Standalone PDF Viewer/Global.asax.cs
This file was deleted.
Oops, something went wrong.
54 changes: 1 addition & 53 deletions
54
PDFViewer/ASP.NET MVC Razor Examples-Standalone PDF Viewer/Views/Home/Index.cshtml
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 |
---|---|---|
@@ -1,60 +1,8 @@ | ||
|
||
@{ | ||
@{ | ||
ViewBag.Title = "Home Page"; | ||
} | ||
|
||
<button type="button" onclick="previouspage()">Previous Page</button> | ||
<button type="button" onclick="nextpage()">Next Page</button> | ||
<button type="button" onclick="addAnnotation()">Add annotation</button> | ||
<button type="button" onclick="addFormField()">Add FormField</button> | ||
<button type="button" onclick="addtags()">Add tags</button> | ||
<div style="width:100%;height:600px"> | ||
<!--Code to render PDF Viewer--> | ||
@Html.EJS().PdfViewer("pdfviewer").DocumentPath("https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf").Render() | ||
</div> | ||
<style> | ||
#pdfviewer { | ||
display: block; | ||
} | ||
</style> | ||
|
||
<script> | ||
//Method to add free text annotation programmatically. | ||
function addAnnotation() { | ||
var viewer = document.getElementById('pdfviewer').ej2_instances[0]; | ||
viewer.annotation.setAnnotationMode("FreeText"); | ||
} | ||
//Method to add form field value programmatically. | ||
function addFormField() { | ||
var pdfviewer = document.getElementById('pdfviewer').ej2_instances[0]; | ||
pdfviewer.formDesignerModule.addFormField('Textbox', { | ||
name: 'Textbox', | ||
bounds: {X: 146, Y: 229, Width: 150, Height: 24 }, | ||
}); | ||
} | ||
//Method to add tag filed programmatically. | ||
function addtags() { | ||
var viewer = document.getElementById('pdfviewer').ej2_instances[0]; | ||
viewer.annotation.setAnnotationMode("StickyNotes"); | ||
} | ||
//Method to navigate to the previous page programmatically. | ||
function previouspage() { | ||
var viewer = document.getElementById('pdfviewer').ej2_instances[0]; | ||
viewer.navigation.goToPreviousPage(); | ||
} | ||
//Method to navigate to the next page programmatically. | ||
function nextpage() { | ||
var viewer = document.getElementById('pdfviewer').ej2_instances[0]; | ||
viewer.navigation.goToNextPage(); | ||
} | ||
</script> | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|