Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant