Hi
I would LOVE to hear from anybody experimenting with the new
CFPDF tag in CF8, especially with writing pdfs using the ddx xml
files.
There is an attribute in the header and footer tags called
replaceExisting="true" which is supposed to allow you to overwrite
any existing headers/footers but I have had no luck getting this to
work.
Here is some code:
<?xml version="1.0" encoding="UTF-8" ?>
<DDX xmlns="
http://ns.adobe.com/DDX/1.0/"
xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="
http://ns.adobe.com/DDX/1.0/
coldfusion_ddx.xsd">
<PDF result="output1">
<PDF source="doc1">
<Header replaceExisting="true">
<Right>
<StyledText><p color="#333333" font="Arial"
font-size="9pt">Personal Report for customer name
here</p></StyledText>
</Right>
</Header>
<Footer replaceExisting="true">
<Left>
<StyledText>
<p color="#333333" font="Arial" font-size="7pt">Valid
only for customer name here until dd/mm/yyyy</p>
</StyledText>
</Left>
<Right>
<StyledText>
<p color="#333333" font="Arial" font-size="7pt">Page
<_PageNumber/> of <_LastPageNumber/></p>
</StyledText>
</Right>
</Footer>
</PDF>
</PDF>
</DDX>
This is almost identical to the code in one of the examples
in the CF8 docs (except for the replaceExisting attribute) and CF8
passes it using the isddx() function see:
http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=cfpdf_17.html
I found the reference to this attribute in the livecycle
docs:
http://livedocs.adobe.com/livecycle/es/sdkHelp/programmer/sdkHelp/ddxRefMain.163.35.html
(Footer)
http://livedocs.adobe.com/livecycle/es/sdkHelp/programmer/sdkHelp/ddxRefMain.163.36.html
(Header)
As an aside - Jeff Chastain also has a nice article about
CFPDF and ddx
http://www.adobe.com/devnet/coldfusion/articles/ddx_pdf.html
but it doesn't provide any clues about resolving this
attribute.
If ANYBODY has been able to get this to work (or not) PLEASE
respond.
Cheers
Martin