Hello,
I am trying ot use the package from jython. Has any body tried or used it. Since all the classes are protecte, i am unable to ue straight away. Thanks for your answers.
regards
Guru
It is currently Wed Dec 03, 2025 6:12 am
News of PlutextWordprocessingMLPackage document = WordprocessingMLPackage.load(new FileInputStream(new File("c:/report.docx")));
Mapper fontMapper = new IdentityPlusMapper();
document.setFontMapper(fontMapper);
File fo = new File("c:/report.fo");
File pdf = new File("c:/report.pdf");
org.docx4j.convert.out.pdf.PdfConversion converter = new org.docx4j.convert.out.pdf.viaXSLFO.Conversion(document);
((org.docx4j.convert.out.pdf.viaXSLFO.Conversion)converter).setSaveFO(fo);
os = new FileOutputStream(pdf);
converter.output(os, new PdfSettings());
System.out.println(System.getProperty("java.vendor"));
System.out.println(System.getProperty("java.version"));
System.out.println("Warning: Xalan jar missing from classpath; xslt not supported");
Total posts 10213 • Total topics 2877 • Total members 2103