Hi,
Since I updated SfPdfViewer to version 16.1.0.24 I get the error "System.NullReferenceException: Object reference not set to an instance of an object." when loading an excisting pdf file in the PdfViewer. After re-installing the old version 15.4.0.20 the error does not occur.
My code:
var directory = new Java.IO.File(Android.OS.Environment.ExternalStorageDirectory, "pdf").ToString();
var pathPDF = System.IO.Path.Combine(directory, "HypoScan.pdf");
var pdfViewer = new Syncfusion.SfPdfViewer.Android.SfPdfViewer(v.Context);
var PdfStream = new FileStream(pathPDF, FileMode.Open, FileAccess.Read);
pdfViewer.LoadDocument(PdfStream); // version 16.1.0.24 --> System.NullReferenceException: Object reference not set to an instance of an object.
PdfStream.Close();
Do you know a solution?