Skip to content

Why html2pdf when i have too long data it's not create page more than 1  #718

@TanonchaiSrikawe

Description

@TanonchaiSrikawe

$(document).ready(function() {
$('#printSheetPO').on('click', function() {
startLoading();
let source = window.document.getElementById("sheetPO").innerHTML;
const opt = {
margin: 0.25,
filename: 'sheetPO.pdf',
image: {
type: 'jpeg',
quality: 1
},
html2canvas: {
scale: 2,
width: 8.27 * 96,
height: 11.69 * 96,
},
jsPDF: {
unit: 'in',
format: 'a4',
orientation: 'portrait',
},
};
html2pdf().set(opt).from(source).save().output('dataurlnewwindow').then(function() {
stopLoading();
});
});
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions