0

I'm using DDX to add headers, footers, and pagination to PDF documents. If possible I would like the header for the first page of each file to be blank, but then to have headers for the remaining pages.

I've looked through the documentation and can't find a way to do this. It seems like a commonly used feature so I'm guessing there must be some way to implement it.

Jordan Reiter
  • 20,467
  • 11
  • 95
  • 161
  • The closest I see is the [`alternation` attribute](http://livedocs.adobe.com/livecycle/8.2/ddxRef/001070.html), which does not quite do what you need. If all else fails, what about applying the header to pages `2-N` then merging it back with page `1`? A hack to be sure, but might do the trick. (Edit) Also, have you tried using [``](http://help.adobe.com/en_US/ColdFusion/9.0/CFMLRef/WSc3ff6d0ea77859461172e0811cbec22c24-7995.html)? I *think* it supports a page number range. – Leigh Aug 14 '13 at 16:04
  • How would I apply the header to only specific pages? Are you talking about splitting up the PDF and then merging it again? – Jordan Reiter Aug 14 '13 at 16:31
  • 1
    (Edit) Yep. If it does not support page ranges for headers (which seems to be the case), you need a split + merge work-around. You might be able to achieve the same affect by using multiple `` tags: one for the first page and another for pages `2-N`, with a nested header tag ie `...` – Leigh Aug 14 '13 at 16:42
  • @Leigh, using multiple `` is the answer; so please go ahead and post it as an answer instead of a comment so I can give you credit. – Jordan Reiter Aug 14 '13 at 17:33

1 Answers1

2

(From the comments)

You might be able to achieve this effect by using multiple <PDF> tags: one for the first page and another for pages 2-N, with a nested <Header> tag.

ie :

 <PDF pages="1" src="c:/path/someFile.pdf">
 ...
 </PDF>
 <PDF pages="2-last" src="c:/path/someFile.pdf">
    <Header...>
 </PDF>
Leigh
  • 28,765
  • 10
  • 55
  • 103