Wrapped texts when export to ODP [message #1015639] |
Fri, 01 March 2013 08:58  |
Eclipse User |
|
|
|
Hi all,
I would like to export my report to a presentation. Since the MS Office 2010 is not supported with PPT emitter,
I'm trying to export to ODP.
But I have problems with text components. The ODP emitter somehow computes text width smaller it should be,
so almost all texts (bigger than 7pt) are wrapped.

One can adjust the text's width with handles in the opened presentation. Adding minimal amount (something like 1 px) is sufficient
and the text gets inline. It's really annoying.
Do you have any idea how to fix that?
Edit:
Looking at OdpPage class, there is this comment
protected void drawText( String text, float textX, float textY, float baseline,
float width, float height, TextStyle textStyle ) {
// width of text is enlarged by 1 point because the text will be
// automatically wrapped if the width of textbox equals to the width of
// text exactly.
...
I don't know what that means, but it exactly happens to me, the text is wrapped.
[Updated on: Fri, 01 March 2013 09:07] by Moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 20.16142 seconds