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

In IE 10 & above browser, PDF file downloading issue #24

Closed
bangararaju opened this issue Aug 8, 2017 · 8 comments
Closed

In IE 10 & above browser, PDF file downloading issue #24

bangararaju opened this issue Aug 8, 2017 · 8 comments

Comments

@bangararaju
Copy link

In IE 10 & above the PDF file is downloads, but (Ex:- Out of 14 pages data only 11 pages are downloaded and in that 5 pages data are visible and remaining pages visible black screen )

@bangararaju
Copy link
Author

Hi, I am giving more information about the above issue-
Using script files :- jquery-1.12.3.min.js, jspdf/1.3.4/jspdf.min.js, html2canvas/0.4.1/html2canvas.min.js
Code calling in button click-
var pdf = new jsPDF("p","pt","letter");
pdf.internal.scaleFactor = 2.00;
var options = {pagesplit: true};
pdf.addHTML(document.body,options,function() { // here reading the entire body content
pdf.save("HTMLTOPDFFILE.pdf"); //This will output the PDF in a new window
});

By using this code, it's well in chrome & Mozilla browsers where as in IE browser 10 & above its behave differently, show limited pages are downloading & unable to view all data after certain limit (ex; 5 pages) remaining with black screen.
For your reference, adding sample screen
ie pdf issue

@bangararaju
Copy link
Author

Thanks, have a great day. Any help is appreciated to resolve the above issue.

@eKoopmans
Copy link
Owner

Hi, the black bar issue is definitely a result of not using the version of html2canvas in the vendor/ folder. More info here.

@bangararaju
Copy link
Author

Hi ekoopmans, while using this link **https://jsfiddle.net/o0kL8zkk**/ and add my script, css then in IE the below error throws
capture

Please check it. iam waiting for your response.

@eKoopmans
Copy link
Owner

You've got two open issues, I've responded to your issue regarding promises already here. You need to include a Promise polyfill.

@bangararaju
Copy link
Author

Good morning, the above issue is resolved but the data is not splitting what the user accepts. below the sample screen shot-
image
Note:- same issue for image also.
Any help is appreciated.

@eKoopmans
Copy link
Owner

eKoopmans commented Aug 18, 2017

Take a look at this issue for more info on that problem. You can use page-breaks to break before an element if you know where the breaks will be.

@bangararaju
Copy link
Author

Hi, I used page breaks for page splitting. but the data in page is getting dynamically. so, we don't know how much data is getting while generating PDF. The Text or images breaks in middle.

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