Skip to content
This repository has been archived by the owner on Jun 25, 2024. It is now read-only.

Unexpected server response. #81

Open
YuddiPrase opened this issue Mar 26, 2018 · 0 comments
Open

Unexpected server response. #81

YuddiPrase opened this issue Mar 26, 2018 · 0 comments

Comments

@YuddiPrase
Copy link

YuddiPrase commented Mar 26, 2018

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...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant