Hi guys,
I'm trying to convert my odt document to pdf with XDocReport (ODFDOM) converter.
My document was generated with ODT with Freemarker method.
- Freemarker v. 2.3.20
- xdocreport v 1.0.2
For conversione I'm looking here:
https://angelozerr.wordpress.com/2012/12/06/how-to-convert-docxodt-to-pdfhtml-with-java/ and download the odt.converters-1.0.2-sample.zip here
https://code.google.com/p/xdocreport/downloads/list. (same results even with version 1.0.4).
Unfortunately, the conversion is not successful and these are the
error log:org.odftoolkit.odfdom.converter.core.ODFConverterException: java.lang.RuntimeException: Not all annotations could be added to the document (the document doesn't have enough pages).
at org.odftoolkit.odfdom.converter.pdf.PdfConverter.doConvert(PdfConverter.java:82)
at org.odftoolkit.odfdom.converter.pdf.PdfConverter.doConvert(PdfConverter.java:43)
at org.odftoolkit.odfdom.converter.core.AbstractODFConverter.convert(AbstractODFConverter.java:42)
at fr.opensagres.xdocreport.samples.odt.converters.pdf.ConvertODTas400ToPDF.main(ConvertODTas400ToPDF.java:198)
Caused by: java.lang.RuntimeException: Not all annotations could be added to the document (the document doesn't have enough pages).
at com.lowagie.text.pdf.PdfDocument.close(Unknown Source)
at com.lowagie.text.Document.close(Unknown Source)
at org.odftoolkit.odfdom.converter.pdf.internal.stylable.StylableDocument.close(StylableDocument.java:380)
at org.odftoolkit.odfdom.converter.pdf.internal.ElementVisitorForIText.save(ElementVisitorForIText.java:685)
at org.odftoolkit.odfdom.converter.pdf.PdfConverter.processBody(PdfConverter.java:128)
at org.odftoolkit.odfdom.converter.pdf.PdfConverter.doConvert(PdfConverter.java:65)
... 3 more
Generate ODTBig.pdf with 3066 ms.In Attached my odt file
Some ideas?