4,817 questions
Capture image for jsPDF in mobile mode to be like full screen mode
Amani
1
Reputation point
I'm using jsPdf to download a pdf containing a screenshot for a section in the opened window. For full screen mode it works fine. The project can be accessed by mobiles and the view will change, so I'd like to capture the screen as in the full screen mode.
is it possible ?
The current function:
function Pdf() {
domtoimage.toPng(document.getElementById('pdfImg'))
.then(function (blob) {
var pdf = new jsPDF('l', 'pt', [$('#pdfImg').width(), $('#pdfImg').height()]);
pdf.addImage(blob, 'JPEG', 0, 0, $('#pdfImg').width(), $('#pdfImg').height());
pdf.save("Progress.pdf");
});
}
Developer technologies | ASP.NET | ASP.NET Core
Sign in to answer