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

Free Support Forum - aspose.com

Aspose support for HTML tag while PDF or other document generation using template

Hi Team,
Can following tag can be converted in to link or table or any other tag to readable format while generating the document using the aspose template.

We have the following data in json or map.

1) Taxes, tax liens, tax sales, water rates, sewer rents and
assessments set forth herein.


2)

test order num

Column
1
Column 2 Column
3
Test 1 Test 2 Test 3
Val
1
Val 2 Val 3


Can above tag will be generated in to table or link.

Thanks in advance.

Regards,
Dilip


Hi Dilip,

Thanks for your inquiry. You can insert HTML snippet inside a Word document using DocumentBuilder.insertHtml method. Please read about DocumentBuilder from here:
http://www.aspose.com/docs/display/wordsjava/DocumentBuilder+Overview

Please check following code example for your kind reference.
Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);

builder.insertHtml(

Paragraph right

” +
Implicit paragraph left +
Div center
+

Heading 1 left.

);

doc.save(getMyDir() + “DocumentBuilder.InsertHtml Out.doc”);


I am afraid, there is no way to add Javascript or
additional attributes to HTML using Aspose.Words. Aspose.Words does not
deal with Javascript and no Javascript is read or written during open
and save.
http://www.aspose.com/docs/display/wordsjava/Document+Features+Supported+on+HTML+Import