Pdf.js is used by Assert, here is a hint to make it fit
Download new version
Check:Â https://github.com/mozilla/pdf.js/releases
Extract distribution Zip-archive to Deploys\WebViewer\WebViewer\Content\pdf to replace old version.
Edit content\pdf\web\Viewer.js
- Set path to worker js
PDFJS.workerSrc = ASSERT_WORKER; - Point out the location of the Pdf-file
var DEFAULT_URL = (typeof ASSERT_FILEPATH == 'undefined') ? 'compressed.tracemonkey-pldi-09.pdf' : ASSERT_FILEPATH;
Copy content\pdf\web\Viewer.html to Views\Pdf\Viewer.cshtml
- Add variables referred in the script above:
<script>
var ASSERT_FILEPATH = ("@ViewBag.PdfFilePath");
var ASSERT_WORKER = ("@ViewBag.PdfWorker");
</script>
Â
Related articles