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 Léa Massiot <lm...@orange.fr> on 2012/06/04 13:46:13 UTC
First page (distinct) and next following page - contents flowing on
every page including first
Hello and thank you for reading my post.
I am dynamically generating PDF documents from:
- a variable XML data file
- and a "static" XSL-FO stylesheet.
As a result, the PDF document may comprise a first page F and several
following pages N_1, N_2, ...
A text "Text1" has to appear at the top of page F only.
Another text "Text2" has to appear at the top of every following page N_i (i
= 1, 2, ...).
The contents "Contents1 Contents2 ..." of the pages F, N_1, N_2, ... flow
from one page to the next page including the first one F.
Below is a schematic view of the result I want to get:
Page F:
+-----------------------+
| |
| Text1 |
| |
| Contents1 Contents2 |
| Contents3 Contents4 |
| Contents5 Contents6 |
| Contents7 Contents8 |
| Contents9 Contents10 |
| Contents11 Contents12 |
| Contents13 Contents14 |
| |
+-----------------------+
Page N_1:
+-----------------------+
| |
| Text2 |
| |
| Contents15 Contents16 |
| Contents17 Contents18 |
| Contents19 Contents20 |
| Contents21 Contents22 |
| Contents23 Contents24 |
| Contents25 Contents26 |
| Contents27 Contents28 |
| |
+-----------------------+
Page N_2:
+-----------------------+
| |
| Text2 |
| |
| Contents29 Contents30 |
| Contents31 Contents32 |
| Contents33 Contents34 |
| Contents35 Contents36 |
| Contents37 Contents38 |
| Contents39 Contents40 |
| Contents41 Contents42 |
| |
+-----------------------+
Etc.
Can you give me some starting indications how to achieve this result?
Thank you and best regards.
--
View this message in context: http://old.nabble.com/First-page-%28distinct%29-and-next-following-page---contents-flowing-on-every-page-including-first-tp33957356p33957356.html
Sent from the FOP - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
RE: First page (distinct) and next following page - contents
flowing on every page including first
Posted by Léa Massiot <lm...@orange.fr>.
Hello Robert,
Thanks a lot for your answer and the (really useful) code you posted along
with the PDF resulting document.
That's exactly what I needed!
Best regards.
--
View this message in context: http://old.nabble.com/First-page-%28distinct%29-and-next-following-page---contents-flowing-on-every-page-including-first-tp33957356p33963622.html
Sent from the FOP - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
RE: First page (distinct) and next following page - contents
flowing on every page including first
Posted by Robert Meyer <rm...@hotmail.co.uk>.
I am not sure if you have got anywhere with it yet, but as promised I have just put together a quick example which is attached to this e-mail.
Regards,
Robert Meyer
From: rmeyer@hotmail.co.uk
To: fop-users@xmlgraphics.apache.org
Subject: RE: First page (distinct) and next following page - contents flowing on every page including first
Date: Mon, 4 Jun 2012 13:18:06 +0000
Hello,
I am on my phone at the moment so this message will be just a description of what you need to do. If someone hasn't helped you further by the time I get home I will attach some examples.
You will need two page definitions which you can call something like First any Other. For each of those pages you can define a region-before which points to static regions which define Text1 and Text2 respectively.
You will need to define a page sequence with a single-page-sequence-master pointing to First and the repeatable pointing to the Other reference.
Finally, to have a multi-column page with the content, you can specify a column-count property in the region-body in each page definition.
If you're not understanding of what I said or how to do it. If no-one else has stepped in, I'll post an example with XSLT when I get back in a couple of hours.
Regards,
Robert Meyer
> Date: Mon, 4 Jun 2012 04:46:13 -0700
> From: lmhelp1@orange.fr
> To: fop-users@xmlgraphics.apache.org
> Subject: First page (distinct) and next following page - contents flowing on every page including first
>
>
> Hello and thank you for reading my post.
>
> I am dynamically generating PDF documents from:
> - a variable XML data file
> - and a "static" XSL-FO stylesheet.
>
> As a result, the PDF document may comprise a first page F and several
> following pages N_1, N_2, ...
>
> A text "Text1" has to appear at the top of page F only.
> Another text "Text2" has to appear at the top of every following page N_i (i
> = 1, 2, ...).
>
> The contents "Contents1 Contents2 ..." of the pages F, N_1, N_2, ... flow
> from one page to the next page including the first one F.
>
> Below is a schematic view of the result I want to get:
>
> Page F:
> +-----------------------+
> | |
> | Text1 |
> | |
> | Contents1 Contents2 |
> | Contents3 Contents4 |
> | Contents5 Contents6 |
> | Contents7 Contents8 |
> | Contents9 Contents10 |
> | Contents11 Contents12 |
> | Contents13 Contents14 |
> | |
> +-----------------------+
>
> Page N_1:
> +-----------------------+
> | |
> | Text2 |
> | |
> | Contents15 Contents16 |
> | Contents17 Contents18 |
> | Contents19 Contents20 |
> | Contents21 Contents22 |
> | Contents23 Contents24 |
> | Contents25 Contents26 |
> | Contents27 Contents28 |
> | |
> +-----------------------+
>
> Page N_2:
> +-----------------------+
> | |
> | Text2 |
> | |
> | Contents29 Contents30 |
> | Contents31 Contents32 |
> | Contents33 Contents34 |
> | Contents35 Contents36 |
> | Contents37 Contents38 |
> | Contents39 Contents40 |
> | Contents41 Contents42 |
> | |
> +-----------------------+
>
> Etc.
>
> Can you give me some starting indications how to achieve this result?
>
> Thank you and best regards.
> --
> View this message in context: http://old.nabble.com/First-page-%28distinct%29-and-next-following-page---contents-flowing-on-every-page-including-first-tp33957356p33957356.html
> Sent from the FOP - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>
RE: First page (distinct) and next following page - contents
flowing on every page including first
Posted by Robert Meyer <rm...@hotmail.co.uk>.
Hello,
I am on my phone at the moment so this message will be just a description of what you need to do. If someone hasn't helped you further by the time I get home I will attach some examples.
You will need two page definitions which you can call something like First any Other. For each of those pages you can define a region-before which points to static regions which define Text1 and Text2 respectively.
You will need to define a page sequence with a single-page-sequence-master pointing to First and the repeatable pointing to the Other reference.
Finally, to have a multi-column page with the content, you can specify a column-count property in the region-body in each page definition.
If you're not understanding of what I said or how to do it. If no-one else has stepped in, I'll post an example with XSLT when I get back in a couple of hours.
Regards,
Robert Meyer
> Date: Mon, 4 Jun 2012 04:46:13 -0700
> From: lmhelp1@orange.fr
> To: fop-users@xmlgraphics.apache.org
> Subject: First page (distinct) and next following page - contents flowing on every page including first
>
>
> Hello and thank you for reading my post.
>
> I am dynamically generating PDF documents from:
> - a variable XML data file
> - and a "static" XSL-FO stylesheet.
>
> As a result, the PDF document may comprise a first page F and several
> following pages N_1, N_2, ...
>
> A text "Text1" has to appear at the top of page F only.
> Another text "Text2" has to appear at the top of every following page N_i (i
> = 1, 2, ...).
>
> The contents "Contents1 Contents2 ..." of the pages F, N_1, N_2, ... flow
> from one page to the next page including the first one F.
>
> Below is a schematic view of the result I want to get:
>
> Page F:
> +-----------------------+
> | |
> | Text1 |
> | |
> | Contents1 Contents2 |
> | Contents3 Contents4 |
> | Contents5 Contents6 |
> | Contents7 Contents8 |
> | Contents9 Contents10 |
> | Contents11 Contents12 |
> | Contents13 Contents14 |
> | |
> +-----------------------+
>
> Page N_1:
> +-----------------------+
> | |
> | Text2 |
> | |
> | Contents15 Contents16 |
> | Contents17 Contents18 |
> | Contents19 Contents20 |
> | Contents21 Contents22 |
> | Contents23 Contents24 |
> | Contents25 Contents26 |
> | Contents27 Contents28 |
> | |
> +-----------------------+
>
> Page N_2:
> +-----------------------+
> | |
> | Text2 |
> | |
> | Contents29 Contents30 |
> | Contents31 Contents32 |
> | Contents33 Contents34 |
> | Contents35 Contents36 |
> | Contents37 Contents38 |
> | Contents39 Contents40 |
> | Contents41 Contents42 |
> | |
> +-----------------------+
>
> Etc.
>
> Can you give me some starting indications how to achieve this result?
>
> Thank you and best regards.
> --
> View this message in context: http://old.nabble.com/First-page-%28distinct%29-and-next-following-page---contents-flowing-on-every-page-including-first-tp33957356p33957356.html
> Sent from the FOP - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>