Hi,
Is it possible to use docx4j to convert a 2013 dotx template to 2010 format?
Or when this is not possible does anybody know the difference between the 2?
It is currently Sun Jan 12, 2025 7:00 am
<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>
package myartifact;
import org.docx4j.openpackaging.packages.WordprocessingMLPackage;
import org.apache.log4j.BasicConfigurator;
public class HelloMavenCentral {
public static void main(String[] args) throws Exception {
BasicConfigurator.configure();
WordprocessingMLPackage wordMLPackage = WordprocessingMLPackage.createPackage();
String filename = "C:\\Users\\Mike\\Desktop\\My.docx";
wordMLPackage.load(new java.io.File(filename) );
}
}
$ fc-list | grep Algerian
/home/lupin/.fonts/ALGER.TTF: Algerian:style=Regular,normal,Standard,Normaali,Normale,Standaard
/usr/local/lib/X11/fonts/lupinfonts/ALGER.TTF: Algerian:style=Regular,normal,Standard,Normaali,Normale,Standaard
Total posts 10116 • Total topics 2845 • Total members 2076