Sign In  Sign Up Live-Chat

html and css support

Last post 05-07-2008, 7:48 PM by forever. 3 replies.
Sort Posts: Previous Next
  •  05-07-2008, 10:32 AM 125838

    html and css support

    i am trying to convert an html string into a pdf format. I am using version 3.6.6 of aspose.pdf. The output comes up but padding and spacing are not preserved. Is there a doc that describes the full html/css support of the latest aspose.pdf?
    This message was posted using Aspose.Live 2 Forum
     
  •  05-07-2008, 12:29 PM 125862 in reply to 125838

    Re: html and css support

    Hi,

    Can you please provide us with the html that you are having trouble with so that we can test it.

    Thanks.

     
  •  05-07-2008, 12:50 PM 125865 in reply to 125862

    Re: html and css support

    Here is my html. The intent is to display a report header. It can easily be accomplished with css but since I am not sure aspose supports css I am using nested tables to achieve a desired effect.

    <table cellpadding="2" border="0">
    <tr><td><font face="Tahoma" size="8" color="#646464"><b>Holder:</b>&nbsp;Company</font></td></tr>
    </table>
    <table width="100%" cellpadding="0" cellspacing="0" border="1">
    <tr><td width="100%">
     <table width="100%" cellpadding="3" cellspacing="0" border="0">
     <tr><td width="34%" align="left" valign="top">
      <table width="100%" cellpadding="1" cellspacing="1" border="0">
      <tr><td colspan="2" align="left">
       <font face="Tahoma" size="8" color="#646464">Street A</font>
      </td></tr>
      <tr><td colspan="2" align="left">
       <font face="Tahoma" size="8" color="#646464">City,&nbsp;State,&nbsp;Zip</font>
      </td></tr>
      <tr><td colspan="2" align="left">
       <font face="Tahoma" size="8" color="#646464">Country</font>
      </td></tr>
      <tr><td colspan="2" align="left">
       <font face="Tahoma" size="8"><a href="www.site.com" target="_self">www.site.com</a></font>
      </td></tr>
      <tr><td align="left">
       <font face="Tahoma" size="8" color="#646464"><b>Gen. Line:</b></font>
      </td><td align="left">
       <font face="Tahoma" size="8" color="#646464">000-000-0000</font>
      </td></tr>
      <tr><td align="left">
       <font face="Tahoma" size="8" color="#646464"><b>Fax:</b></font>
      </td><td align="left"><font face="Tahoma" size="8" color="#646464">(000) 000-000</font>
      </td></tr>
      </table>
     </td>
     <td width="1%" align="left" valign="top"></td>
     <td width="34%" align="left" valign="top">
      <table width="100%" cellpadding="1" cellspacing="1" border="0">
      <tr><td align="left">
       <font face="Tahoma" size="8" color="#646464"><b>Value:</b></font>
      </td><td align="left">
       <font face="Tahoma" size="8" color="#00ff00">579,137,977,554</font>
      </td></tr>
      <tr><td align="left">
       <font face="Tahoma" size="8" color="#646464"><b>Value 2:</b></font>
      </td><td align="left">
       <font face="Tahoma" size="8" color="#00ff00">7,563</font>
      </td></tr>
      </table>
     </td>
     <td width="1%" align="left" valign="top"></td>
     <td width="30%" align="left" valign="top">
      <table width="100%" cellpadding="1" cellspacing="1" border="0">
      <tr><td align="left">
       <font face="Tahoma" size="8" color="#646464"><b>Value 3:</b></font>
      </td><td align="left">
       <font face="Tahoma" size="8" color="#646464">7,023.0</font>
      </td></tr>
      </table>
     </td></tr></table>
    </td></tr></table>

     

     
  •  05-07-2008, 7:48 PM 125905 in reply to 125865

    Re: html and css support

    Hi,

    I have reproduced this error and logged this issue as PDFNET-5026. Currently only simple format is supported in inline HTML. We will try to improve it in the future version.


    Tommy Wang
    Lead Developer
    Aspose Changsha Team
    About Us
    Contact Us
     
View as RSS news feed in XML