word-wrap support

1,388 views
Skip to first unread message

loesak

unread,
Aug 8, 2011, 10:44:22 AM8/8/11
to Flying Saucer Users
we're experiencing an issue where FS is not honoring the css word-wrap
property. this is causing issues in our generated pdf's. looking
around, i read in a few places that this css property is not yet
supported. Is this still true? If so, is there a known work around or
a fork that has already properly addressed this issue?

thank you,
Aaron

Peter Brant

unread,
Aug 9, 2011, 10:19:46 AM8/9/11
to flying-sa...@googlegroups.com
What version are you using? This is (some) support for word-wrap in git master.

Pete

loesak

unread,
Aug 10, 2011, 10:28:45 AM8/10/11
to Flying Saucer Users
We're using R8 with some modifications we submitted earlier.

We're specifically looking to use the css property { word-wrap: break
word; } in order to break long words w/o spaces in tables as not to
push out any table column width out beyond the printable range.

What support is available already and when was it added?

Peter Brant

unread,
Aug 10, 2011, 11:22:40 AM8/10/11
to flying-sa...@googlegroups.com

loesak

unread,
Aug 17, 2011, 3:46:08 PM8/17/11
to Flying Saucer Users
Thank you. That seems to do the trick quite nicely.

On Aug 10, 10:22 am, Peter Brant <peter.br...@gmail.com> wrote:
> Here is the commit
>
> https://github.com/flyingsaucerproject/flyingsaucer/commit/9b0c5cbffa...

vinaykumar BR

unread,
Sep 18, 2011, 1:39:28 PM9/18/11
to Flying Saucer Users
Hi Loesak

How did you applied this fix to resolve word wrap problem? I am also
facing couple of problems with word wrapping. Can I just take these 5
java files compile and add them into class path? Will that work?
Please advise!

Thanks

loesak

unread,
Sep 19, 2011, 12:13:16 PM9/19/11
to Flying Saucer Users
Vinay,

We build our jars from the source code. We replaced those files in the
source and recompiled. If you aren't able to do that, you can add
those files to your classpath with the same package signature and i
think they'll override the originals, but i'm not entirely sure.

Daniel Lopez

unread,
Sep 20, 2011, 2:15:38 PM9/20/11
to flying-sa...@googlegroups.com
I would not recommend having the same class repeated twice in the classpath. The results are unexpected and can change easily depending on container, OS, versions...

S!

2011/9/19 loesak <loe...@gmail.com>

vinaykumar BR

unread,
Sep 20, 2011, 5:42:05 PM9/20/11
to flying-sa...@googlegroups.com
Hi Daniel 

I agree Aaron was trying to help out.  Thanks for the info but please advise if there are any solutions if w e don't have a source code but need to apply the patches. 

Thanks
Vinay

Daniel López

unread,
Sep 22, 2011, 11:04:24 AM9/22/11
to flying-sa...@googlegroups.com
It would be better to simply replace the .class files you have modified inside the .jar file. It is a .zip file after all, so unpacking it, replacing the classes and repackaging is a fairly easy task. With some tools you can even replace the class files without even unpacking the .jar file.

S!
D.

2011/9/20 vinaykumar BR <vinaykum...@gmail.com>

Peter Brant

unread,
Nov 29, 2012, 6:32:06 PM11/29/12
to flying-sa...@googlegroups.com
What version are you using?

Pete


On Sun, Nov 25, 2012 at 8:25 PM, Vahan Arutunyan <vip...@gmail.com> wrote:
Can write example code.

My code
<div style="width: 100px; word-wrap: break-word; border: 1mm #000 solid;">bb bb bbbbbbbbbbbbbbbbbbbbbbbbbbbbb</div>
 don't working:

Result in attachment.


среда, 10 августа 2011 г., 19:22:40 UTC+4 пользователь Peter Brant написал:


Pinki s

unread,
Dec 23, 2014, 3:25:15 AM12/23/14
to flying-sa...@googlegroups.com
Hello
I wanted to confirm whether this commit (with changes for support wordwrap) is a part of the R 8-1 release
(https://github.com/flyingsaucerproject/flyingsaucer/releases/tag/flying-saucer-r8-1)

Thanks
Shruthi
Reply all
Reply to author
Forward
0 new messages