This is my first time with odftoolkit and I'm having an extrange error. I have an .odt template and when converting to pdf it looses data.
Example:
**Title 1:** Text 1. **Title 2:** Text 2.
The thing is that cnverted PDF only have Text1 / text2 and nothin about the titles. Both are the same font but different heigth.
public static File convertir(File informe) throws Exception{
logger.entry();
File informePdf = null;
String filePath = "";
try{
InputStream is = new FileInputStream(informe);
filePath = informe.getAbsolutePath().replace(".ODT",".PDF");
informePdf = new File(filePath);
OutputStream os = new FileOutputStream(informePdf);
ConversorPDF conversor = new ConversorPDF(is, os, false, true);
conversor.convert();
logger.trace("Convertido a PDF correctamente");
return informePdf;
}catch ( Exception e){
logger.catching(e);
throw e;
}
}
Sorry for my english ;)