-1

I know it is a repetitive question, but most of the answers are not straightforward for this question. Some say, convert HTML to XHTML and then convert it to Word doc. Some say, right-click on the page and select 'Save as doc'. But my question is, is there any particular API for this, which simply converts the HTML to Doc?

To elaborate, is there any API like iText (which we use for PDF) for Word doc generation?

Thanks.

2

1 Answer 1

2

The Apache POI project's goal is to provide a comprehensive Java API for Microsoft Word documents.

However, you should keep in mind that Word formatting is awfully complex and messy. It might be easier to go with a cleaner or more abstracted specification, like PDF.

Best of luck.

Not the answer you're looking for? Browse other questions tagged or ask your own question.