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

PDF generation with partial HTML content - suggestions?

Thread ID:





92955 Feb 16,2010 11:34 AM UTC Mar 3,2010 06:26 AM UTC ASP.NET Web Forms (Classic) 1
Tags: PDF
David Tawse
Asked On February 16, 2010 11:34 AM UTC


I'm currently using the PDF component within an ASP.NET application that, amongst other things, generates quotes as PDF. Currently, the user enters each quote line item as plain text which is saved to a database and included in the quote PDF when generated.

The user has requested the ability to format the text using tabs, bold, italic etc. This poses a couple of questions. How do I allow them to enter this via their browser and how do I render this to the PDF?

I've been thinking along the lines of allowing the user to input the text using an HTML editor such as the one within the AJAX toolkit (http://www.asp.net/AJAX/AjaxControlToolkit/Samples/HTMLEditor/HTMLEditor.aspx) but I'm not sure if it's possible to output this reliably within the PDF.

I know I can render a whole HTML page to a PDF, but can I display blocks of HTML cleanly within the PDF?


Meiyappan R [Syncfusion]
Replied On March 3, 2010 06:26 AM UTC

Hi Dave,

Thank you for your interest in syncfusion products.

Could you please look into the below sample which illustrates the text rendering in PDF from the browser input.


But it has certain limitations.

1.Only single font type is used at a instant.

2.If a large text is given as an input the subsequent input text will be in the next line.

If you want to use multiple font rendering at the same instant you can use our RTFToPDF or HTMLToPDF feature provided in our product.

For RTFToPDF sample please look into the following link.


For HTMLToPDF sample please look into the following link.


Kindly let us know if you have any queries.



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.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

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