We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Html tags not being supported even if IsHtmlTagSupported=true

Hi,

I have a xml file from which I am generating the PDF. The xml is dynamic and it contains a field which can be html data. So, i made it to IsHtmlTagSupported=true.

But its not able to parse the html data even if we are making the field as IsHtmlTagSupported=true.

Data for which its failing:

1st failied :

The above structure is proposed due to the following:

  • Performance in 2010:  The Company improved performance in 2010.
  • Strong Balance Sheet:  At 3/31/09 the Company
  • Market Test:  According to the Company

2nd failed case :

Since the last approval in Sep 2010

  1. The business has transititioned
  2. Test 
  3. Test2

  4. Test3

  5. Test4

  6. Test5

  7. Full Year 2012

  8. Sachin Tendulkar

  9. Cricket

I think its faling if the data contains 1. some additional tags with like or

2. If there is a

tag inside

  • If I remove these tags its working.

    Could you please give me a list of HTML TAGS WHICH ASPOSE SUPPORTS ?

    The code template is :

    Pdf pdf = new Pdf();

    String inputFile = "C:\\Documents and Settings\\Desktop\\testing.txt";

    String data = readFile(new File(inputFile));

    pdf.bindXML(new StringBufferInputStream(data), null);

    pdf.save("C:\\AsposeTest\\config\\test\\My_TEST_PDF_12.pdf");

    Attaching the testing.txt

    Aspose Java Version 2.7.0/2.9.0 (tried in both)

  • Any suggestion ?

    Any Update ???

    sulthu:
    Hi,

    I have a xml file from which I am generating the PDF. The xml is dynamic and it contains a field which can be html data. So, i made it to IsHtmlTagSupported=true.

    But its not able to parse the html data even if we are making the field as IsHtmlTagSupported=true.

    Data for which its failing:

    1st failied :

    The above structure is proposed due to the following:

    • Performance in 2010:  The Company improved performance in 2010.
    • Strong Balance Sheet:  At 3/31/09 the Company
    • Market Test:  According to the Company

    Hello Sriman,

    I have tested the above scenario using Aspose.Pdf for Java 2.9.0 and I am able to notice that an exception is being generated because of nbsp character. For the sake of correction, I have logged it as PDFJAVA-29160 in our issue tracking system. We will further look into the details of this problem and will keep you updated on the status of correction.

    sulthu:
    2nd failed case :

    Since the last approval in Sep 2010

    1. The business has transititioned
    2. Test 
    3. Test2

    4. Test3

    5. Test4

    6. Test5

    7. Full Year 2012

    8. Sachin Tendulkar

    9. Cricket

    I think its faling if the data contains

    I have also been able to notice the same exception when using above specified XML contents.

    sulthu:
    Could you please give me a list of HTML TAGS WHICH ASPOSE SUPPORTS ?

    Currently I am afraid we don't have any specific list of supported HTML tags but we will try our level best to gather the required information and share it with you. Please be patient and spare us little time. We are really sorry for your inconvenience.