Hello,
I would like to produce docx from xhtml, including footer/header with page numbering. The input is:
String pXHTML += """
<html>
<head>
<style>
@page {
@top-center {
content: element(header)
}
@bottom-center {
content: element(footer)
}
}
div.header {
display : block;
text-align: center;
position : running(header);
}
div.footer {
display : block;
text-align: center;
position : running(footer);
}
.page-number::after {
content: counter(page) "/" counter(pages);
}
</style>
</head>
<body>
<div class="header">
this is the header ...