I use jspdf and html2canvas to save the html page in pdf format. A PDF copy of the current page is saved the moment you click the button. The problem is that if you zoom in on the page and then click the button, the saved pdf contains an incomplete part of the current page. Most of the part that is not visible on the page due to scaling is disabled in the saved pdf page. What is the solution? Below is the js code when you click the save button -
var pdf = new jsPDF('l', 'pt', 'a4');
var source = $('#someId')[0];
var options = {
background : '#eee'
};
pdf.addHTML(source, options, function(){
pdf.save('abcd.pdf');
});
EDIT
Saurabh, , - div. pdf , . , , , pdf, . , : -
var pdf = new jsPDF('l', 'pt', 'a4');
var source = $('#someId')[0];
var options = {
background : '#eee'
};
var width = source.clientWidth;
source.style.width = '1700px';
pdf.addHTML(source, options,
function(){
pdf.save('abcd.pdf');
source.style.width = width+'px';
});