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.
Unfortunately, activation email could not send to your email. Please try again.

How to insert image into pdf xamarin.forms android?

Thread ID:

Created:

Updated:

Platform:

Replies:

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

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 01:36 AM

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.

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.

;