AndroidPdfViewer icon indicating copy to clipboard operation
AndroidPdfViewer copied to clipboard

How can I get the zoom in/out ratio??

Open JLinKuo opened this issue 5 years ago • 3 comments

How could i get the zoom in/out ratio when a user uses two fingers to zoom in/out a pdf file. I need a callback.

JLinKuo avatar Jun 17 '20 09:06 JLinKuo

When a pdf is opened it starts with the zoom level you have set.

Im not sure if that is what you are trying to do ?

1stmetro avatar Jun 17 '20 09:06 1stmetro

Sorry, my question was not clear. I mean how could I get zoom in ration when a user uses two fingers zoom in/out the pdf?

JLinKuo avatar Jun 17 '20 09:06 JLinKuo

`pdfView = findViewById(R.id.pdfView);

pdfView.setMinZoom(1f);

pdfView.setMidZoom(2.5f);

pdfView.setMaxZoom(10.0f);`

vimalcvs avatar Aug 02 '22 13:08 vimalcvs