Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Current »

Download new version


Edit content\pdf\web\Viewer.js

  1. Set path to worker js
    PDFJS.workerSrc = ASSERT_WORKER;
  2. 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

  1. Add variables referred in the script above:
    <script>
    var ASSERT_FILEPATH = ("@ViewBag.PdfFilePath");
    var ASSERT_WORKER = ("@ViewBag.PdfWorker");
    </script>

 


  • No labels