CopyPastor

Detecting plagiarism made easy.

Score: 0.8095042705535889; Reported for: String similarity Open both answers

Possible Plagiarism

Plagiarized on 2023-03-27
by Fuad Rifki

Original Post

Original - Posted on 2015-01-02
by nwishs



            
Present in both answers; Present only in the new answer; Present only in the old answer;

you can reset doc variable like first called function. work for me
$(".button").click(function(){ var doc = new jsPDF('landscape'); doc.addImage(frontImg, 'PNG', 0, 0, 300, 210); doc.addPage('a6','l'); doc.addImage(backImg, 'PNG', 0, 0, 300, 210); doc.save('file.pdf');
doc = new jsPDF('landscape'); });
try to initialise the doc once again...

$(".button").click(function(){ var doc = new jsPDF('landscape');
doc.addImage(frontImg, 'PNG', 0, 0, 300, 210); doc.addPage('a6','l'); doc.addImage(backImg, 'PNG', 0, 0, 300, 210); doc.save('file.pdf'); doc = new jsPDF('landscape'); });

        
Present in both answers; Present only in the new answer; Present only in the old answer;