https://bz.apache.org/ooo/show_bug.cgi?id=127650
Issue ID: 127650
Issue Type: DEFECT
Summary: Formatting loss in for table border styles while
replacing bookmark in DOC file using
XDocumentInsertable.insertDocumentFromURL method
Product: Writer
Version: 4.0.1
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: Major
Priority: P5 (lowest)
Component: formatting
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
We use OpenOffice 4.0.1 to create .doc documents using UNO Java API.
We use MS Word 97 filter to produce .doc documents.
We have a content from HTML file. HTML content has table borders which are
specified by through style . We observed that Openoffice is not considering the
border style property which is responsible to collapse cell boaders into a
single border.OpenOffice is defaulting border-collapse: separate which allows
each cell to display its own borders. This is the issue . source html file and
temaplte doc and out files are atatched in sample program.
We have a bookmark in both .doc 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.
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.
--
You are receiving this mail because:
You are the assignee for the issue.