Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
1740 connectés 

  FORUM HardWare.fr
  Programmation
  XML/XSL

  XML XSL-FO

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

XML XSL-FO

n°1150741
madkane
Posté le 15-07-2005 à 16:19:32  profilanswer
 

Bonjour,
je réalise actuellement un pdf avec XML et XSL-FO.
J' ai une partie haut du document , une partie central et une partie basse.
La partie centrale peut grandir en taille et donc m'oblige à faire un saut de page.
Cependant je veux que la partie basse du document reste sur la première page.
Si quelqu'un à une idée même en XSL je suis preneur.
 
Merci

mood
Publicité
Posté le 15-07-2005 à 16:19:32  profilanswer
 

n°1169652
bdegeratu
Posté le 04-08-2005 à 09:31:19  profilanswer
 

Hello,
Your problem is very simple. In XSL-fo you have the so cold region area.
You can define a region-after in your page master definition then place a static content in it(like the number of the page).
 
 
Here is an exemple:
 
<fo:simple-page-master  master-name="rest"    page-height="29.7cm"  
page-width="21.0cm"  
margin-top="0.5cm"  
margin-bottom="0.5cm"  
margin-left="0.5cm"  
margin-right="0.5cm">
        <fo:region-body margin-top="4cm" margin-bottom="1cm" background-color="#CCCFF1"/>
<fo:region-before extent="3.5cm" region-name="before-rest" background-color="#CCFFF2" />
<fo:region-after extent="0.5cm" region-name="after-rest" background-color="#CCCFF1"/>
</fo:simple-page-master>
 
So this is your page definition . Now if you want to place some static content in the region-after you do like this:
 
 
<fo:static-content flow-name="after-rest">
  <fo:block>Some static content </fo:block>
</fo:static-content>
 
This is a basic example. You have a lot of examples on the web.


Message édité par bdegeratu le 04-08-2005 à 09:32:13
n°1170622
madkane
Posté le 05-08-2005 à 13:20:41  profilanswer
 

Think you for your help!
I 'm going to try. My problem was, i haven't define the "region after" in my defintion of my page.
:-)


Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Programmation
  XML/XSL

  XML XSL-FO

 

Sujets relatifs
Bcp et XMLXML parcour d'un fichier XML sous Windev
[XML]Parser un String contenant du XML[XML/XSL] Passage en parametre? "test.xml?param=toto"
[XML]-[XSL] tableauXML DTD avec Firefox
txt ou csv en XMLRécupérer dynamiquement le schéma associé à un fichier XML
Plus de sujets relatifs à : XML XSL-FO


Copyright © 1997-2022 Hardware.fr SARL (Signaler un contenu illicite / Données personnelles) / Groupe LDLC / Shop HFR