Re: [xep-support] Total number of pages

From: G. Ken Holman (gkholman@CraneSoftwrights.com)
Date: Fri Feb 06 2004 - 19:42:05 PST

  • Next message: Ken Brooks: "[xep-support] Preventing Type 1 fonts from subsetting"

    At 2004-02-06 18:00 -0500, Louis Meigret wrote:
    >How can I print the total number of pages of a series of page-sequences
    >where these page-sequences may each restart at page 1 ?

    XSL-FO 1.0 doesn't have any facilities to determine this. All related
    facilities are based on page number, not page count. Even typical "Page
    12/37" solutions are based on the page number of the last page, not the
    page count of the last page (consider that there may be front matter in
    advance of page 1 that would impact on the page count but not the last page
    number).

    What you need is access to the formatted information as an XML file that
    then gets fed back into your formatting process.

    I haven't yet looked at XEP's XML output generator, but it might have what
    you need to communicate the formatted information to the outside world.

    Another method is to use a two-pass process utilizing parallels to the
    back-of-the-book index methodology we have made available on our web
    site. In that methodology I "format" the angle brackets of an XML instance
    that records the formatted page information, extract the XML text from the
    resulting PDF file, and then reprocess that in a second step as a formatted
    index with page-range rationalization. The PDF extraction uses free
    tools. You could use this to record the page numbers of all the sequences,
    and then sum them on the second pass.

    I hope this helps.

    ..................... Ken

    --
    Public courses: upcoming world tour of hands-on XSL training events
    Each week:    Monday-Wednesday: XSLT/XPath; Thursday-Friday: XSL-FO
    Washington, DC: 2004-03-15            San Francisco, CA: 2004-03-22
    Hong Kong: 2004-05-17    Germany: 2004-05-24    England: 2004-06-07
    World-wide on-site corporate, government & user group XML training!
    G. Ken Holman                  mailto:gkholman@CraneSoftwrights.com
    Crane Softwrights Ltd.           http://www.CraneSoftwrights.com/f/
    Box 266, Kars, Ontario CANADA K0A-2E0     +1(613)489-0999 (F:-0995)
    Male Breast Cancer Awareness   http://www.CraneSoftwrights.com/f/bc
    -------------------
    (*) To unsubscribe, send a message with words 'unsubscribe xep-support'
    in the body of the message to majordomo@renderx.com from the address
    you are subscribed from.
    (*) By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/tos.html
    


    This archive was generated by hypermail 2.1.5 : Fri Feb 06 2004 - 19:50:00 PST