error while converting html to pdf

Last post 04-20-2012, 7:32 AM by Kenneth. 7 replies.
Sort Posts: Previous Next
  •  03-23-2012, 11:41 AM 73548

    error while converting html to pdf


    we are using -
    CuteEditor.Convertor.PDF.HTML2PDF
    to convert html to pdf and getting this error - '$exception.Message' threw an exception of type 'System.OutOfMemoryException' 
     
     
  •  03-26-2012, 8:49 AM 73560 in reply to 73548

    Re: error while converting html to pdf

    Hi gurpreet,
     
    Do you get the same problem in the example below? If it only happens on your end, please create an example which can reproduce this issue and post here. I will check it and get back to you as soon as possible.
    1. <%@ Page Language="C#" %>  
    2.   
    3. <%@ Register Namespace="CuteEditor" Assembly="CuteEditor" TagPrefix="CE" %>  
    4. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">  
    5.   
    6. <script runat="server">  
    7.   
    8.     protected void button1_Click(object sender, EventArgs e)  
    9.     {  
    10.         CuteEditor.Convertor.RTF.HTML2RTF content = new CuteEditor.Convertor.RTF.HTML2RTF(editor1.Text);  
    11.         textBox1.Text = content.RTF.ToString();  
    12.     }  
    13. </script>  
    14.   
    15. <html xmlns="http://www.w3.org/1999/xhtml">  
    16. <head id="Head1" runat="server">  
    17.     <title>example</title>  
    18. </head>  
    19. <body>  
    20.     <form id="form1" runat="server">  
    21.         <CE:Editor ID="editor1" runat="server">  
    22.         </CE:Editor>  
    23.         <asp:Button ID="button1" runat="server" Text="cover to pdf " OnClick="button1_Click" /><br />  
    24.         <asp:TextBox ID="textBox1" runat="server" Width="1000px" TextMode="multiLine" Rows="10"></asp:TextBox>  
    25.     </form>  
    26. </body>  
    27. </html>  
    Regards,
     
    Ken 
  •  03-26-2012, 4:20 PM 73562 in reply to 73560

    Re: error while converting html to pdf

    getting the same error, below is the HTML we are trying to convert to PDF-
     
     
     
    <html>
    <body>
    <table style="background-color: rgb(215, 215, 215);" border="0" cellspacing="0" cellpadding="0" width="100%">
    <tr>
    <td>
    <table border="0" cellspacing="0" cellpadding="0" width="700" align="center">
    <tr>
    <div style="text-align: center; color: rgb(102, 102, 102); font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px;">If you''re having test trouble viewing this email, you may <a accesskey="1" href="[PURL-42352]thh Employment Opportunities[/PURL-42352]" target="_blank" u="" <="">see it online</a>.</div>
    </tr>
    <tr>
    <td valign="top">
    <table border="0" cellspacing="0" cellpadding="0" width="100%">
    <tr>
    <td valign="top"><img style="display: block;" border="0" alt="" src="http://www.mbp.com/useruploads/1zjkljj8/hires/emailcollateral/team_2_jr_03.jpg" width="700" height="118" /></td>
    </tr>
    <tr>
    <td valign="top">
    <table border="0" cellspacing="0" cellpadding="0" width="100%">
    <tr>
    <td valign="top" width="385" align="left"><a accesskey="2" href="http://thh.com/" target="_blank"><img style="display: block;" border="0" alt="thh" src="http://www.mbp.com/useruploads/1zjkljj8/hires/emailcollateral/team_2_jr_05.jpg" width="461" height="47" /></a></td>
    <td valign="top" width="54" align="left"><a accesskey="3" href="http://www.facebook.com/thh" target="_blank"><img style="display: block;" border="0" alt="Facebook" src="http://www.mbp.com/useruploads/1zjkljj8/hires/emailcollateral/team_2_jr_06.jpg" width="61" height="47" /></a></td>
    <td valign="top" width="55" align="left"><a accesskey="4" href="http://twitter.com/thh" target="_blank"><img style="display: block;" border="0" alt="Twitter" src="http://www.mbp.com/useruploads/1zjkljj8/hires/emailcollateral/team_2_jr_07.jpg" width="45" height="47" /></a></td>
    <td valign="top" width="50" align="left"><a accesskey="5" href="http://www.linkedin.com/company/thh" target="_blank"><img style="display: block;" border="0" alt="LinkedIn" src="http://www.mbp.com/useruploads/1zjkljj8/hires/emailcollateral/team_2_jr_08.jpg" width="51" height="47" /></a></td>
    <td valign="top" width="64" align="left"><a accesskey="6" href="http://www.youtube.com/user/thh" target="_blank"><img style="display: block;" border="0" alt="YouTube" src="http://www.mbp.com/useruploads/1zjkljj8/hires/emailcollateral/team_2_jr_09.jpg" width="82" height="47" /></a></td>
    </tr>
    </table>
    </td>
    </tr>
    <tr>
    <td valign="top"><img style="display: block;" border="0" alt="" src="http://www.mbp.com/useruploads/1zjkljj8/hires/emailcollateral/team_2_jr_10.jpg" width="700" height="109" /></td>
    </tr>
    <tr>
    <td style="padding: 10px; background-color: rgb(255, 255, 255);" valign="top">
    <table border="0" cellspacing="0" cellpadding="0" width="100%">
    <tr>
    <td style="padding: 5px;" valign="top">
    <div align="left">
    <div>
    <div><span style="font-family: trebuchet ms, geneva; font-size: 10pt;">Dear Dr. [LastName]:</span></div>
    <div><span style="font-family: trebuchet ms, geneva; font-size: 10pt;">&nbsp;</span></div>
    <div><span style="font-family: trebuchet ms, geneva; font-size: 10pt;">thh is seeking an emergency physician to join our team full-time at <strong>Southcvbwest General Health Center</strong> near <strong>Cleveland, Ohio</strong>. The main campus of <strong>Southcvbwest General Health Center</strong> in <strong>Middcvbleburg Heights</strong> is a 50,000-volume, 34-bed ED with 48 hours of physician coverage and 36 hours of MLP coverage. Excellent department resources include pharmacy, case management and behavioral support embedded in the ED. This facility will break ground on a <strong>new state-of-the-art ED</strong> this year to be completed in 2013. </span></div>
    <div><span style="font-family: trebuchet ms, geneva; font-size: 10pt;">&nbsp;</span>&nbsp;</div>
    <div><span style="font-family: trebuchet ms, geneva; font-size: 10pt;">Candidates should be ABEM or AOBEM certified, alternate boards with significant EM experience will be considered. </span>
    <div><span style="font-family: trebuchet ms, geneva; font-size: 10pt;">&nbsp;</span>&nbsp;</div>
    <hr size="2" />
    </div>
    <div>
    <div>
    <div>
    <div><span style="font-family: trebuchet ms, geneva; font-size: 10pt;">thh offers excellent benefits and compensation, as well as the support needed for a high-quality work/life balance.</span></div>
    <ul>
    <li><span style="font-family: trebuchet ms, geneva; font-size: 10pt;">Competitive compensation&nbsp;</span></li>
    <li><span style="font-family: trebuchet ms, geneva; font-size: 10pt;">Paid professional liability insurance with tail coverage&nbsp;</span></li>
    <li><span style="font-family: trebuchet ms, geneva; font-size: 10pt;">Leadership and career growth opportunities&nbsp;</span></li>
    <li><span style="font-family: trebuchet ms, geneva; font-size: 10pt;">Flexible scheduling&nbsp;</span></li>
    <li><span style="font-family: trebuchet ms, geneva; font-size: 10pt;">Manageable patient case loads&nbsp;</span></li>
    <li><span style="font-family: trebuchet ms, geneva; font-size: 10pt;">Relocation assistance&nbsp;</span></li>
    <li><span style="font-family: trebuchet ms, geneva; font-size: 10pt;">Stability of a respected leader in the industry&nbsp;</span></li>
    </ul>
    <div><span style="font-family: trebuchet ms, geneva; font-size: 10pt;">The <strong>Cleveland</strong> area offers plenty of activities, including the Rock and Roll Hall of Fame, botanical gardens, the zoo, the Cleveland Museum, the African-American Museum, professional sports teams and the country''s second largest theatre district.</span></div>
    <div><span style="font-family: trebuchet ms, geneva; font-size: 10pt;">&nbsp;</span>&nbsp;</div>
    <div><span style="font-family: trebuchet ms, geneva; font-size: 10pt;"></span><span style="font-family: trebuchet ms, geneva; font-size: 10pt;">For more details, please contact <strong>Robin Lorber</strong> at <a accesskey="7" href="mailto:[email protected]">[email protected]</a> or call <strong>800.300.2904</strong>.&nbsp;</span><span style="font-family: trebuchet ms, geneva;">&nbsp;</span><span style="font-family: trebuchet ms, geneva;">&nbsp;</span></div>
    <div>&nbsp;</div>
    <div>
    <div align="center"><hr size="2" />
    </div>
    <div style="text-align: left;"><span style="font-family: trebuchet ms, geneva; font-size: 8pt;">&nbsp;"The term ''thh'' is a trademarked name which refers to Team Health, Inc., and a network of independent, but related entities, companies, divisions and subsidiaries.&nbsp; The term ''thh physicians'' includes physicians who contract with a thh-related legal entity. Team Health, Inc. does not perform medical services nor does it practice medicine in any way, and nothing in this advertisement is intended to convey anything to the contrary."</span></div>
    </div>
    </div>
    </div>
    </div>
    </div>
    </div>
    </td>
    </tr>
    </table>
    <div></div>
    </td>
    </tr>
    <tr>
    <td valign="top" width="700"><img style="display: block;" border="0" alt="" src="http://www.mbp.com/useruploads/1zjkljj8/hires/emailcollateral/team_jr_19.jpg" width="700" height="132" /></td>
    </tr>
    <tr>
    <td style="padding: 10px; color: rgb(102, 102, 102); font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 9px;" align="center">thh | fd d sf dsfdsf Way, dffd d 400 | rtrtretrt ertert , ert rt t ertreter</td>
    </tr>
    <tr>
    <td></td>
    </tr>
    <tr>
    <td>
    <div style="text-align: center; color: rgb(102, 102, 102); font-family: Arial; font-size: 9px;">This e-mail was sent to <span style="color: rgb(0, 0, 255); font-family: Arial; font-size: 9px;">[EmailAdd]</span>.&nbsp; To ensure that you continue receiving our e-mails, please add us to <br />
    your address book or safe list. <a accesskey="8" style="text-align: center; color: rgb(0, 0, 255); font-family: Arial; font-size: 9px; text-decoration: none;" href="[Unsubscribe]" target="_blank"><u>Opt Out<br />
    <br />
    </u></a></div>
    </td>
    </tr>
    </table>
    </td>
    </tr>
    <tr>
    <td style="color: rgb(102, 102, 102); font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px;" align="center">If you would like to receive emails from thh <a accesskey="9" style="text-align: center; color: rgb(0, 0, 255); font-family: Arial; font-size: 10px; text-decoration: none;" href="[PURL-41468]thh Opt-In[/PURL-41468]" target="_blank"><u>click here.</u></a></td>
    </tr>
    <tr>
    <td style="height: 20px;"></td>
    </tr>
    </table>
    </td>
    </tr>
    </table>
    </body>
    </html>
  •  03-26-2012, 4:58 PM 73563 in reply to 73562

    Re: error while converting html to pdf

    Hi gurpreet,
     
    Please try the html cod below, does it get the same error?
     
    <html>
    <body>
        <table style="background-color: #d7d7d7;" border="0" cellspacing="0" cellpadding="0"
            width="100%">
            <tr>
                <td>
                    <table border="0" cellspacing="0" cellpadding="0" width="700" align="center">
                        <tr>
                            <div style="text-align: center; color: #666666; font-family: Verdana, Arial, Helvetica, sans-serif;
                                font-size: 10px;">
                                If you''re having test trouble viewing this email, you may <a accesskey="1" href="[PURL-42352]thh Employment Opportunities[/PURL-42352]"
                                    target="_blank" u="" <="">see it online</a>.</div>
                        </tr>
                        <tr>
                            <td valign="top">
                                <table border="0" cellspacing="0" cellpadding="0" width="100%">
                                    <tr>
                                        <td valign="top">
                                            <img style="display: block;" border="0" alt="" src="https://mylivechat.com/images/livechat.gif"
                                                width="700" height="118" /></td>
                                    </tr>
                                    <tr>
                                        <td valign="top">
                                            <table border="0" cellspacing="0" cellpadding="0" width="100%">
                                                <tr>
                                                    <td valign="top" width="385" align="left">
                                                        <a accesskey="2" href="http://thh.com/" target="_blank">
                                                            <img style="display: block;" border="0" alt="thh" src="https://mylivechat.com/images/livechat.gif"
                                                                width="461" height="47" /></a></td>
                                                    <td valign="top" width="54" align="left">
                                                        <a accesskey="3" href="http://www.facebook.com/thh" target="_blank">
                                                            <img style="display: block;" border="0" alt="Facebook" src="https://mylivechat.com/images/livechat.gif"
                                                                width="61" height="47" /></a></td>
                                                    <td valign="top" width="55" align="left">
                                                        <a accesskey="4" href="http://twitter.com/thh" target="_blank">
                                                            <img style="display: block;" border="0" alt="Twitter" src="https://mylivechat.com/images/livechat.gif"
                                                                width="45" height="47" /></a></td>
                                                    <td valign="top" width="50" align="left">
                                                        <a accesskey="5" href="http://www.linkedin.com/company/thh" target="_blank">
                                                            <img style="display: block;" border="0" alt="LinkedIn" src="https://mylivechat.com/images/livechat.gif"
                                                                width="51" height="47" /></a></td>
                                                    <td valign="top" width="64" align="left">
                                                        <a accesskey="6" href="http://www.youtube.com/user/thh" target="_blank">
                                                            <img style="display: block;" border="0" alt="YouTube" src="https://mylivechat.com/images/livechat.gif"
                                                                width="82" height="47" /></a></td>
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td valign="top">
                                            <img style="display: block;" border="0" alt="" src="https://mylivechat.com/images/livechat.gif"
                                                width="700" height="109" /></td>
                                    </tr>
                                    <tr>
                                        <td style="padding: 10px; background-color: #ffffff;" valign="top">
                                            <table border="0" cellspacing="0" cellpadding="0" width="100%">
                                                <tr>
                                                    <td style="padding: 5px;" valign="top">
                                                        <div align="left">
                                                            <div>
                                                                <div>
                                                                    <span style="font-family: trebuchet ms, geneva; font-size: 10pt;">Dear Dr. [LastName]:</span></div>
                                                                <div>
                                                                    <span style="font-family: trebuchet ms, geneva; font-size: 10pt;">&nbsp;</span></div>
                                                                <div>
                                                                    <span style="font-family: trebuchet ms, geneva; font-size: 10pt;">thh is seeking an
                                                                        emergency physician to join our team full-time at <strong>Southcvbwest General Health
                                                                            Center</strong> near <strong>Cleveland, Ohio</strong>. The main campus of <strong>Southcvbwest
                                                                                General Health Center</strong> in <strong>Middcvbleburg Heights</strong>
                                                                        is a 50,000-volume, 34-bed ED with 48 hours of physician coverage and 36 hours of
                                                                        MLP coverage. Excellent department resources include pharmacy, case management and
                                                                        behavioral support embedded in the ED. This facility will break ground on a <strong>
                                                                            new state-of-the-art ED</strong> this year to be completed in 2013. </span>
                                                                </div>
                                                                <div>
                                                                    <span style="font-family: trebuchet ms, geneva; font-size: 10pt;">&nbsp;</span>&nbsp;</div>
                                                                <div>
                                                                    <span style="font-family: trebuchet ms, geneva; font-size: 10pt;">Candidates should
                                                                        be ABEM or AOBEM certified, alternate boards with significant EM experience will
                                                                        be considered. </span>
                                                                    <div>
                                                                        <span style="font-family: trebuchet ms, geneva; font-size: 10pt;">&nbsp;</span>&nbsp;</div>
                                                                    <hr size="2" />
                                                                </div>
                                                                <div>
                                                                    <div>
                                                                        <div>
                                                                            <div>
                                                                                <span style="font-family: trebuchet ms, geneva; font-size: 10pt;">thh offers excellent
                                                                                    benefits and compensation, as well as the support needed for a high-quality work/life
                                                                                    balance.</span></div>
                                                                            <ul>
                                                                                <li><span style="font-family: trebuchet ms, geneva; font-size: 10pt;">Competitive compensation&nbsp;</span></li>
                                                                                <li><span style="font-family: trebuchet ms, geneva; font-size: 10pt;">Paid professional
                                                                                    liability insurance with tail coverage&nbsp;</span></li>
                                                                                <li><span style="font-family: trebuchet ms, geneva; font-size: 10pt;">Leadership and
                                                                                    career growth opportunities&nbsp;</span></li>
                                                                                <li><span style="font-family: trebuchet ms, geneva; font-size: 10pt;">Flexible scheduling&nbsp;</span></li>
                                                                                <li><span style="font-family: trebuchet ms, geneva; font-size: 10pt;">Manageable patient
                                                                                    case loads&nbsp;</span></li>
                                                                                <li><span style="font-family: trebuchet ms, geneva; font-size: 10pt;">Relocation assistance&nbsp;</span></li>
                                                                                <li><span style="font-family: trebuchet ms, geneva; font-size: 10pt;">Stability of a
                                                                                    respected leader in the industry&nbsp;</span></li>
                                                                            </ul>
                                                                            <div>
                                                                                <span style="font-family: trebuchet ms, geneva; font-size: 10pt;">The <strong>Cleveland</strong>
                                                                                    area offers plenty of activities, including the Rock and Roll Hall of Fame, botanical
                                                                                    gardens, the zoo, the Cleveland Museum, the African-American Museum, professional
                                                                                    sports teams and the country''s second largest theatre district.</span></div>
                                                                            <div>
                                                                                <span style="font-family: trebuchet ms, geneva; font-size: 10pt;">&nbsp;</span>&nbsp;</div>
                                                                            <div>
                                                                                <span style="font-family: trebuchet ms, geneva; font-size: 10pt;"></span><span style="font-family: trebuchet ms, geneva;
                                                                                    font-size: 10pt;">For more details, please contact <strong>Robin Lorber</strong>
                                                                                    at <a accesskey="7" href="mailto:[email protected]">[email protected]</a> or call
                                                                                    <strong>800.300.2904</strong>.&nbsp;</span><span style="font-family: trebuchet ms, geneva;">&nbsp;</span><span
                                                                                        style="font-family: trebuchet ms, geneva;">&nbsp;</span></div>
                                                                            <div>
                                                                                &nbsp;</div>
                                                                            <div>
                                                                                <div align="center">
                                                                                    <hr size="2" />
                                                                                </div>
                                                                                <div style="text-align: left;">
                                                                                    <span style="font-family: trebuchet ms, geneva; font-size: 8pt;">&nbsp;"The term ''thh''
                                                                                        is a trademarked name which refers to Team Health, Inc., and a network of independent,
                                                                                        but related entities, companies, divisions and subsidiaries.&nbsp; The term ''thh
                                                                                        physicians'' includes physicians who contract with a thh-related legal entity. Team
                                                                                        Health, Inc. does not perform medical services nor does it practice medicine in
                                                                                        any way, and nothing in this advertisement is intended to convey anything to the
                                                                                        contrary."</span></div>
                                                                            </div>
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </td>
                                                </tr>
                                            </table>
                                            <div>
                                            </div>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td valign="top" width="700">
                                            <img style="display: block;" border="0" alt="" src="https://mylivechat.com/images/livechat.gif"
                                                width="700" height="132" /></td>
                                    </tr>
                                    <tr>
                                        <td style="padding: 10px; color: #666666; font-family: Verdana, Arial, Helvetica, sans-serif;
                                            font-size: 9px;" align="center">
                                            thh | fd d sf dsfdsf Way, dffd d 400 | rtrtretrt ertert , ert rt t ertreter</td>
                                    </tr>
                                    <tr>
                                        <td>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <div style="text-align: center; color: #666666; font-family: Arial; font-size: 9px;">
                                                This e-mail was sent to <span style="color: #0000ff; font-family: Arial; font-size: 9px;">
                                                    [EmailAdd]</span>.&nbsp; To ensure that you continue receiving our e-mails,
                                                please add us to
                                                <br />
                                                your address book or safe list. <a accesskey="8" style="text-align: center; color: #0000ff;
                                                    font-family: Arial; font-size: 9px; text-decoration: none;" href="[Unsubscribe]"
                                                    target="_blank"><u>Opt Out<br />
                                                        <br />
                                                    </u></a>
                                            </div>
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                        <tr>
                            <td style="color: #666666; font-family: Verdana, Arial, Helvetica, sans-serif;
                                font-size: 10px;" align="center">
                                If you would like to receive emails from thh <a accesskey="9" style="text-align: center;
                                    color: #0000ff; font-family: Arial; font-size: 10px; text-decoration: none;"
                                    href="[PURL-41468]thh Opt-In[/PURL-41468]" target="_blank"><u>click here.</u></a></td>
                        </tr>
                        <tr>
                            <td style="height: 20px;">
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </body>
    </html>
     
    Regards,
     
    Ken 
  •  03-26-2012, 5:39 PM 73564 in reply to 73563

    Re: error while converting html to pdf


    yes Ken, we got same error, for the above HTML also.
     
  •  03-27-2012, 3:41 AM 73565 in reply to 73564

    Re: error while converting html to pdf

    Hi gurpreet,
     
     
    And you can try set the "memoryLimit" to 20. More detail about the memoryLimit setting, please refer to 
     
    Regards,
     
    Ken 
  •  04-19-2012, 7:45 PM 73711 in reply to 73565

    Re: error while converting html to pdf

     
    Unable to create the PDF using the below HTML, we tried on your online DEMO also and we got server error.

    <table cellspacing="0" cellpadding="0" unselectable="on">
    <tbody unselectable="on">
    <tr unselectable="on">
    <td style="height: 120px" valign="top" colspan="2"><img style="width: 798px; height: 120px" border="0" alt="" src="http://www.mybizpromos.com/UserUploads/RGBHMXFY/Images/Header/Blue%20World%20Integrated%20Campaign.jpg" width="800" height="150" /></td>
    </tr>
    <tr unselectable="on">
    <td style="width: 400px" valign="top">
    <p><span style="font-family: Tahoma; font-size: 10pt">We will drip market to the leads that ACU currently has in your pipeline:</span><br />
    <br />
    <span style="font-family: Tahoma; font-size: 10pt">Proposal for 200 leads:</span><br />
    <br />
    <span style="font-family: Tahoma; font-size: 10pt">If there is an email address, send three emails 5 days apart. The email will be linked to a landing page with a call to action.</span><br />
    <br />
    <span style="font-family: Tahoma; font-size: 10pt">If emails are not opened, send a postcard with a PURL and a QR. The PURL will open a landing page with relevant information and QR code will open a mobile landing page. Both will be forms with a call to action.</span><br />
    <br />
    <span style="font-family: Tahoma; font-size: 10pt">If there is no email address, send a postcard (same as above)</span><br />
    <br />
    <span style="font-family: Tahoma; font-size: 10pt">ACU will supply the list in an Excel spreadsheet and high resolution branding material.</span></p>
    <p><span style="font-family: Tahoma; font-size: 10pt"><img style="width: 195px; height: 153px" border="0" alt="" src="http://www.mybizpromos.com/UserUploads/RGBHMXFY/Images/Auto/Honda%20CRV.jpg" width="200" height="150" /></span></p>
    </td>
    <td style="width: 372px; height: 455px" valign="top">
    <p><img style="width: 398px; height: 402px" border="0" alt="" src="http://www.mybizpromos.com/UserUploads/RGBHMXFY/Images/Auto/Honda%20CRV.jpg" width="401" height="357" /><a accesskey="1" href="http://cutesoft.net/example/[PURL-7379]1111%20Anystreet[/PURL-7379]" target="_blank"></a></p>
    </td>
    </tr>
    <tr bgcolor="#ff0000" unselectable="on">
    <td style="height: 88px" valign="top" colspan="2">
    <p>&nbsp;</p>
    </td>
    <td style="width: 803px" valign="top" colspan="2"></td>
    </tr>
    </tbody>
    </table>
  •  04-20-2012, 7:32 AM 73714 in reply to 73711

    Re: error while converting html to pdf

    Hi gurpreet ,
     
    Got error because your html code does not meet the html code rules.
     
    You have two columns in each <tr>, but in the code below you used two colspan="2". You should remove one <td> target of this <tr>
     
    <tr bgcolor="#ff0000" unselectable="on">
    <td style="height: 88px" valign="top" colspan="2">
    <p>&nbsp;</p>
    </td>
    <td style="width: 803px" valign="top" colspan="2"></td>
    </tr>
     
    Regards,
     
    Ken 
View as RSS news feed in XML