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

Insert Writeablebitmap in pdf

Thread ID:

Created:

Updated:

Platform:

Replies:

121243 Nov 23,2015 01:50 PM UTC Nov 25,2015 04:31 AM UTC Silverlight 5
loading
Tags: PDF
Anthony PALLINI
Asked On November 23, 2015 01:50 PM UTC

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 10:54 AM UTC

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 05:09 PM UTC

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 25, 2015 04:31 AM UTC

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 25, 2015 04:31 AM UTC

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 25, 2015 04:31 AM UTC

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.

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

;