How can I turn on logging for docx4j?
I am using version 3.2.1 with WildFly 8.1 server but i can't see any log informations in the console or in the log files.
Thank you in advance for your answer.
It is currently Sat Jan 11, 2025 5:56 pm
LoadFromZipNG loader = new LoadFromZipNG();
try {
tmpPkg = (WordprocessingMLPackage)loader.get(docxInputStream);
} catch (Exception e) {
throw new Docx4JException("Error reading docx file (is this a valid docx?)");
}
// ByteBuffer myImage ...
byte[] bytes = myImage.array();
BinaryPartAbstractImage imagePart = BinaryPartAbstractImage
.createImagePart(wordMLPackage, bytes);
int docPrId = 1;
int cNvPrId = 2;
Inline inline = imagePart.createImageInline(image_ID,
image_description, docPrId, cNvPrId, true);
<img height="11" width="11" src="images/example.png"/>
<img height="11px" width="11px" src="images/example.png"/>
img {
width:11px;
height:11px;
}
<body>
<titre>MainTitre</titre>
<texte niv="1" type="DMPART" id="1">
<titre>titleniv1</titre>
<p>myparagraphe</p>
<p>otherPara</p>
<liste type="PUCE">
<item>firtsItem</item>
<item>seconditem</item>
<item>thirdItem</item>
</liste>
<p>paraAgain</p>
</texte>
<texte niv="1" type="DMPART" id="2">
<titre>titleniv1</titre>
<texte niv="2" type="puce" style="noir">
<titre>titleNiv2</titre>
<p>para </p>
</texte>
<texte niv="2" type="puce" style="noir">
<titre>titleniv2</titre>
<p>para</p>
<p>paraAgain </p>
<p>para</p>
</texte>
</texte>
</body>
Total posts 10116 • Total topics 2845 • Total members 2076