Hello.
I have simple docx file with numbering list.
I try to convert it to HTML by docx4j 3.2.2 with
this solution:
- Code: Select all
SdtWriter.registerTagHandler("HTML_ELEMENT", new SdtToListSdtTagHandler());
HTMLSettings htmlSettings = Docx4J.createHTMLSettings();
htmlSettings.setWmlPackage(wordMLPackage);
Docx4J.toHTML(htmlSettings, os, Docx4J.FLAG_EXPORT_PREFER_XSL);
But in the resulting HTML file the "display:block" style is set and as the result, digits are not displayed:
<?xml version="1.0" encoding="utf-8"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships"><head><meta content="text/html; charset=utf-8" http-equiv="Content-Type" /><style><!--/*paged media */ div.header {display: none ...