Problem with JSPDF

0

Hi, I have a problem with the javascript JSPdf, I have this html

<div id='content'></div>
    <div id='editor'></div>
      aca hay un foreach de por lo menos 100 elementos con varios <h1> y <div>

</div>

and this is javascript

Generate PDF                         

<script>

                        var doc = new jsPDF();
                        var specialElementHandlers = {
                            '#editor': function (element, renderer) {
                                return true;
                            }
                        };

                        $('#cmd').click(function () {   
                            doc.fromHTML($('#content').html(), 15, 15, {
                                'width': 170,
                                'elementHandlers': specialElementHandlers
                            });
                            doc.save('Usuarios_en_linea.pdf');
                        });


                        </script>

What happens is that when the pdf page is full, it does not generate another page .. it simply continues and the content does not come out .. any help?

    
asked by Hernan Chaparro 04.09.2018 в 00:05
source

0 answers