Created attachment 125289 [details] Source HTML file and generated DOC & DOCX files We use LibreOffice 5.0.4.2 to create .docx and , .doc documents using UNO Java API. We use MS Word 97 filter to produce .doc documents and MS Word 2007 XML to produce .docx documents. We have content from HTML file. The text has strong ,em (italic). We have a bookmark in both .doc and .docx files and used XDocumentInsertable.insertDocumentFromURL API to insert text from HTML file in place of bookmark XTextCursor . But generated files doesn't show <em> italic and shows strong(bold attribute). Code We used to to Insert HTML file in the document is below: ------------------------------------------------------------- PropertyValue[] insertArgs = new PropertyValue[1]; insertArgs[0] = "HTML"; // Create the text cursor using the specified textRange XTextCursor xTextCursor = (com.sun.star.text.XTextCursor) xtextdocument.getText().createTextCursorByRange( xTextRange); // XDocumentInsertable makes it possible to import a document from a // given URL into this document. XDocumentInsertable xDocumentInsertable = (XDocumentInsertable) UnoRuntime.queryInterface( XDocumentInsertable.class, xTextCursor); xDocumentInsertable.insertDocumentFromURL(strFileUrl, insertArgs) Hence It seems an issue in LibreOffice as it is not applying all attributes of text in generated files.
Please let me know if you need more details, we can provide them. Please confirm whether this an existing issue or is it fixed in latest version.
(In reply to jvchbabu from comment #1) > Please let me know if you need more details, we can provide them. Please > confirm whether this an existing issue or is it fixed in latest version. Please use a daily build to confirm: http://dev-builds.libreoffice.org/daily/master/?C=M;O=A
Cloud please look into this bug and provide update. Please let me know if need more information or help in reproducing the issue.
*** This bug has been marked as a duplicate of bug 100132 ***