![]() |
Page Numbering |
Post Reply
|
Page 12> |
| Author | |
mattucg
Newbie
Joined: 28 Sep 2010 Posts: 32 |
Post Options
Quote Reply
Topic: Page NumberingPosted: 19 Jun 2012 at 3:38pm |
|
Files sent. Thanks.
|
|
![]() |
|
justinw
Admin Group
Joined: 08 Dec 2011 Posts: 157 |
Post Options
Quote Reply
Posted: 19 Jun 2012 at 1:20pm |
|
Hi mattucg,
Let's have you send your documents to support@ecrion.com for a closer look. Please detail specifically your needs in your email and provide all relevant input documents (XML, XFD, XFC, images, DAL input docs, FO overlays, etc...). Ecrion Technical Support
|
|
![]() |
|
mattucg
Newbie
Joined: 28 Sep 2010 Posts: 32 |
Post Options
Quote Reply
Posted: 19 Jun 2012 at 12:31pm |
|
I'm already getting B11-B20. There is no problem having one continuous numbering scheme. What I need is for the numbering to reset when applying overlays to certain documents.
Setting initial-page-number="1" on the page-sequence-master element or the page-sequence element of an overlay file does not seem to work. The numbering continues where the previous section left off. |
|
![]() |
|
justinw
Admin Group
Joined: 08 Dec 2011 Posts: 157 |
Post Options
Quote Reply
Posted: 19 Jun 2012 at 10:47am |
|
Hi mattucg,
This can be done by using the attribute "initial-page-number" for the fo:page-sequence element. Here are the steps for your B11-B20 needs. 1. Set initial-page-number="11" 2. A the end of your document add an id on an identifying block (could be without content). Here I've added id="endofdoc". <fo:block id="endofdoc" break-before="page">This is sample text...</fo:block> 3. Add the attribute ref-id="YourIdentifierHere" to fo:page-number-citation as below: <fo:block text-align="right">B<fo:page-number format="1"/> of B<fo:page-number-citation format="1" ref-id="endofdoc"/></fo:block> 4. Your output should show the B11-B... as you need. Here is my entire fo:page-sequence code: <fo:page-sequence master-reference="Letter Page" initial-page-number="11"> <fo:static-content flow-name="xsl-region-after"> <fo:block> </fo:block> </fo:static-content><fo:static-content flow-name="xsl-region-before"> <fo:block text-align="right">B<fo:page-number format="1"/> of B<fo:page-number-citation format="1" ref-id="endofdoc"/></fo:block> </fo:static-content><fo:static-content flow-name="xsl-region-end"> <fo:block> </fo:block> </fo:static-content><fo:static-content flow-name="xsl-region-start"> <fo:block> </fo:block> </fo:static-content><fo:flow flow-name="xsl-region-body"> <fo:block>this is sample text.  </fo:block> <fo:block> </fo:block> <fo:block id="endofdoc" break-before="page">This is sample text...</fo:block> </fo:flow> </fo:page-sequence> |
|
![]() |
|
mattucg
Newbie
Joined: 28 Sep 2010 Posts: 32 |
Post Options
Quote Reply
Posted: 19 Jun 2012 at 10:17am |
|
I don't think this method will work.
I have two separate overlays, the first ten-page document uses Page A<fo:page-number format="1"/> the second ten-page document Page B<fo:page-number format="2"/> The sections using the first overlay are numbered A1-A10 The sections using the second overlay are numbered B11-B20 What I am looking to have is the first section numbered A1-A10 and the second section numbered B1-B10. Is that possible? |
|
![]() |
|
justinw
Admin Group
Joined: 08 Dec 2011 Posts: 157 |
Post Options
Quote Reply
Posted: 18 Jun 2012 at 1:28pm |
|
Hi Mattucg,
You can use format="" as an attribute on fo:page-number. For example: <fo:page-number format="A"/> For your needs, an option would be something like this in, let's say, your footer: <fo:block> <fo:inline> Page A<fo:page-number format="1"/> </fo:inline> </fo:block> This would produce Page A1 (or A2, A3, etc...). Was this helpful?
|
|
![]() |
|
mattucg
Newbie
Joined: 28 Sep 2010 Posts: 32 |
Post Options
Quote Reply
Posted: 18 Jun 2012 at 12:55pm |
|
How does the overlay define which schema to use?
My markup just has a plain <fo:page-number/> element in the footer. Is there an attribute on that element that marks it at part of one scheme or another? |
|
![]() |
|
justinw
Admin Group
Joined: 08 Dec 2011 Posts: 157 |
Post Options
Quote Reply
Posted: 18 Jun 2012 at 12:46pm |
|
Hello mattucg,
You can use two separate FO's with different numbering schemes as overlays in your DAL job. To control the application of such overlays, you may use the xfj:match (child of xfj:apply-rules) element to control the application of your overlays dependent upon your needs. You can read more about this at the following link: A sample would look like the following: <xfj:apply-rules> <xfj:match rule="all"/> <xfj:match rule="exclude(document1)"/> <xfj:match rule="exclude(first)"/> </xfj:apply-rules> |
|
![]() |
|
mattucg
Newbie
Joined: 28 Sep 2010 Posts: 32 |
Post Options
Quote Reply
Posted: 15 Jun 2012 at 10:25am |
|
This seems to be an example contained within a single XFD template. Would it be possible when combining documents with a DAL file?
For example: If I have four 10-page PDF files which will be combined into a single 40-page document, is it possible to have the first two documents share one paging scheme (e.g A1 - A20) and last two documents share a second paging scheme (e.g. B1-B20)? Edited by mattucg - 15 Jun 2012 at 10:27am |
|
![]() |
|
radup
Admin Group
Adminstrator Joined: 19 May 2008 Posts: 83 |
Post Options
Quote Reply
Posted: 02 Sep 2011 at 8:52am |
|
Yes, you can have two numbering schemes but you cannot count backwards.
Having two schemes can be done using to page sequences, one for introduction sections and the other one for content. It looks something like this:
|
|
|
I'm happy when my mind is free and my senses are occupied.
|
|
![]() |
|
Post Reply
|
Page 12> |
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |