On 07/23/2018 12:12 PM, LEITNER Martin wrote:
in the attached FO sample (emptyCells.fo), there is a block, a block
with a table, and another block, with some margins in between.
The margin between the first block and the table causes an empty
paragraph to be generated in the DOCX file (emptyCells.docx), which is fine.
However, while all the paragraphs with content have “Arial” as font name
(as defined in the FO file), the empty paragraph has no font assigned,
leaving MS Word to pick whatever font is defined in your settings (or
normal.dot).
This is unfortunate, as the recipient of the DOCX file may want to edit
it, and (somewhat reasonably) expects his newly added content to be
formatted in Arial, as is the rest of the document.
Note that the empty table cells also lack a font setting in a similar way.
Is there a way to assign formatting properties (font name, font size, …)
to these empty paragraphs (as shown in emptyCells_desired.docx)?
No. However this limitation is *partially* removed in forthcoming
XMLmind XSL-FO Converter v6. Excerpts from the Change History:
---
RTF, WML, DOCX output formats: the empty placeholder paragraph contained
in an empty table cell now inherits its font and text color from its
ancestors. In previous versions of XFC, this placeholder always used the
default font (e.g. Calibri 11pt) and the default text color.
---
--
XMLmind FO Converter Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/xfc-support