https://bugs.documentfoundation.org/show_bug.cgi?id=100132
Bug ID: 100132
Summary: Formatting loss in replacing bookmark in DOCX file
using XDocumentInsertable.insertDocumentFromURL method
Product: LibreOffice
Version: 5.0.4.2 release
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: Writer
Assignee: [email protected]
Reporter: [email protected]
Created attachment 125384
--> https://bugs.documentfoundation.org/attachment.cgi?id=125384&action=edit
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.
--
You are receiving this mail because:
You are the assignee for the bug._______________________________________________
Libreoffice-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs