LiveCycle Designer: Render a trailing page in a form for duplex printing

When you use duplex printing (that is, printing on both sides of the paper), you can print a separate blank trailing page. To print a trailing page, the last page must always have an odd page number (that is, page 1, 3, 5, 7, and so on). When the last page is odd, it prints on a new sheet of paper separate from the rest of the form.

Render a trailing page in LiveCycle Designer 7.x

LiveCycle Designer 7.1 includes a script for rendering a trailing page.

To make sure that the last page has an odd page number, do the following:

  1. insert a blank hidden body page in the form just before the page you want to use as a trailing page.
  2. insert the following script in the layout:ready event of the form to show/hide the blank page at run-time:
var pageCount = xfa.layout.pageCount();

if(pageCount%2 == 0) {
    //even, show the blank page to shift the trailing page down to an odd page number
} else {
    //odd, hide the blank page as the trailing page is already on an odd page number

Note: The layout event ensures that the trailing page always falls on an odd number, even if the end user alters the form contents. Such alterations cause the layout:ready event to run and adjust the page numbers accordingly.

Rendering a trailing page in LiveCycle Designer ES

LiveCycle Designer ES includes functionality in the Master Pages to handle duplex printing.

  1. Add Master Pages for odd/even numbers, for the last page, and for the blank page.
  2. Using the Printing option in the Master Pages page set, set up the form for duplex printing.
  3. For the odd/even Master Pages, choose the appropriate option in the Master Page >Pagination tab under Odd/Even.
  4. For the last page, choose the Last Page option in the Master Page > Pagination tab under Placement.
  5. For the blank page, choose the Blank Pages option in the Master Page > Pagination tab under Odd/Even.
  6. For the body page that occurs just before the trailing page, choose Go To Even Page in the After settings under the Pagination tab.

Sample files

Here are some sample file showing the solutions as outlined above for Designer 7.1 and ES.  I have included some test data files also to test the solutions with different page numbers.  You can import the data files into the XDP templates using Designer to test the solutions.


reference: (181512630)

VN:F [1.9.22_1171]
Was this helpful? Please rate the content.
Rating: 0.0/10 (0 votes cast)

Comments are closed.