Ecrion Software Inc. Homepage
Forum Home Forum Home > XF Rendering Server > Generic Support
  New Posts New Posts RSS Feed: DAL & Even/Odd pages
  FAQ FAQ  Forum Search   Register Register  Login Login

DAL & Even/Odd pages

 Post Reply Post Reply
Author
Message / View First Unread Post
mattucg View Drop Down
Newbie
Newbie
Avatar

Joined: 28 Sep 2010
Posts: 32
Post Options Post Options   Quote mattucg Quote  Post ReplyReply Direct Link To This Post Topic: DAL & Even/Odd pages
    Posted: 22 Oct 2010 at 12:12pm
I have noticed that DAL jobs only seem to recognize odd/even pages in the context of a single operation.
 
My problem is that when merging two files which require different overlays, the first file may have an odd number of pages. This causes the second section to begin on an even numbered page, but it will be page #1 in the contenxt of that operation, which causes it to be considered an 'odd' page, when it should really be even.
 
Is it possible to have the correct overlay to be applied based on even/odd pages in this situation? Here is my simple DAL job:
 
<xfj:job xmlns:xfj="http://www.ecrion.com/xfj/1.0">
    <xfj:output mime-type="application/pdf"/>
    <xfj:overlay id="Header" z-index="1">
        <xfj:apply-rules>
            <xfj:match rule="odd(section1)" />
        </xfj:apply-rules>
        <xfj:external-content src="url(C:\Dev\Ecrion\UltrascaleTest\UltrascaleTest\Section1-Odd.fo)" />
    </xfj:overlay>
    <xfj:overlay id="Header" z-index="1">
        <xfj:apply-rules>
            <xfj:match rule="even(section1)" />
        </xfj:apply-rules>
        <xfj:external-content src="url(C:\Dev\Ecrion\UltrascaleTest\UltrascaleTest\Section1-Even.fo)" />
    </xfj:overlay>
    <xfj:overlay id="Header" z-index="1">
        <xfj:apply-rules>
            <xfj:match rule="odd(section2)" />
        </xfj:apply-rules>
        <xfj:external-content src="url(C:\Dev\Ecrion\UltrascaleTest\UltrascaleTest\Section2-Odd.fo)" />
    </xfj:overlay>
    <xfj:overlay id="Header" z-index="1">
        <xfj:apply-rules>
            <xfj:match rule="even(section2)" />
        </xfj:apply-rules>
        <xfj:external-content src="url(C:\Dev\Ecrion\UltrascaleTest\UltrascaleTest\Section2-Even.fo)" />
    </xfj:overlay>
    <xfj:document id="section1" title="Current Superannuation">
        <xfj:external-content src="C:\Dev\Ecrion\section1.pdf"/>
    </xfj:document>
    <xfj:document id="section2" title="Current Superannuation">
        <xfj:external-content src="C:\Dev\Ecrion\section2.pdf"/>
    </xfj:document>
</xfj:job>


Edited by mattucg - 22 Oct 2010 at 12:14pm
Back to Top
gabig View Drop Down
Admin Group
Admin Group


Joined: 06 Aug 2008
Posts: 144
Post Options Post Options   Quote gabig Quote  Post ReplyReply Direct Link To This Post Posted: 25 Oct 2010 at 6:33am
That is the intended behavior. If you want to match odd pages from a certain document, it's assumed that you wish to refer to that particular document, so that sets the context.

There is a way to achieve the effect you're looking for though. Instead of matching:

odd(section1)

match the following (in this order)

exclude(section2)
odd

That is, first exclude the other documents, then match odd pages in the DAL. That will set the context to the full document.

There is one more thing. You could address a custom development request to support for a rule like allexcept(document_id), so you could in the future use:

exclude(allexcept(section1))
odd

instead of:

exclude(section2)
exclude(section3)
...
exclude(sectionN)
odd

Regards,
Gabi
Back to Top
mattucg View Drop Down
Newbie
Newbie
Avatar

Joined: 28 Sep 2010
Posts: 32
Post Options Post Options   Quote mattucg Quote  Post ReplyReply Direct Link To This Post Posted: 25 Oct 2010 at 9:24am

That did the trick, thanks.

Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Bulletin Board Software by Web Wiz Forums® version 9.69
Copyright ©2001-2010 Web Wiz

This page was generated in 0.078 seconds.