Word-wrap not working in PDF.

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Word-wrap not working in PDF.

pgieldon
Greetings!
I am facing stylesheet formatting problem.
I am using Orbeon Forms 3.8.  which is connected to my JEE project.
I worked on text formatting issue which was text going out of the span area. I
solved it by adding max-width and word-wrap: break-work to my style on the site
where orbeon form is presented, but if I convert form instance into PDF, word
wrapping doesn't work anymore. Is there exist some workaround to gain expected
output?

Best regards,
Piotr.


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Word-wrap not working in PDF.

Erik Bruchez
Administrator
Piotr,

So this is with the automatic PDF output I guess?

That output is produced with an XHTML to PDF library, which uses CSS
for layout as well:

http://flyingsaucerproject.github.com/flyingsaucer/r8/guide/users-guide-R8.html

You can see some CSS rules at the bottom of this CSS file that address
PDF output with @media print:

https://github.com/orbeon/orbeon-forms/blob/master/src/resources/apps/fr/style/form-runner-orbeon.css

Your issue might be solvable with some CSS. Debugging the PDF output
is often trial and error.

-Erik

On Fri, Mar 30, 2012 at 5:51 AM,  <[hidden email]> wrote:

> Greetings!
> I am facing stylesheet formatting problem.
> I am using Orbeon Forms 3.8.  which is connected to my JEE project.
> I worked on text formatting issue which was text going out of the span area. I
> solved it by adding max-width and word-wrap: break-work to my style on the site
> where orbeon form is presented, but if I convert form instance into PDF, word
> wrapping doesn't work anymore. Is there exist some workaround to gain expected
> output?
>
> Best regards,
> Piotr.
>
>
> --
> You receive this message as a subscriber of the [hidden email] mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws
>


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Word-wrap not working in PDF.

Erik Bruchez
Administrator
As a follow-up on this, Piotr got this to work using a more recent
version of the Flying Saucer library:

https://github.com/flyingsaucerproject/flyingsaucer

I created an issue for this:

https://github.com/orbeon/orbeon-forms/issues/121

-Erik

On Mon, Apr 2, 2012 at 9:46 PM, Erik Bruchez <[hidden email]> wrote:

> Piotr,
>
> So this is with the automatic PDF output I guess?
>
> That output is produced with an XHTML to PDF library, which uses CSS
> for layout as well:
>
> http://flyingsaucerproject.github.com/flyingsaucer/r8/guide/users-guide-R8.html
>
> You can see some CSS rules at the bottom of this CSS file that address
> PDF output with @media print:
>
> https://github.com/orbeon/orbeon-forms/blob/master/src/resources/apps/fr/style/form-runner-orbeon.css
>
> Your issue might be solvable with some CSS. Debugging the PDF output
> is often trial and error.
>
> -Erik
>
> On Fri, Mar 30, 2012 at 5:51 AM,  <[hidden email]> wrote:
>> Greetings!
>> I am facing stylesheet formatting problem.
>> I am using Orbeon Forms 3.8.  which is connected to my JEE project.
>> I worked on text formatting issue which was text going out of the span area. I
>> solved it by adding max-width and word-wrap: break-work to my style on the site
>> where orbeon form is presented, but if I convert form instance into PDF, word
>> wrapping doesn't work anymore. Is there exist some workaround to gain expected
>> output?
>>
>> Best regards,
>> Piotr.
>>
>>
>> --
>> You receive this message as a subscriber of the [hidden email] mailing list.
>> To unsubscribe: mailto:[hidden email]
>> For general help: mailto:[hidden email]?subject=help
>> OW2 mailing lists service home page: http://www.ow2.org/wws
>>


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws