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. Image for the cookie policy date
close icon

XAML to pdf

I have a xaml user control that I want to convert to PDF. Should I create the PDF from scratch or is there a better way to do it? This is going to be read only. I guess I could make it a bitmap and then save the image to the PDF, but is there a better way?


1 Reply

GL George Livingston Syncfusion Team October 31, 2011 06:15 AM UTC

Hi Dan,

Thank you for your interest in Syncfusion products.

Yes, it is possible to convert a XAML file to HTML and then convert it to PDF. Please refer to the following link for XAML to HTML conversion:

http://msdn.microsoft.com/en-us/library/aa972129(v=vs.90).aspx

The HTML file can be converted to PDF using our HtmlConverter. Please check our online sample in the following link:

http://asp.syncfusion.com/sfaspnetsamplebrowser/9.3.0.61/Web/Pdf.Web/Samples/4.0/Import%20and%20Export/HtmlToPdf/CS/Default.aspx

Also, you can refer to our online documentation in the link below:

http://help.syncfusion.com/ug_93/Reporting/PDF/ASP.NET/default.htm?turl=Documents%2F441htmltopdf.htm

Please try this and let me know if you have any questions.

Regards,
George



Loader.
Live Chat Icon For mobile
Up arrow icon