Using ASP.NET MVC PDF Viewer Library
How to customize EdgePDF project resource files using C#
Online Guide for customizing ASP.NET PDF Viewer & Editor using C#, html, javascript. Open source demo project included.
Re-locate web viewer client side files
Change the location of index.html, in file index.html
var _rootpath = "/home/viewer/";
_WDPApp = new WDPOnlineApplication({
_serverUrl: "/RasterEdge_Resource_Files/UserCommandProcessHandler.ashx"
});
Change the location of JS, image, and CSS files, in the file index.html
<script src="/js-path/RasterEdge_Resource_Files/javascript/jquery.js" type="text/javascript"></script>
<script src="/js-path/RasterEdge_Resource_Files/javascript/RasterEdge_WebApp_Customize.js" type="text/javascript"></script>
<script src="/js-path/RasterEdge_Resource_Files/javascript/RasterEdge_WebApp.js" type="text/javascript"></script>
<script src="/js-path/RasterEdge_Resource_Files/javascript/RasterEdge.js" type="text/javascript"></script>
<link rel="stylesheet" href="/css-path/RasterEdge_Resource_Files/css/process.css" type="text/css"/>
<link rel="stylesheet" href="/css-path/RasterEdge_Resource_Files/css/customize.css" type="text/css"/>
<link rel="stylesheet" href="/css-path/RasterEdge_Resource_Files/css/jquery-ui.css" type="text/css"/>
Re-locate web viewer web service files
Contents of viewer web service files:
- /Bin/
- /RasterEdge_Cache/
- /RasterEdge_Resource_Files/UserCommandProcessHandler.ashx
- /Global.asax
- /Web.Config
To change the location of folder "RasterEdge_Cache",
In Web.config file, change the value of appSetting "reCacheFolder", to the new location. Please use the relative path with your web application.