![]() |
DAL & Even/Odd pages |
Post Reply
|
| Author | |
mattucg
Newbie
Joined: 28 Sep 2010 Posts: 32 |
Post Options
Quote Reply
Topic: DAL & Even/Odd pagesPosted: 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 |
|
![]() |
|
gabig
Admin Group
Joined: 06 Aug 2008 Posts: 144 |
Post Options
Quote Reply
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 |
|
![]() |
|
mattucg
Newbie
Joined: 28 Sep 2010 Posts: 32 |
Post Options
Quote Reply
Posted: 25 Oct 2010 at 9:24am |
|
That did the trick, thanks. |
|
![]() |
|
Post Reply
|
| 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 |