We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

How can I dynamic display the image on PDF?

I need to load the image from file (take by camera and saved in local), but I can't find the ways for that, the normal way just can pass the stream to PdfBitmap as below:

Stream imageStream = typeof(App).GetTypeInfo().Assembly.GetManifestResourceStream("Test.asset.Xamarin_JPEG.jpg");
PdfImage image = new PdfBitmap(imageStream);

but how can I get the image from file by path?


2 Replies

WI Winson January 31, 2020 12:45 AM

Ok, I have sloved my problem, just need to use the FileStream to load the image file and will be ok

SL Sowmiya Loganathan Syncfusion Team January 31, 2020 02:17 AM

Hi Winso, 
We glad to know that your requirement is achieved.  
Sowmiya Loganathan 

Live Chat Icon For mobile
Up arrow icon