I would LOVE to hear from anybody experimenting with the new
CFPDF tag in CF8, especially with writing pdfs using the ddx xml
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
Here is some code:
<?xml version="1.0" encoding="UTF-8" ?>
<StyledText><p color="#333333" font="Arial"
font-size="9pt">Personal Report for customer name
<p color="#333333" font="Arial" font-size="7pt">Valid
only for customer name here until dd/mm/yyyy</p>
<p color="#333333" font="Arial" font-size="7pt">Page
<_PageNumber/> of <_LastPageNumber/></p>
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:
OK - I have done some further testing and I could be wrong
For pdf's that I create with ColdFusion that have a Header
and Footer, the replaceExisting="true" WORKS!!
I have tried to convert most of the pdf's I have been given
for testing to text (XML) which doesn't show headers and footers
BUT it does show the text I was trying to replace which suggests to
me that the original pdfs didn't have headers and footers, just a
very thin margin.
There are some pdf's that have been created by free on-line
pdf generators AND livecyle doesn't seem to like these at all. If I
try and convert those to text I get an error: "failed: FlateDecode
I will leave this topic OPEN for now in case anyone else can
provide some input.