In Xamarin.Forms, PDF viewer cannot be used in a ScrollView as the PdfViewer uses ScrollView to scroll the PDF pages. Two ScrollViews must not be nested according to the usage guidelines of the Scrollview given in the following link.
If the PdfViewer is used inside a ScrollView not regarding to the previous statement, there will not be any problem in iOS and UWP. But, in Android, only first two pages are rendered and the restare blank. When you scroll, only the parent ScrollView is scrolled. The scroll on the child ScrollView is not detected and the OnScrollChanged event is not raised.
In Android, on-demand rendering of the pages is used because rendering all the pages of the PDF when it is loaded will be much time consuming based on the page count of the PDF. So, only the first two pages are rendered when the PDF is loaded. The subsequent pages are rendered only when you scroll through the PDF.
Since the scroll on the child ScrollView, which is inside the PdfViewer is not detected, the pages other than the first two is not rendered. This is the default behavior of ScrollView that is nested inside another ScrollView in Android platform. The sample in the following link uses two ScrollViews and does not include PdfViewer.
|Article ID:||Published Date:||Last Revised Date:||Platform:||Control:|
or the page will be automatically redirected to sign-in page in 10 seconds.