You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Jesse <sc...@schaafnet.com> on 2013/03/15 04:25:15 UTC

wrapping

I am using FOP XSLT 1.0. I am using it to create a PDF. I have a table , 
row, cell and inside the cell I have something like this :
<fo:block>
<fo:inline> text text text </fo:inline> <fo:inline font-weight="bold"> 
extended text </fo:inline>
</fo:block>

My intent is to write out the first section of text followed by extended 
text in bold font. This works fine but the second the extended text is 
written out starts on thenext 
<http://www.linkedin.com/groupItem#>line(i.e like a carriage return). I 
need this text to continue on the same line until it reaches the end of 
the cell and then wrap. I was expecting this to happen with the sample 
above but unfortunately is drops to the next line every time. From there 
it wraps appropriately. Any ideas??



RE: wrapping

Posted by Robert Meyer <rm...@hotmail.co.uk>.
Hi Jesse,

I have tried to reproduce the issue with Fop 1.0, but it seems to place it on the same line for me. Are you sure there is enough space left in the cell to write the "extended" portion of the text given the other content in the other columns / cells? I have attached the example I used with the output pdf. It uses a table with an inline tag for the extended text. My example differs slightly to yours as it only uses an inline for the portion of the text to be bolded. It shouldn't make any difference to the output document, but it just reduces the amount of tags in the FO.

Could you provide a short example (XSL + XML or FO) to show us the issue you are having so that we can reproduce it ourselves. Once we are able to do that, we can then provide some suggestions on how to resolve the problem you are having.

Regards,

Robert Meyer
Date: Thu, 14 Mar 2013 22:25:15 -0500
From: schajx@schaafnet.com
To: fop-users@xmlgraphics.apache.org
Subject: wrapping


  

    
  
  
    
      
        I am using FOP XSLT 1.0. I am using it to create a
          PDF. I have a table , row, cell and inside the cell I have
          something like this : 

          <fo:block>

          <fo:inline> text text text </fo:inline>
          <fo:inline font-weight="bold"> extended text
          </fo:inline>

          </fo:block>

          

          My intent is to write out the first section of text followed
          by extended text in bold font. This works fine but the second
          the extended text is written out starts on the next line(i.e like a
          carriage return). I need this text to continue on the same
          line until it reaches the end of the cell and then wrap. I was
          expecting this to happen with the sample above but
          unfortunately is drops to the next line every time. From there
          it wraps appropriately. Any ideas??