Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

848600 : GitHub sample is updated to the standalone pdf viewer #6

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 3 additions & 7 deletions How to/Add date with the signature/Views/Home/Index.cshtml
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
@using Syncfusion.EJ2
@using Syncfusion.EJ2.PdfViewer
@using System.IO

@{
@{
ViewBag.Title = "Home Page";
}


<div style="width:100%;height:600px">
<button type="button" onclick="signatureWithDate()">Add Signature with the time</button>
@Html.EJS().PdfViewer("pdfviewer").ServiceUrl(VirtualPathUtility.ToAbsolute("~/Home/")).DocumentPath("PDF_Succinctly.pdf").Render()
<!-- To configure the server-backed PDF Viewer, include the "ServiceUrl(VirtualPathUtility.ToAbsolute("~/Home/"))"-->
@Html.EJS().PdfViewer("pdfviewer").DocumentPath("https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf").Render()
</div>
<style>
#pdfviewer {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>@ViewBag.Title - My ASP.NET Application</title>
@Styles.Render("~/Content/css")
<link rel="stylesheet" href="https://cdn.syncfusion.com/ej2/20.3.61/fluent.css" />
<script src="https://cdn.syncfusion.com/ej2/20.3.61/dist/ej2.min.js"></script>
<link rel="stylesheet" href="https://cdn.syncfusion.com/ej2/23.1.36/fluent.css" />
<script src="https://cdn.syncfusion.com/ej2/23.1.36/dist/ej2.min.js"></script>
</head>
<body>
<div class="navbar navbar-inverse navbar-fixed-top">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@
<Content Include="favicon.ico" />
<Content Include="Global.asax" />
<Content Include="Content\Site.css" />
<Content Include="App_Data\PDF_Succinctly.pdf" />
<Content Include="App_Data\https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf" />
<Content Include="Web.config" />
<Content Include="Web.Debug.config">
<DependentUpon>Web.config</DependentUpon>
Expand Down
12 changes: 6 additions & 6 deletions How to/Add date with the signature/packages.config
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@
<package id="Microsoft.Web.Infrastructure" version="1.0.0.0" targetFramework="net472" />
<package id="Modernizr" version="2.8.3" targetFramework="net472" />
<package id="Newtonsoft.Json" version="12.0.2" targetFramework="net472" />
<package id="Syncfusion.Compression.Base" version="20.1.0.55" targetFramework="net472" />
<package id="Syncfusion.EJ2.JavaScript" version="20.1.0.55" targetFramework="net472" />
<package id="Syncfusion.EJ2.MVC5" version="20.1.0.55" targetFramework="net472" />
<package id="Syncfusion.EJ2.PdfViewer.AspNet.Mvc5" version="20.1.0.55" targetFramework="net472" />
<package id="Syncfusion.Licensing" version="20.1.0.55" targetFramework="net472" />
<package id="Syncfusion.Pdf.AspNet.Mvc5" version="20.1.0.55" targetFramework="net472" />
<package id="Syncfusion.Compression.Base" version="*" targetFramework="net472" />
<package id="Syncfusion.EJ2.JavaScript" version="*" targetFramework="net472" />
<package id="Syncfusion.EJ2.MVC5" version="*" targetFramework="net472" />
<package id="Syncfusion.EJ2.PdfViewer.AspNet.Mvc5" version="*" targetFramework="net472" />
<package id="Syncfusion.Licensing" version="*" targetFramework="net472" />
<package id="Syncfusion.Pdf.AspNet.Mvc5" version="*" targetFramework="net472" />
<package id="WebGrease" version="1.6.0" targetFramework="net472" />
</packages>
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<div>
<div style="height: 500px;width:100%;">

@Html.EJS().PdfViewer("pdfviewer").ServiceUrl(VirtualPathUtility.ToAbsolute("~/Home/")).DocumentPath("PDF_Succinctly.pdf").Height("1000px").Width("80%").Render()
@Html.EJS().PdfViewer("pdfviewer").DocumentPath("https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf").Height("1000px").Width("80%").Render()

</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>@ViewBag.Title - My ASP.NET Application</title>

<link rel="stylesheet" href="https://cdn.syncfusion.com/ej2/20.4.44/fluent.css" />
<script src="https://cdn.syncfusion.com/ej2/20.4.44/dist/ej2.min.js"></script>
<link rel="stylesheet" href="https://cdn.syncfusion.com/ej2/23.1.36/fluent.css" />
<script src="https://cdn.syncfusion.com/ej2/23.1.36/dist/ej2.min.js"></script>
</head>
<body>
@RenderBody()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@
<Content Include="favicon.ico" />
<Content Include="Global.asax" />
<Content Include="Content\Site.css" />
<Content Include="App_Data\PDF_Succinctly.pdf" />
<Content Include="App_Data\https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf" />
<Content Include="Web.config" />
<Content Include="Web.Debug.config">
<DependentUpon>Web.config</DependentUpon>
Expand Down
12 changes: 6 additions & 6 deletions How to/Change Default Height and Width/packages.config
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@
<package id="Microsoft.Web.Infrastructure" version="1.0.0.0" targetFramework="net472" />
<package id="Modernizr" version="2.8.3" targetFramework="net472" />
<package id="Newtonsoft.Json" version="12.0.2" targetFramework="net472" />
<package id="Syncfusion.Compression.Base" version="20.1.0.55" targetFramework="net472" />
<package id="Syncfusion.EJ2.JavaScript" version="20.1.0.55" targetFramework="net472" />
<package id="Syncfusion.EJ2.MVC5" version="20.1.0.55" targetFramework="net472" />
<package id="Syncfusion.EJ2.PdfViewer.AspNet.Mvc5" version="20.1.0.55" targetFramework="net472" />
<package id="Syncfusion.Licensing" version="20.1.0.55" targetFramework="net472" />
<package id="Syncfusion.Pdf.AspNet.Mvc5" version="20.1.0.55" targetFramework="net472" />
<package id="Syncfusion.Compression.Base" version="*" targetFramework="net472" />
<package id="Syncfusion.EJ2.JavaScript" version="*" targetFramework="net472" />
<package id="Syncfusion.EJ2.MVC5" version="*" targetFramework="net472" />
<package id="Syncfusion.EJ2.PdfViewer.AspNet.Mvc5" version="*" targetFramework="net472" />
<package id="Syncfusion.Licensing" version="*" targetFramework="net472" />
<package id="Syncfusion.Pdf.AspNet.Mvc5" version="*" targetFramework="net472" />
<package id="WebGrease" version="1.6.0" targetFramework="net472" />
</packages>
2 changes: 1 addition & 1 deletion How to/Load N no of pages/LoadNPages.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@
<Content Include="favicon.ico" />
<Content Include="Global.asax" />
<Content Include="Content\Site.css" />
<Content Include="App_Data\PDF_Succinctly.pdf" />
<Content Include="App_Data\https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf" />
<Content Include="Scripts\bootstrap.bundle.js" />
<Content Include="Scripts\bootstrap.bundle.min.js" />
<Content Include="Scripts\bootstrap.esm.js" />
Expand Down
3 changes: 2 additions & 1 deletion How to/Load N no of pages/Views/Home/Index.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@

<div>
<div style="height:100%; width: 100%;">
@Html.EJS().PdfViewer("pdfviewer").ServiceUrl(VirtualPathUtility.ToAbsolute("~/Home/")).DocumentPath("PDF_Succinctly.pdf").InitialRenderPages(initialRenderPages).Render()
<!-- To configure the server-backed PDF Viewer, include the "ServiceUrl(VirtualPathUtility.ToAbsolute("~/Home/"))"-->
@Html.EJS().PdfViewer("pdfviewer").DocumentPath("https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf").InitialRenderPages(initialRenderPages).Render()
</div>
</div>

Expand Down
5 changes: 2 additions & 3 deletions How to/Load N no of pages/Views/Shared/_Layout.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>@ViewBag.Title - My ASP.NET Application</title>

<link rel="stylesheet" href="https://cdn.syncfusion.com/ej2/20.4.44/fluent.css" />
<script src="https://cdn.syncfusion.com/ej2/20.4.44/dist/ej2.min.js"></script>
<link rel="stylesheet" href="https://cdn.syncfusion.com/ej2/23.1.36/fluent.css" />
<script src="https://cdn.syncfusion.com/ej2/23.1.36/dist/ej2.min.js"></script>
</head>
<body>
@RenderBody()
Expand Down
12 changes: 6 additions & 6 deletions How to/Load N no of pages/packages.config
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@
<package id="Microsoft.Web.Infrastructure" version="1.0.0.0" targetFramework="net472" />
<package id="Modernizr" version="2.8.3" targetFramework="net472" />
<package id="Newtonsoft.Json" version="13.0.3" targetFramework="net472" />
<package id="Syncfusion.Compression.Base" version="22.1.34" targetFramework="net472" />
<package id="Syncfusion.EJ2.JavaScript" version="22.1.34" targetFramework="net472" />
<package id="Syncfusion.EJ2.MVC5" version="22.1.34" targetFramework="net472" />
<package id="Syncfusion.EJ2.PdfViewer.AspNet.Mvc5" version="22.1.34" targetFramework="net472" />
<package id="Syncfusion.Licensing" version="22.1.34" targetFramework="net472" />
<package id="Syncfusion.Pdf.AspNet.Mvc5" version="22.1.34" targetFramework="net472" />
<package id="Syncfusion.Compression.Base" version="*" targetFramework="net472" />
<package id="Syncfusion.EJ2.JavaScript" version="*" targetFramework="net472" />
<package id="Syncfusion.EJ2.MVC5" version="*" targetFramework="net472" />
<package id="Syncfusion.EJ2.PdfViewer.AspNet.Mvc5" version="*" targetFramework="net472" />
<package id="Syncfusion.Licensing" version="*" targetFramework="net472" />
<package id="Syncfusion.Pdf.AspNet.Mvc5" version="*" targetFramework="net472" />
<package id="WebGrease" version="1.6.0" targetFramework="net472" />
</packages>
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@
}

<div style="height:500px;width:100%;">
<!--Render PDF Viewer component-->
@Html.EJS().PdfViewer("pdfviewer").ServiceUrl(VirtualPathUtility.ToAbsolute("~/PdfViewer")).DocumentPath("FormDesigner.pdf").ExportStart("exportStart").Render()
<!-- To configure the server-backed PDF Viewer, include the "ServiceUrl(VirtualPathUtility.ToAbsolute("~/PdfViewer"))"-->
@Html.EJS().PdfViewer("pdfviewer").DocumentPath("https://cdn.syncfusion.com/content/pdf/form-designer.pdf").ExportStart("exportStart").Render()
</div>

<script>
<script type="text/javascript">
function exportStart() {
//For redirect to success page in a new window
//For redirect to success page in a new window
// Note : URL must be (https://localhost:44378/)
window.open("PdfViewer/About");

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>@ViewBag.Title - My ASP.NET Application</title>

@Styles.Render("https://cdn.syncfusion.com/ej2/20.2.40/material.css")
@Scripts.Render("https://cdn.syncfusion.com/ej2/20.2.40/dist/ej2.min.js")
<link rel="stylesheet" href="https://cdn.syncfusion.com/ej2/23.1.36/fluent.css" />
<script src="https://cdn.syncfusion.com/ej2/23.1.36/dist/ej2.min.js"></script>
</head>
<body>
@RenderBody()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@
<package id="Microsoft.Web.Infrastructure" version="1.0.0.0" targetFramework="net472" />
<package id="Modernizr" version="2.8.3" targetFramework="net472" />
<package id="Newtonsoft.Json" version="12.0.2" targetFramework="net472" />
<package id="Syncfusion.Compression.Base" version="20.1.0.58" targetFramework="net472" />
<package id="Syncfusion.EJ2.JavaScript" version="20.1.0.58" targetFramework="net472" />
<package id="Syncfusion.EJ2.MVC5" version="20.1.0.58" targetFramework="net472" />
<package id="Syncfusion.EJ2.PdfViewer.AspNet.Mvc5" version="20.1.0.58" targetFramework="net472" />
<package id="Syncfusion.Licensing" version="20.1.0.58" targetFramework="net472" />
<package id="Syncfusion.Pdf.AspNet.Mvc5" version="20.1.0.58" targetFramework="net472" />
<package id="Syncfusion.Compression.Base" version="*" targetFramework="net472" />
<package id="Syncfusion.EJ2.JavaScript" version="*" targetFramework="net472" />
<package id="Syncfusion.EJ2.MVC5" version="*" targetFramework="net472" />
<package id="Syncfusion.EJ2.PdfViewer.AspNet.Mvc5" version="*" targetFramework="net472" />
<package id="Syncfusion.Licensing" version="*" targetFramework="net472" />
<package id="Syncfusion.Pdf.AspNet.Mvc5" version="*" targetFramework="net472" />
<package id="System.Net.Http" version="2.0.20126.16343" targetFramework="net472" />
<package id="System.Net.Http.Formatting.Extension" version="5.2.3.0" targetFramework="net472" />
<package id="WebGrease" version="1.6.0" targetFramework="net472" />
Expand Down
2 changes: 1 addition & 1 deletion How to/Retry Timeout/RetryTimeout.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@
<Content Include="favicon.ico" />
<Content Include="Global.asax" />
<Content Include="Content\Site.css" />
<Content Include="App_Data\PDF_Succinctly.pdf" />
<Content Include="App_Data\https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf" />
<Content Include="Scripts\bootstrap.bundle.js" />
<Content Include="Scripts\bootstrap.bundle.min.js" />
<Content Include="Scripts\bootstrap.esm.js" />
Expand Down
7 changes: 2 additions & 5 deletions How to/Retry Timeout/Views/Home/Index.cshtml
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
@using Syncfusion.EJ2
@using Syncfusion.EJ2.PdfViewer
@using System.IO
@{
@{
ViewBag.Title = "Home Page";
double RetryTimeout = 10;
double RetryCount = 5;
}

<div>
<div style="height:100%; width: 100%;">
@Html.EJS().PdfViewer("pdfviewer").ServiceUrl(VirtualPathUtility.ToAbsolute("~/Home/")).DocumentPath("PDF_Succinctly.pdf").RetryCount(RetryCount).RetryTimeout(RetryTimeout).Render()
@Html.EJS().PdfViewer("pdfviewer").DocumentPath("https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf").RetryCount(RetryCount).RetryTimeout(RetryTimeout).Render()
</div>
</div>

Expand Down
4 changes: 2 additions & 2 deletions How to/Retry Timeout/Views/Shared/_Layout.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>@ViewBag.Title - My ASP.NET Application</title>

<link rel="stylesheet" href="https://cdn.syncfusion.com/ej2/20.4.44/fluent.css" />
<script src="https://cdn.syncfusion.com/ej2/20.4.44/dist/ej2.min.js"></script>
<link rel="stylesheet" href="https://cdn.syncfusion.com/ej2/23.1.36/fluent.css" />
<script src="https://cdn.syncfusion.com/ej2/23.1.36/dist/ej2.min.js"></script>
</head>
<body>
@RenderBody()
Expand Down
12 changes: 6 additions & 6 deletions How to/Retry Timeout/packages.config
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@
<package id="Microsoft.Web.Infrastructure" version="1.0.0.0" targetFramework="net472" />
<package id="Modernizr" version="2.8.3" targetFramework="net472" />
<package id="Newtonsoft.Json" version="13.0.3" targetFramework="net472" />
<package id="Syncfusion.Compression.Base" version="22.1.34" targetFramework="net472" />
<package id="Syncfusion.EJ2.JavaScript" version="22.1.34" targetFramework="net472" />
<package id="Syncfusion.EJ2.MVC5" version="22.1.34" targetFramework="net472" />
<package id="Syncfusion.EJ2.PdfViewer.AspNet.Mvc5" version="22.1.34" targetFramework="net472" />
<package id="Syncfusion.Licensing" version="22.1.34" targetFramework="net472" />
<package id="Syncfusion.Pdf.AspNet.Mvc5" version="22.1.34" targetFramework="net472" />
<package id="Syncfusion.Compression.Base" version="*" targetFramework="net472" />
<package id="Syncfusion.EJ2.JavaScript" version="*" targetFramework="net472" />
<package id="Syncfusion.EJ2.MVC5" version="*" targetFramework="net472" />
<package id="Syncfusion.EJ2.PdfViewer.AspNet.Mvc5" version="*" targetFramework="net472" />
<package id="Syncfusion.Licensing" version="*" targetFramework="net472" />
<package id="Syncfusion.Pdf.AspNet.Mvc5" version="*" targetFramework="net472" />
<package id="WebGrease" version="1.6.0" targetFramework="net472" />
</packages>
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
@using Syncfusion.EJ2
@using Syncfusion.EJ2.PdfViewer
@using System.IO

@{
@{
ViewBag.Title = "Home Page";
}

Expand All @@ -12,14 +8,13 @@
<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").ServiceUrl(VirtualPathUtility.ToAbsolute("~/PdfViewer/")).DocumentPath("PDF Succinctly.pdf").Render()
<!-- To configure the server-backed PDF Viewer, include the "ServiceUrl(VirtualPathUtility.ToAbsolute("~/Home/"))"-->
@Html.EJS().PdfViewer("pdfviewer").DocumentPath("https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf").Render()
</div>
<style>
#pdfviewer {
display: block;
}

</style>

<script>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,19 +1,16 @@
@using Syncfusion.EJ2
@using Syncfusion.EJ2.PdfViewer

<!DOCTYPE html>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>@ViewBag.Title - My ASP.NET Application</title>

<link rel="stylesheet" href="https://cdn.syncfusion.com/ej2/20.2.39/fluent.css" />
<script src="https://cdn.syncfusion.com/ej2/20.2.39/dist/ej2.min.js"></script>
<link rel="stylesheet" href="https://cdn.syncfusion.com/ej2/23.1.36/fluent.css" />
<script src="https://cdn.syncfusion.com/ej2/23.1.36/dist/ej2.min.js"></script>
</head>
<body>
@RenderBody()
@RenderSection("scripts", required: false)
@Html.EJS().ScriptManager()
</body>
</html>
</html>
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@
<package id="Microsoft.Web.Infrastructure" version="1.0.0.0" targetFramework="net472" />
<package id="Modernizr" version="2.8.3" targetFramework="net472" />
<package id="Newtonsoft.Json" version="13.0.1" targetFramework="net472" />
<package id="Syncfusion.Compression.Base" version="20.3.0.50" targetFramework="net472" />
<package id="Syncfusion.EJ2.JavaScript" version="20.3.0.50" targetFramework="net472" />
<package id="Syncfusion.EJ2.MVC5" version="20.3.0.50" targetFramework="net472" />
<package id="Syncfusion.EJ2.PdfViewer.AspNet.Mvc5" version="20.3.0.50" targetFramework="net472" />
<package id="Syncfusion.Licensing" version="20.3.0.50" targetFramework="net472" />
<package id="Syncfusion.Pdf.AspNet" version="20.3.0.50" targetFramework="net472" />
<package id="Syncfusion.Pdf.AspNet.Mvc5" version="20.3.0.50" targetFramework="net472" />
<package id="Syncfusion.Compression.Base" version="*" targetFramework="net472" />
<package id="Syncfusion.EJ2.JavaScript" version="*" targetFramework="net472" />
<package id="Syncfusion.EJ2.MVC5" version="*" targetFramework="net472" />
<package id="Syncfusion.EJ2.PdfViewer.AspNet.Mvc5" version="*" targetFramework="net472" />
<package id="Syncfusion.Licensing" version="*" targetFramework="net472" />
<package id="Syncfusion.Pdf.AspNet" version="*" targetFramework="net472" />
<package id="Syncfusion.Pdf.AspNet.Mvc5" version="*" targetFramework="net472" />
<package id="WebGrease" version="1.6.0" targetFramework="net472" />
</packages>