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.

Thanks.

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.
http://www.syncfusion.com/downloads/support/forum/119208/PdfGettingStarted-467152034.zip

Please let us know if you need further assistance.

With Regards,
Praveen


Loader.
Up arrow icon