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

PDFKIT Version 0.11.0, not working in IE11 #1089

Closed
THISISSUBBU opened this issue Feb 6, 2020 · 3 comments
Closed

PDFKIT Version 0.11.0, not working in IE11 #1089

THISISSUBBU opened this issue Feb 6, 2020 · 3 comments

Comments

@THISISSUBBU
Copy link

THISISSUBBU commented Feb 6, 2020

Hi, I upgraded our pdfkit version to 0.11.0 (Latest), It is working fine in All browsers except IE11.
In IE11 failing with thy syntax error class

I'm using the standalone version of pdfkit by following instruction in
https://github.com/foliojs/pdfkit/wiki/How-to-compile-standalone-PDFKit-for-use-in-the-browser

Moreover, In IE11 demo page also not working https://pdfkit.org/demo/browser.html
Is PDFKIT not support IE11? or let me know what i'm missing.

Using the pdfkit.standalone.js, and error is Syntax error
class PDFAbstractReference {
toString() {
throw new Error('Must be implemented by subclasses');
}
}

IE11 not supporting class.

@JeffDerk
Copy link

JeffDerk commented Apr 7, 2020

Same issue here :(

@rdebeasi
Copy link

rdebeasi commented Sep 4, 2020

This issue may be related to foliojs/dfa#2.

@blikblum
Copy link
Member

blikblum commented Apr 5, 2021

Recent releases of pdfkit are not compatible with IE11 due to change in dependencies.

To support IE11, dev must use bundler like webpack. You can see an example of webpack config that enables IE11 support at pdfmake: https://github.com/bpampuch/pdfmake/blob/master/webpack.config.js

@blikblum blikblum closed this as completed Apr 5, 2021
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

4 participants