Template design - Set document to have an even number of pages

There are situations when you need to make sure your document will have an even or odd number of pages, depending on the specifications, for such restrictions XF Designer has the fo:force-page-count extension that does just that, the engine will create an extra blank page in the document to meet the requirement.

The following values are available:

  • auto
    • Forces the last page in this page-sequence to be an odd-page if the initial-page-number of the next page-sequence is even;
    • Forces the last page in this page-sequence to be an even-page if the initial-page-number of the next page-sequence is odd;
    • If there is no next page-sequence or if the value of its initial-page-number is "auto", the attribute does not force any page;
  •  even
    • Forces an even number of pages in this page-sequence;
  • odd
    • Forces an odd number of pages in this page-sequence;
  •  end-on even
    • Forces the last page in this page-sequence to be an even-page;
  •  end-on-odd
    • Forces the last page in this page-sequence to be an odd-page;
  •  no-force
    • Does not force either an even or an odd number of pages in this page-sequence;
  •  multiple-of(x)
    • The behaviour is similar to force-page-count="odd". The number of pages in the sequence will be a multiple of the "x" integer set as value;
  •  end-in-multiple-of(x)
    • The behaviour is similar to force-page-count="end-on-odd". Forces the last page in this page-sequence to be a multiple of the "x" integer set as value;

This functionality can be added in XF Designer from the Properties Pane:

  1. Open the Properties Pane:
    1. Go to the "View" tab;
    2. Select the "Show Properties" button;
                            

  2. Select the "page-sequence" element from the Navigation Bar, at the bottom of the Design View
                                           

  3. In the Properties Pane, go to the "Page Sequence" group and set the "Force Page Count" property to "end-on-even"
                              

 

Have more questions? Submit a request

Comments

Powered by Zendesk