You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using PDF.js .Now I want to do pinch zoom in PDF.js using the way you have done in TouchPDF.
I added the below code to the pdfcontainer:
$("#viewer").panzoom({
contain: 'invert'
, minScale: 1
, disablePan: true
, increment: 0.25
, maxScale: 2
, onChange: function () {
//linksDisabled = true;
console.log("inside onchange:::::::");
$("#viewer").panzoom("option", "disablePan", false);
//state = ZOOMEDIN;
}
, onEnd: function () {
setTimeout(function () {
console.log("inside onchange end:::::::");
$("#viewer").panzoom( 'zoom', {increment: .01});
//linksDisabled = false;
//if ($drag.panzoom("getMatrix")[0] == 1) zoomReset();
}, 1);
}
});
$("#viewer").panzoom('enable');
But still on zoom the pdf page is getting blurry.
Have I missed anything.Would be glad if you may suggest something on it.
Thanks
I use pdf.js right now and I wonder if it is possible to get pinch zoom to work somehow with just pdf.js?
Thanks a lot!
The text was updated successfully, but these errors were encountered: