Created attachment 125384 [details] Source HTML file and generated DOC & DOCX output 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 first line of text is applied with Arial Black font family and second text is applied with Calibri . 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 shows different output.We observed formatting loss. Doc output(.doc) : ------------ Arial Black font family is retained for first line of text. Second line of text is changed to Times New Roman font family instead of Calibri font family. Docx output: Arial Black font family is changed to arial black;sans-serif for first line of text and complete format is lost.Even though source font family is arial black;sans-serif, .doc out put able to display it as Arial Black. Second line of text is changed to Times New Roman font family instead of Calibri font family. This Happening all most all font families. Please find attachments.zip for source html and generated output. Let us know if you need more information.
(In reply to jvchbabu from comment #0) > Let us know if you need more information. Can you share the Java program you are using to do the conversion? Set to NEEDINFO. Change back to UNCONFIRMED after you have provided the program.
I attached my source project as eclipse project and attached all source content files, template and sample output files. Please follow the below steps: 1) Extract zip file content. 2) Import Libre as java project. 3) Run DocumentGenerator.java by passing full path of template, full path of output file and full path of source html file. Sample arguments: "D:\libre\template.doc" "D:\libre\output1.doc" "D:\libre\source_html.html" 4) template and source html files are part of zip file content. Please let me know if you have need any more information.
Created attachment 126518 [details] project zip
changed the status as required.
Cloud please look into this bug and provide update. Please let me know if need more information or help in reproducing the issue.
*** Bug 100060 has been marked as a duplicate of this bug. ***
Could you please try to reproduce it with the latest version of LibreOffice from https://www.libreoffice.org/download/libreoffice-fresh/ ? I have set the bug's status to 'NEEDINFO'. Please change it back to 'UNCONFIRMED' if the bug is still present in the latest version.
Dear Bug Submitter, This bug has been in NEEDINFO status with no change for at least 6 months. Please provide the requested information as soon as possible and mark the bug as UNCONFIRMED. Due to regular bug tracker maintenance, if the bug is still in NEEDINFO status with no change in 30 days the QA team will close the bug as INSUFFICIENTDATA due to lack of needed information. For more information about our NEEDINFO policy please read the wiki located here: https://wiki.documentfoundation.org/QA/Bugzilla/Fields/Status/NEEDINFO If you have already provided the requested information, please mark the bug as UNCONFIRMED so that the QA team knows that the bug is ready to be confirmed. Thank you for helping us make LibreOffice even better for everyone! Warm Regards, QA Team MassPing-NeedInfo-Ping-20180302
Dear Bug Submitter, Please read this message in its entirety before proceeding. Your bug report is being closed as INSUFFICIENTDATA due to inactivity and a lack of information which is needed in order to accurately reproduce and confirm the problem. We encourage you to retest your bug against the latest release. If the issue is still present in the latest stable release, we need the following information (please ignore any that you've already provided): a) Provide details of your system including your operating system and the latest version of LibreOffice that you have confirmed the bug to be present b) Provide easy to reproduce steps – the simpler the better c) Provide any test case(s) which will help us confirm the problem d) Provide screenshots of the problem if you think it might help e) Read all comments and provide any requested information Once all of this is done, please set the bug back to UNCONFIRMED and we will attempt to reproduce the issue. Please do not: a) respond via email b) update the version field in the bug or any of the other details on the top section of our bug tracker Warm Regards, QA Team MassPing-NeedInfo-20180404
We reproduced this bug in the latest v7 build. We are trying to insert a piece of formatted text (ODT -> ODT) using a call similar to XDocumentInsertable xDocumentInsertable = (XDocumentInsertable)UnoRuntime.queryInterface(XDocumentInsertable.class, xTextCursor); if(xDocumentInsertable != null) xDocumentInsertable.insertDocumentFromURL(URLAdapter.adaptURL(url), new PropertyValue[0]); } (as you can find it in project.zip) Formatting gets lost / changes * indents get lost sometimes (especially the first line of inserted text) * font size of following text changes sometimes (before 9, now 10) We would really appreciate any thoughts and possible solutions! Regards
Ok, let's change to new
Dear jvchbabu, To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year. There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present. If you have time, please do the following: Test to see if the bug is still present with the latest version of LibreOffice from https://www.libreoffice.org/download/ If the bug is present, please leave a comment that includes the information from Help - About LibreOffice. If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a comment that includes the information from Help - About LibreOffice. Please DO NOT Update the version field Reply via email (please reply directly on the bug tracker) Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not appropriate in this case) If you want to do more to help you can test to see if your issue is a REGRESSION. To do so: 1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) from https://downloadarchive.documentfoundation.org/libreoffice/old/ 2. Test your bug 3. Leave a comment with your results. 4a. If the bug was present with 3.3 - set version to 'inherited from OOo'; 4b. If the bug was not present in 3.3 - add 'regression' to keyword Feel free to come ask questions or to say hello in our QA chat: https://web.libera.chat/?settings=#libreoffice-qa Thank you for helping us make LibreOffice even better for everyone! Warm Regards, QA Team MassPing-UntouchedBug