feristhia / xdocreport

Automatically exported from code.google.com/p/xdocreport
0 stars 0 forks source link

footnote not working with itext conversion #370

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
***What  steps will reproduce the problem?

1. Create text OpenOffice document
2. Insert footnote  to this document and save the document
3. Convert created document to PDF

***What is the expected output? What do you see instead?

I got an exception.

****What version of the product are you using? On what operating system?

last version
OS: Windows 7

****Please provide any additional information below.
4/feb/2014 16:24:44 [Thread-1] - java.lang.ClassCastException: Insertion of 
illegal Element: 12
org.odftoolkit.odfdom.converter.core.ODFConverterException: 
java.lang.ClassCastException: Insertion of illegal Element: 12
    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 it.infocamere.mama.gestori.GestoreAllegatoXdocReport.generaAllegatoPdfFromLetteraOdt(GestoreAllegatoXdocReport.java:325)
    at it.infocamere.mama.gestori.GestoreAllegatoXdocReport.generaInformativaPec(GestoreAllegatoXdocReport.java:118)
    at it.infocamere.mama.threadDispatcher.create.ThreadCreateAnteprimeDisr.run(ThreadCreateAnteprimeDisr.java:174)
Caused by: java.lang.ClassCastException: Insertion of illegal Element: 12
    at com.lowagie.text.Phrase.add(Unknown Source)
    at fr.opensagres.xdocreport.itext.extension.ExtendedParagraph.addElement(ExtendedParagraph.java:63)
    at org.odftoolkit.odfdom.converter.pdf.internal.ElementVisitorForIText.addITextContainer(ElementVisitorForIText.java:829)
    at org.odftoolkit.odfdom.converter.pdf.internal.ElementVisitorForIText.addITextContainer(ElementVisitorForIText.java:817)
    at org.odftoolkit.odfdom.converter.pdf.internal.ElementVisitorForIText.processParagraphOrHeading(ElementVisitorForIText.java:382)
    at org.odftoolkit.odfdom.converter.pdf.internal.ElementVisitorForIText.visit(ElementVisitorForIText.java:320)
    at org.odftoolkit.odfdom.dom.element.text.TextPElement.accept(TextPElement.java:1681)
    at org.odftoolkit.odfdom.converter.core.ElementVisitorConverter.visit(ElementVisitorConverter.java:82)
    at org.odftoolkit.odfdom.dom.DefaultElementVisitor.visit(DefaultElementVisitor.java:4653)
    at org.odftoolkit.odfdom.dom.element.text.TextNoteBodyElement.accept(TextNoteBodyElement.java:538)
    at org.odftoolkit.odfdom.converter.core.ElementVisitorConverter.visit(ElementVisitorConverter.java:82)
    at org.odftoolkit.odfdom.dom.DefaultElementVisitor.visit(DefaultElementVisitor.java:4645)
    at org.odftoolkit.odfdom.dom.element.text.TextNoteElement.accept(TextNoteElement.java:144)
    at org.odftoolkit.odfdom.converter.core.ElementVisitorConverter.visit(ElementVisitorConverter.java:82)
    at org.odftoolkit.odfdom.converter.pdf.internal.ElementVisitorForIText.addITextContainer(ElementVisitorForIText.java:826)
    at org.odftoolkit.odfdom.converter.pdf.internal.ElementVisitorForIText.addITextContainer(ElementVisitorForIText.java:817)
    at org.odftoolkit.odfdom.converter.pdf.internal.ElementVisitorForIText.processParagraphOrHeading(ElementVisitorForIText.java:382)
    at org.odftoolkit.odfdom.converter.pdf.internal.ElementVisitorForIText.visit(ElementVisitorForIText.java:320)
    at org.odftoolkit.odfdom.dom.element.text.TextPElement.accept(TextPElement.java:1681)
    at org.odftoolkit.odfdom.converter.core.ElementVisitorConverter.visit(ElementVisitorConverter.java:82)
    at org.odftoolkit.odfdom.dom.DefaultElementVisitor.visit(DefaultElementVisitor.java:2605)
    at org.odftoolkit.odfdom.converter.pdf.internal.ElementVisitorForIText.visit(ElementVisitorForIText.java:253)
    at org.odftoolkit.odfdom.dom.element.office.OfficeTextElement.accept(OfficeTextElement.java:805)
    at org.odftoolkit.odfdom.converter.pdf.PdfConverter.processBody(PdfConverter.java:126)
    at org.odftoolkit.odfdom.converter.pdf.PdfConverter.doConvert(PdfConverter.java:65)
    ... 5 more

Original issue reported on code.google.com by cesare.a...@gmail.com on 24 Feb 2014 at 3:51

Attachments:

GoogleCodeExporter commented 9 years ago
Thank's for attaching your odt. 

@Leszek : have you time to see this issue please?

Original comment by angelo.z...@gmail.com on 24 Feb 2014 at 4:14

GoogleCodeExporter commented 9 years ago
I have the same error, Im attaching my odt. Thanks for your help.

Original comment by carlos.o...@s2ctechnology.com on 2 Jul 2015 at 7:30

Attachments: