Skip to content

Latest commit

 

History

History
30 lines (17 loc) · 1.04 KB

README.md

File metadata and controls

30 lines (17 loc) · 1.04 KB

XamarinForms PDFView PinchZoom

Checkout blog here https://xamarinmonkeys.blogspot.com/2020/06/xamarinforms-working-with-pdfview-and.html

PDF Viewer

The Problem(Android)

PDFView doesn't support the default webview in android xamarin forms.

Solution

PDFView is the biggest issue in android webview. I solved this problem by using google drive viewer and google doc viewer there is another way to view pdf files using pdfjs. But pdfjs doesn't support pinch zoom.

mozilla/pdf.js#2582

Note

The pdf URL must be an extension, PDF, and public.

Sample Results

Android

You can test Pinch zoom by emulator also use Shift + ctrl + Left click and mouse move

alt text

iOS

Simulator also supports pinch-zoom use Alt + Left click and mouse move

alt text