-
1. Re: Exclude some pages from numbering in DDX
sharoon23 Jun 20, 2013 2:22 AM (in response to kkaarrtthhiicc)Hi Karthik,
Yes, you can achieve it by using page labels. Below is ddx you can use for it.
<?xml version='1.0' encoding='UTF-8' ?>
<DDX xmlns='http://ns.adobe.com/DDX/1.0/'>
<PDF result='out.pdf'>
<Footer replaceExisting='true'>
<Right>
<StyledText font-size='8pt' font-family='Helvetica'>
<p>Page <_PageLabel/> of <_LastPageLabel/>
</p>
</StyledText>
</Right>
</Footer>
<Watermark rotation='45' scale='100%' opacity='10%' fitToPage='true'>
<StyledText font-size='56pt' font-family='Helvetica'>
<p>
<b>DRAFT</b>
</p>
</StyledText>
</Watermark>
<PageMargins left='0.5in' top='0.5in' right='0.5in' bottom='0.2in' alternation='None' />
<PDF source='doc1' bookmarkTitle='chap0'>
<PageLabel mode="Define" start="1" format="Decimal" />
</PDF>
<PDF source='doc2' bookmarkTitle='chap1' >
<NoFooters />
</PDF>
<PDF source='doc3' >
<PageLabel mode="Define" start="9" format="Decimal" />
</PDF>
<NoXFA/>
</PDF>
</DDX>
This DDX takes three source doc1, doc2, doc3. doc1 refers to pages in the begining of the document. doc2 refers to those pages on which you dont want to display footer. doc3 refers to remaining pages. You should assemble these 3 document separately using simple assemnbly ddx and then use the resultant files as sources to this DDX.
Also, you must set the start value of the PageLabel tag for doc3 to be 1 greater than the number of pages in doc1. This you easily do querying the properties of doc1 in a separate process and then using the number of pages from that.
Let me know if you need any help in doing this.
Regards,
Sufyan
-
2. Re: Exclude some pages from numbering in DDX
kkaarrtthhiicc Jun 24, 2013 11:20 AM (in response to sharoon23)Thanks a lot Sharoon. i'm now able to achieve this.
Can you please let me know how I can query to get the number of pages in each doc?


