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 : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to insert image into pdf xamarin.forms android?

Thread ID:

Created:

Updated:

Platform:

Replies:

119208 May 22,2015 04:44 AM UTC May 25,2015 05:36 AM UTC Xamarin.Forms 1
loading
Tags: PDF
Dnyani
Asked On May 22, 2015 04:44 AM UTC

Hi All,

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

Thanks.

Praveenkumar H [Syncfusion]
Replied On 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


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.

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

;