xsl-list
[Top] [All Lists]

[xsl] fo:simple-page-master related

2010-07-28 09:39:28
  Hi ,
 (Sorry if the Subject of my  mail is disleading ...)
 i'am using Apache fop 0.95 to generate my pdf report, i got a pdf that look 
like:

  

    --------------------------------------------------
  |                HEADER                             |
  |                                                   |
   --------------------------------------------------   
  | PARAGRAPH INTRODUCING                             |
  |                                                   |
   --------------------------------------------------
  | aLONNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN | 
  |                                                   |
  |                                                   |
  |                                                   |
  |                                                   | 
  |                                                   |
  |                                                   | 
  |                                                   |
  |                                                   |
  | tEXT                                              |
  |                                                   |
   --------------------------------------------------
   
   the problem is that the "long text" can  break the page
   so in the next page i'm gonna have page that look like
   
   
    --------------------------------------------------
  | rest of the longggggggggggggggggggggggggggggggggg | 
  |                                                   |
  |                                                   |
  |                                                   |
  |                                                   | 
  |                                                   |
  |                                                   | 
  |                                                   |
  |                                                   |
  | tEXT                                              |
  |                                                   |
   --------------------------------------------------
   
   and so on that's the default behavior
   
   here is my  simple-page-master
   
<fo:simple-page-master  master-name="cover" page-height="27.94cm" 
page-width="21.59cm" margin-top="1cm" margin-bottom="1cm" margin-left="1.9cm" 
margin-right="1.9cm">
 <fo:region-body     margin-top="2.3cm" margin-bottom="1.2cm"  />
 <fo:region-before   extent="2.2cm"  />
 <fo:region-after    extent="1.1cm"  />
</fo:simple-page-master>        
        

        Now i'm looking in a kind of different behavior that the default one, i 
want to the rest of the page (except the first one) ,  rather be displayed like 
that:
        
   --------------------------------------------------
  |                HEADER                             |
  |                                                   |
   --------------------------------------------------   
  | rest of the longggggggggggggggggggggggggggggggggg | 
  |                                                   |
  |                                                   |
  |                                                   |
  |                                                   | 
  |                                                   |
  |                                                   | 
  |                                                   |
  |                                                   |
  | tEXT                                              |
  |                                                   |
   --------------------------------------------------


  now i can not do this using fo:simple-page-master  , because my  
  master-name="cover" sometime got onepage when the text is short  and some 
other could  have 5 page , how to do this plz ?


and thanks


      


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>
  • [xsl] fo:simple-page-master related, Red Light <=