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

Open PDF in IE 11 - permission denied #1197

Closed
FlorianLeitgeb opened this issue Nov 22, 2017 · 1 comment
Closed

Open PDF in IE 11 - permission denied #1197

FlorianLeitgeb opened this issue Nov 22, 2017 · 1 comment

Comments

@FlorianLeitgeb
Copy link

When I try the openPDF method in IE11, I get this exception: SCRIPT70: Permission denied
And the code that fails is this line from pdfmake win.location.href = pdfUrl;.

To be more clear about the failing code:

	Document.prototype._openPdf = function (options, win) {
		if (!win) {
			win = this._openWindow();
		}
		try {
			this.getBlob(function (result) {
				var urlCreator = global.URL || global.webkitURL;
				var pdfUrl = urlCreator.createObjectURL(result);
				win.location.href = pdfUrl;
			}, options);
		} catch (e) {
			win.close();
			throw e;
		}
	};

But as I can remember, the PDF creation already worked. After the permission denied exception, I get a second exception: SCRIPT5043: Accessing the 'caller' property of a function or arguments object is not allowed in strict mode. File: init.debug.js, Line: 1351, Column: 5

@liborm85
Copy link
Collaborator

see supported browsers: #800

duplicate with: #230

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

2 participants