Open YuddiPrase opened 6 years ago
index.html
<html ng-app="app" ng-controller="AppCtrl"> <head> <meta charset="utf-8" /> <title>Angular PDF.js</title> <!-- <link rel="stylesheet" href="assets/style.css"></link> --> <script src="bower_components/pdf.js-viewer/pdf.js"></script> <link rel="stylesheet" href="bower_components/pdf.js-viewer/viewer.css"> <script src="bower_components/angular/angular.js"></script> <script src="bower_components/angular-pdfjs-viewer/dist/angular-pdfjs-viewer.js"></script> <script src="app.js"></script> <div class="some-pdf-container"> <pdfjs-viewer download="false" print="false" ng-src="{{ pdf.src }}"></pdfjs-viewer> </div> </body> </html>
app.js
angular.module('app', ['pdfjsViewer']); angular.module('app').controller('AppCtrl', function($scope) { $scope.pdf = { src: 'obj/DataTables example - File export.pdf', }; });
output PDF.js v1.7.354 (build: 0f7548ba) Message: Unexpected server response (204) while retrieving PDF "http://localhost:8080/angular-pdf/obj/DataTables%20example%20-%20File%20export.pdf".
thanks for...
index.html
app.js
output PDF.js v1.7.354 (build: 0f7548ba) Message: Unexpected server response (204) while retrieving PDF "http://localhost:8080/angular-pdf/obj/DataTables%20example%20-%20File%20export.pdf".
thanks for...