coldfusioncfpdfddx

Don't include header on first page (CFPDF + DDX)


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.


Solution

  • (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>