PDF creation for large files is possible. There are basically two ways to do this:
1. html -> canvas -> image -> pdf (I assume you are trying to use this approach)
2.html -> pdf (does not work if html contains svg)
(2), (1) (, svg) - , .
1. html → canvas → image → pdf
- https://github.com/MrRio/jsPDF/issues/339#issuecomment-53327389
- , pdf 2-3 . ( firefox)
2. html → pdf
var pdf = new jsPDF('l', 'pt', 'a4');
var options = {
pagesplit: true
};
pdf.addHTML($('body'), 0, 0, options, function(){
pdf.save("test.pdf");
});
. PDF , 5-6 1-2 !
, !