flutter_pdfview icon indicating copy to clipboard operation
flutter_pdfview copied to clipboard

Increase max zoom level on Android

Open albatrosify opened this issue 3 years ago • 4 comments

Hello,

is it possible to increase the zoom-depth on android? With this plugin I can not zoom enough into the PDF File.

Thanks

albatrosify avatar Sep 14 '21 09:09 albatrosify

Same issue here

FabianGrob avatar Jan 16 '22 03:01 FabianGrob

Same issue here as well.

pekwih avatar Mar 10 '22 13:03 pekwih

I also had this same issue. There's no way to set zoom level and max zoom seems lower in Android than iOS. I fixed with this package, which seems be a fork of flutter_pdfview.

mirkancal avatar Sep 19 '22 08:09 mirkancal

To get zoom in/out and other preview functionalities, I changed from flutter_pdfview to pdfx packages. What I did inside the build method for changing from flutter_pdfview (code excerpt):

...
  body: PDFView(filePath: path),
...

To pdfx (code excerpt):

...
  body: PdfView(controller: PdfController(document: PdfDocument.openFile(path))),
...

The path is a String variable.

A final reason you should try pdfx is: it is well positioned in terms of overall rated. A did all tests at Android-11's real device.

alex2correia avatar Nov 06 '22 19:11 alex2correia