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 to insert image into pdf xamarin.forms android?

Hi All,

I am bit struggling for showing image on pdf in xamarin.forms android so anybody can help me out of this.


1 Reply

PH Praveenkumar H Syncfusion Team May 25, 2015 05:36 AM UTC

Hi Dnyani,

Thank you for your interest in syncfusion products,

Currently we do only support JPEG images in Xamarin.Forms platform, Please find the code snippet to load the images from stream.

Stream imgStream = typeof(App).GetTypeInfo().Assembly.GetManifestResourceStream("Pdf.Assets.Reporting-Edition.jpg");

//Creating image from Sream using the static function called FromStream
g.DrawImage(PdfImage.FromStream(imgStream), 10, 10, 300, 170);

The sample projects is attached for your reference.

Please let us know if you need further assistance.

With Regards,

Live Chat Icon For mobile
Up arrow icon