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.

Insert Writeablebitmap in pdf

Thread ID:

Created:

Updated:

Platform:

Replies:

121243 Nov 23,2015 08:50 AM Nov 24,2015 11:31 PM Silverlight 5
loading
Tags: PDF
Anthony PALLINI
Asked On November 23, 2015 08:50 AM

Hello,

In our project, we get from the wcf service a writeablebitmap and we need to insert it in a pdf document.
is there any way to do that ?

If the image is rendered in a image control in a view, can we insert it directly ?


thanks in advance,


Have a nice day.

Praveenkumar H [Syncfusion]
Replied On November 24, 2015 05:54 AM

Hi Pallini,

Essential PDF Silverlight have the support to load images only from the stream object please refer the below code snippet.

PdfImage image = PdfImage.FromStream(imageStream);

You have to save the WriteableBitmap to Stream and you can load the image from the stream using PdfImage class.

The same applies to image control also, first you have to get the image stream from the control and then you can load it into the PDF.

Please let us know if you need further assistance.

With Regards,
Praveen

Anthony PALLINI
Replied On November 24, 2015 12:09 PM

Thanks for the answer.

I had to use imagetools dll in order to do it but it works now.

Praveenkumar H [Syncfusion]
Replied On November 24, 2015 11:31 PM

Hi Pallini,

We are happy to know that you got the solution in your side, please let me know if you need further assistance.

With Regards,
Praveen

Praveenkumar H [Syncfusion]
Replied On November 24, 2015 11:31 PM

Hi Pallini,

We are happy to know that you got the solution in your side, please let me know if you need further assistance.

With Regards,
Praveen

Praveenkumar H [Syncfusion]
Replied On November 24, 2015 11:31 PM

Hi Pallini,

We are happy to know that you got the solution in your side, please let me 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.

;