docx4j cannot render <text-indent>

余生长醉 提交于 2020-01-15 11:17:30

问题


I am using docx4j-ImportXHTML to convert an XHTML into a docx. When rendering to docx I notice it doesn't render CSS text-indent property.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>
  <title>Title of document</title>
</head>

<body>

<p style="text-indent:100px;">indent text</p>

</body>

</html>

When running above code I do not see any indentation of the first line of the paragraph. However, while converting docx to xhtml it does interpret the first-line indent. Is there anything else that I am missing or is this just docx4j limitation? Is this a Flying Saucer's limitation?

来源:https://stackoverflow.com/questions/58044805/docx4j-cannot-render-text-indent

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!