PDF with contents of a div in c #

1

I want to generate a pdf with the contents of a div. My div is filled dynamically, 21 codes are generated in a single sheet but wanting to generate more codes does not generate a second sheet.

I pass a fragment of my code.

 <script type="text/javascript">
        function genPDF() {
            var pdf = new jsPDF('PageSize.A4, 10f, 10f, 100f, 0f');
            pdf.addHTML($('#areaImprimir'),
                5,
                5,
                function () {
                    pdf.save('div.pdf');
                });
        }
    </script>



 <div id="areaImprimir" class="well" style="height: 3000px;">
                    <div id="PrintQRStudents" runat="server"></div>
                    <div id="PrintQRRespuestas" runat="server"></div>
                    <div id="PrintQRPuntos" runat="server"></div>
                </div>

div PrintQRStudents , PrintQRRespuestas , PrintQRPuntos are those that are filled dynamically.

    
asked by Tavo Ovalle 13.06.2018 в 00:31
source

0 answers