IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

XSL/XSLT/XPATH XML Discussion :

[XSL~FO][FOP] page blanche en fin de document


Sujet :

XSL/XSLT/XPATH XML

Vue hybride

Message précédent Message précédent   Message suivant Message suivant
  1. #1
    Membre averti
    Profil pro
    Inscrit en
    Août 2006
    Messages
    26
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Août 2006
    Messages : 26
    Par défaut [XSL~FO][FOP] page blanche en fin de document
    Bonjour,

    Je souhaiterais supprimer une page blanche qui sort en fin de document.

    Apres plusieurs recherches/tests, vous pourrez remarquez que j'ai testé le parametre force-page-count="no-force" mais sans resultat. L'ai je mal compris/utilisé ?

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    189
    190
    191
    192
    193
    194
    195
    196
    197
    198
    199
    200
    201
    202
    203
    204
    205
    206
    207
    208
    209
    210
    211
    212
    213
    214
    215
    216
    217
    218
    219
    220
    221
    222
    223
     
    <?xml version="1.0" encoding="iso-8859-15"?>
    <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
    	<fo:layout-master-set>
    		<fo:simple-page-master page-width="21.0cm" margin-bottom="1cm" master-name="default-master" margin-left="1.2cm" margin-top="2cm" margin-right="0.7cm" page-height="29.7cm">
    			<fo:region-body margin-bottom="0cm" column-count="1" margin-top="0cm"/>
    			<fo:region-before extent="0cm" border-after-style="solid"/>
    			<fo:region-after extent="0cm" border-before-style="solid"/>
    		</fo:simple-page-master>
    	</fo:layout-master-set>
    	<fo:page-sequence master-reference="default-master" force-page-count="no-force">
    		<fo:flow flow-name="xsl-region-body">
    			<fo:block font-size="10px">
    				<fo:table space-after.optimum="0pt" border-collapse="separate" table-layout="fixed" border="solid black 1pt">
    					<fo:table-column column-width="8cm"/>
    					<fo:table-column column-width="11cm"/>
    					<fo:table-body font-size="10pt" font-family="sans-serif">
    						<fo:table-row line-height="30pt">
    							<fo:table-cell>
    								<fo:block>TEXTE</fo:block>
    							</fo:table-cell>
    							<fo:table-cell>
    								<fo:block>TEXTE</fo:block>
    							</fo:table-cell>
    						</fo:table-row>
    						<fo:table-row line-height="30pt">
    							<fo:table-cell>
    								<fo:block>TEXTE</fo:block>
    							</fo:table-cell>
    							<fo:table-cell>
    								<fo:block>TEXTE</fo:block>
    							</fo:table-cell>
    						</fo:table-row>
    						<fo:table-row line-height="30pt">
    							<fo:table-cell>
    								<fo:block>TEXTE</fo:block>
    							</fo:table-cell>
    							<fo:table-cell>
    								<fo:block>TEXTE</fo:block>
    							</fo:table-cell>
    						</fo:table-row>
    						<fo:table-row line-height="30pt">
    							<fo:table-cell>
    								<fo:block>TEXTE</fo:block>
    							</fo:table-cell>
    							<fo:table-cell>
    								<fo:block>TEXTE</fo:block>
    							</fo:table-cell>
    						</fo:table-row>
    						<fo:table-row line-height="30pt">
    							<fo:table-cell>
    								<fo:block>TEXTE</fo:block>
    							</fo:table-cell>
    							<fo:table-cell>
    								<fo:block>TEXTE</fo:block>
    							</fo:table-cell>
    						</fo:table-row>
    						<fo:table-row line-height="30pt">
    							<fo:table-cell>
    								<fo:block>TEXTE</fo:block>
    							</fo:table-cell>
    							<fo:table-cell>
    								<fo:block>TEXTE</fo:block>
    							</fo:table-cell>
    						</fo:table-row>
    						<fo:table-row line-height="30pt">
    							<fo:table-cell>
    								<fo:block>TEXTE</fo:block>
    							</fo:table-cell>
    							<fo:table-cell>
    								<fo:block>TEXTE</fo:block>
    							</fo:table-cell>
    						</fo:table-row>
    						<fo:table-row line-height="30pt">
    							<fo:table-cell>
    								<fo:block>TEXTE</fo:block>
    							</fo:table-cell>
    							<fo:table-cell>
    								<fo:block>TEXTE</fo:block>
    							</fo:table-cell>
    						</fo:table-row>
    						<fo:table-row line-height="30pt">
    							<fo:table-cell>
    								<fo:block>TEXTE</fo:block>
    							</fo:table-cell>
    							<fo:table-cell>
    								<fo:block>TEXTE</fo:block>
    							</fo:table-cell>
    						</fo:table-row>
    						<fo:table-row line-height="30pt">
    							<fo:table-cell>
    								<fo:block>TEXTE</fo:block>
    							</fo:table-cell>
    							<fo:table-cell>
    								<fo:block>TEXTE</fo:block>
    							</fo:table-cell>
    						</fo:table-row>
    						<fo:table-row line-height="30pt">
    							<fo:table-cell>
    								<fo:block>TEXTE</fo:block>
    							</fo:table-cell>
    							<fo:table-cell>
    								<fo:block>TEXTE</fo:block>
    							</fo:table-cell>
    						</fo:table-row>
    						<fo:table-row line-height="30pt">
    							<fo:table-cell>
    								<fo:block>TEXTE</fo:block>
    							</fo:table-cell>
    							<fo:table-cell>
    								<fo:block>TEXTE</fo:block>
    							</fo:table-cell>
    						</fo:table-row>
    						<fo:table-row line-height="30pt">
    							<fo:table-cell>
    								<fo:block>TEXTE</fo:block>
    							</fo:table-cell>
    							<fo:table-cell>
    								<fo:block>TEXTE</fo:block>
    							</fo:table-cell>
    						</fo:table-row>
    						<fo:table-row line-height="30pt">
    							<fo:table-cell>
    								<fo:block>TEXTE</fo:block>
    							</fo:table-cell>
    							<fo:table-cell>
    								<fo:block>TEXTE</fo:block>
    							</fo:table-cell>
    						</fo:table-row>
    						<fo:table-row line-height="30pt">
    							<fo:table-cell>
    								<fo:block>TEXTE</fo:block>
    							</fo:table-cell>
    							<fo:table-cell>
    								<fo:block>TEXTE</fo:block>
    							</fo:table-cell>
    						</fo:table-row>
    						<fo:table-row line-height="30pt">
    							<fo:table-cell>
    								<fo:block>TEXTE</fo:block>
    							</fo:table-cell>
    							<fo:table-cell>
    								<fo:block>TEXTE</fo:block>
    							</fo:table-cell>
    						</fo:table-row>
    						<fo:table-row line-height="30pt">
    							<fo:table-cell>
    								<fo:block>TEXTE</fo:block>
    							</fo:table-cell>
    							<fo:table-cell>
    								<fo:block>TEXTE</fo:block>
    							</fo:table-cell>
    						</fo:table-row>
    						<fo:table-row line-height="30pt">
    							<fo:table-cell>
    								<fo:block>TEXTE</fo:block>
    							</fo:table-cell>
    							<fo:table-cell>
    								<fo:block>TEXTE</fo:block>
    							</fo:table-cell>
    						</fo:table-row>
    						<fo:table-row line-height="30pt">
    							<fo:table-cell>
    								<fo:block>TEXTE</fo:block>
    							</fo:table-cell>
    							<fo:table-cell>
    								<fo:block>TEXTE</fo:block>
    							</fo:table-cell>
    						</fo:table-row>
    						<fo:table-row line-height="30pt">
    							<fo:table-cell>
    								<fo:block>TEXTE</fo:block>
    							</fo:table-cell>
    							<fo:table-cell>
    								<fo:block>TEXTE</fo:block>
    							</fo:table-cell>
    						</fo:table-row>
    						<fo:table-row line-height="30pt">
    							<fo:table-cell>
    								<fo:block>TEXTE</fo:block>
    							</fo:table-cell>
    							<fo:table-cell>
    								<fo:block>TEXTE</fo:block>
    							</fo:table-cell>
    						</fo:table-row>
    						<fo:table-row line-height="30pt">
    							<fo:table-cell>
    								<fo:block>TEXTE</fo:block>
    							</fo:table-cell>
    							<fo:table-cell>
    								<fo:block>TEXTE</fo:block>
    							</fo:table-cell>
    						</fo:table-row>
    						<fo:table-row line-height="30pt">
    							<fo:table-cell>
    								<fo:block>TEXTE</fo:block>
    							</fo:table-cell>
    							<fo:table-cell>
    								<fo:block>TEXTE</fo:block>
    							</fo:table-cell>
    						</fo:table-row>
    						<fo:table-row line-height="35pt">
    							<fo:table-cell>
    								<fo:block>TEXTE</fo:block>
    							</fo:table-cell>
    							<fo:table-cell>
    								<fo:block>TEXTE</fo:block>
    							</fo:table-cell>
    						</fo:table-row>
    						<fo:table-row line-height="35pt">
    							<fo:table-cell>
    								<fo:block border="solid black 1pt">TEXTE</fo:block>
    							</fo:table-cell>
    							<fo:table-cell>
    								<fo:block>TEXTE</fo:block>
    							</fo:table-cell>
    						</fo:table-row>
    					</fo:table-body>
    				</fo:table>
    			</fo:block>
    		</fo:flow>
    	</fo:page-sequence>
    </fo:root>

  2. #2
    Membre émérite
    Inscrit en
    Octobre 2005
    Messages
    847
    Détails du profil
    Informations forums :
    Inscription : Octobre 2005
    Messages : 847
    Par défaut
    quel versio fop?

    peux tu envoyer le pdf?

  3. #3
    Membre averti
    Profil pro
    Inscrit en
    Août 2006
    Messages
    26
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Août 2006
    Messages : 26
    Par défaut
    Bonjour,

    Ma version de FOP est la 20.5.

    Voici le lien sur un fichier résultat toto18554.pdf

  4. #4
    Membre émérite
    Inscrit en
    Octobre 2005
    Messages
    847
    Détails du profil
    Informations forums :
    Inscription : Octobre 2005
    Messages : 847
    Par défaut
    en fait c'est tt simplement à cause de ton texte qui prend toute l première page et deborde un peu sur la deuxième page.

    si par exemple tu supprime quelque contenus, tu verra que la page 2 disparattra.

    ou par exemple, remplacer ta dernière ligne par celle-ci

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    						<fo:table-row line-height="5pt">
    							<fo:table-cell>
    								<fo:block border="solid black 1pt">TEXTE</fo:block>
    							</fo:table-cell>
    							<fo:table-cell>
    								<fo:block>TEXTE</fo:block>
    							</fo:table-cell>
    						</fo:table-row>

  5. #5
    Membre averti
    Profil pro
    Inscrit en
    Août 2006
    Messages
    26
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Août 2006
    Messages : 26
    Par défaut
    Oui, j'ai pensé a ca, c'est pour cela que j'ai encadré les données afin d'essayer d'identifier ce qui passait sur la seconde page.

    Mais la seconde page est vide.

    Le fichier etant généré, je ne peux pas "jouer" sur les données.

    N'y a t'il pas de solution pour supprimer cette page independamment des données ?

  6. #6
    Membre émérite
    Inscrit en
    Octobre 2005
    Messages
    847
    Détails du profil
    Informations forums :
    Inscription : Octobre 2005
    Messages : 847
    Par défaut
    je vois que tu n'a pas d'espace pour les footer/header ce qui n'est pas une bonne chose..je te propose de leur reserver un minimum d'espce...ce qui également va resoudre ton problème :

    remplace la partie concerné par cel-ci :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    		<fo:simple-page-master page-width="21.0cm" margin-bottom="1cm" master-name="default-master" margin-left="1.2cm" margin-top="2cm" margin-right="0.7cm" page-height="29.7cm">
    			<fo:region-body margin-bottom="1cm" column-count="1" margin-top="1cm"/>
    			<fo:region-before extent="1cm" border-after-style="solid"/>
    			<fo:region-after extent="1cm" border-before-style="solid"/>
    		</fo:simple-page-master>

Discussions similaires

  1. [VS 2003] page blanche à la fin de l'etat
    Par TopSpeed dans le forum SDK
    Réponses: 2
    Dernier message: 23/01/2018, 15h46
  2. Réponses: 19
    Dernier message: 17/11/2010, 16h31
  3. [2.2.0] PDF avec une page blanche à la fin
    Par hornex dans le forum BIRT
    Réponses: 3
    Dernier message: 26/11/2009, 16h16
  4. [CR XI] Page blanche en fin de rapport
    Par mathieu44800 dans le forum SAP Crystal Reports
    Réponses: 5
    Dernier message: 21/07/2008, 09h56
  5. [MySQL] Affichage par page page : pages blanches à la fin
    Par carelha dans le forum PHP & Base de données
    Réponses: 2
    Dernier message: 11/04/2006, 13h27

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo