I'm creating a PDF on the fly using Syncfusion and Xamarin Forms. Everything is going well in iOS, but in Android, it failed to locate the image (logo).
followed syncfusion PDF getting started but even that it's not working. The image is located in android's resource/drawable. I did also added it in assets.
This is the working code in xamarin forms iOS
//Load the image
Stream imageStream = System.IO.File.OpenRead("logo.jpg");
//Load the image from the stream
PdfBitmap image = new PdfBitmap(imageStream);
Unfortunately, even this doesn't work on Android
//Load the image
Stream imageStream = DependencyService.Get<ISave>().LoadFromFile(@"logo.jpg");
//Load the image from the stream
PdfBitmap image = new PdfBitmap(imageStream);
Your help is appreciated as I'm stuck on this for 3 days now.