ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,845 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
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");
});
}