need to convert html text into pdf without losing formatting like color style tagshttp://forums.asp.net/t/1754193.aspx/1?need+to+convert+html+text+into+pdf+without+losing+formatting+like+color+style+tagsSat, 31 Dec 2011 00:20:03 -050017541934755595http://forums.asp.net/p/1754193/4755595.aspx/1?need+to+convert+html+text+into+pdf+without+losing+formatting+like+color+style+tagsneed to convert html text into pdf without losing formatting like color style tags <p><span size="2" style="font-size:x-small"><span style="font-family:Arial">Hello, </span></span></p> <p><span size="2" style="font-size:x-small"><span style="font-family:Arial">I need to save the formatting of the text below</span></span></p> <p>html text</p> <pre class="prettyprint">&lt;font size=&quot;2&quot;&gt;&lt;span style=&quot;font-family: Arial;&quot;&gt;hello&lt;br&gt;&lt;br&gt; &lt;br style=&quot;font-weight: bold; text-decoration: underline;&quot;&gt;&lt;/span&gt;&lt;/font&gt; &lt;div style=&quot;text-align: center;&quot;&gt;&lt;font size=&quot;2&quot;&gt;&lt;span style=&quot;font-family: Arial;&quot;&gt; &lt;span style=&quot;font-weight: bold; text-decoration: underline;&quot;&gt;I need to save the formatting&lt;/span&gt; &lt;span style=&quot;font-weight: bold;&quot;&gt; &lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;of this text.&lt;/span&gt; &lt;/span&gt;&lt;/span&gt;&lt;/font&gt; &lt;br&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br&gt;&lt;/div&gt;&lt;br&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br&gt;&lt;/div&gt;&lt;font size=&quot;2&quot;&gt; &lt;span style=&quot;font-family: Arial;&quot;&gt;&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;</pre> <p>I need to convert html text to pdf without lsing formatting as style tags .It needs to be&nbsp;a c# based solution.</p> 2011-12-29T17:49:25-05:004755810http://forums.asp.net/p/1754193/4755810.aspx/1?Re+need+to+convert+html+text+into+pdf+without+losing+formatting+like+color+style+tagsRe: need to convert html text into pdf without losing formatting like color style tags <p>I use the RadEditor to do this type of functionality...</p> <p><a href="http://demos.telerik.com/aspnet-ajax/editor/examples/pdfexport/defaultcs.aspx">http://demos.telerik.com/aspnet-ajax/editor/examples/pdfexport/defaultcs.aspx</a></p> <p>There are several other WYSIWYG editors out there like Cute Editor, CKEditor, etc.&nbsp; I am not sure which ones are free.</p> <p>Also, you might look into iTextSharp...</p> <p><a href="http://sourceforge.net/projects/itextsharp/">http://sourceforge.net/projects/itextsharp/</a></p> <p>&nbsp;</p> <p>Matt</p> 2011-12-29T21:47:52-05:004756385http://forums.asp.net/p/1754193/4756385.aspx/1?Re+need+to+convert+html+text+into+pdf+without+losing+formatting+like+color+style+tagsRe: need to convert html text into pdf without losing formatting like color style tags <p>is there a solution without third party controls..</p> <p>I am able to generate pdf thru itextsharp but the reqmt is to have css in pddf without losing style tags and fonts.....</p> <p>is there a csharp solution avalible or any idea thru code?</p> 2011-12-30T06:21:27-05:004756953http://forums.asp.net/p/1754193/4756953.aspx/1?Re+need+to+convert+html+text+into+pdf+without+losing+formatting+like+color+style+tagsRe: need to convert html text into pdf without losing formatting like color style tags <p>Not without re-inventing what others have already done.&nbsp; I still suggest a WISYWIG editor because they make it so much easier.&nbsp; If this is not an option, you will need to go through the documentation from Adobe (or others)&nbsp;in order to find out all of their API calls to create a PDF file from your own code.&nbsp; Honestly, I have never done this because it wopuld take weeks of work to figure out.&nbsp; If somebody else has a suggestion, I would love to hear it as well!!</p> <p>&nbsp;</p> <p>Matt</p> 2011-12-30T13:17:42-05:004757646http://forums.asp.net/p/1754193/4757646.aspx/1?Re+need+to+convert+html+text+into+pdf+without+losing+formatting+like+color+style+tagsRe: need to convert html text into pdf without losing formatting like color style tags <p>Hello Giro</p> <p>For converting from a pure html to pdfyou can use this tool<a href="http://www.winnovative-software.com/Html-To-Pdf-Converter.aspx">http://www.winnovative-software.com/Html-To-Pdf-Converter.aspx</a></p> <p>PSThis is a 3-rd party librarySo microsoft doesn't take the responsibility for that usageOnly a recommand</p> <p>Best reguards</p> <p>&nbsp;</p> 2011-12-31T00:20:03-05:00