Open rchabin opened 8 years ago
it works great so thank you for that!
Glad XDocReport helps you
I did not find a way (neither an example) to handle ODT and DOCX document types
I'm sorry I don't understand your problem?
handle ODT and DOCX document types in the same web application, is that possible?
If you wish to generate odt -> pdf and docx -> pdf in the same web application, yes it's possible, your application must just host the well XDocReport jars
Hello! In my company, we are currently using your tool with ODT documents, Freemarker template engine and PDF conversion, it works great so thank you for that!
But now, some of our users would rather use DOCX documents, and I did not find a way (neither an example) to handle ODT and DOCX document types in the same web application, is that possible?
I would like to be able to write something like this:
final Options options; if (report.getKind().toLowerCase().equals("odt")){ options = Options.getTo(ConverterTypeTo.PDF).via(ConverterTypeVia.ODFDOM); } else if (report.getKind().toLowerCase().equals("docx")){ options = Options.getTo(ConverterTypeTo.PDF).via(ConverterTypeVia.XWPF); }
Thanks for the reply :)