karurkarthi / xdocreport

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

odt-> pdf converter throws StackOverFlow when there is float image #161

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hi Leszek,

I have added new JUnit with chinese characters. When I have converted with 
LibreOffice the docx chinese document to odt, it add float image which causes 
the problem. See the Junit 
http://code.google.com/p/xdocreport/source/browse/thirdparties-extension/org.odf
toolkit.odfdom.converter.pdf/src/test/java/org/odftoolkit/odfdom/converter/pdf/P
dfConvertChineseTestCase.java

1) The TestChineseCharacters test case works. It uses the odt that I have 
converted with LibreOffice to odt and I have removed at hand the float image.

1) The TestChineseCharactersWithFloatImage test case crashes (uncomment the 
@Test. It uses the odt that I have converted with LibreOffice to odt and which 
has float image.

Regards Angelo

Original issue reported on code.google.com by angelo.z...@gmail.com on 9 Oct 2012 at 9:20

GoogleCodeExporter commented 9 years ago
I've fixed the problem. Again setSplitLate(false) helped.
The test does not fail. Image however is not properly aligned to page but to 
text.
iText lays out all the document elements sequentially on the page in one layer. 
Floating images should be processed separately. Don't know if it's possible to 
fix it at all, it is iText limitation.

Original comment by abe...@gmail.com on 15 Oct 2012 at 12:13