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. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How can I dynamic display the image on PDF?

Thread ID:

Created:

Updated:

Platform:

Replies:

151104 Jan 31,2020 02:40 AM UTC Jan 31,2020 07:17 AM UTC Xamarin.Forms 2
loading
Tags: PDF
Winson
Asked On January 31, 2020 02:40 AM UTC

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?

Thanks!

Winson
Replied On January 31, 2020 05:45 AM UTC

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

Sowmiya Loganathan [Syncfusion]
Replied On January 31, 2020 07:17 AM UTC

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


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon