I'm using cfdocument to create a pdf document. I'm using a variable string that
contains HTML code and <cfdocumentitem type="pagebreak"></cfdocumentitem> for
page breaks.
If I output the variable in the pdf document (like below) it ignores the page
break commands, even though they are correct in the var string.
<cfdocument format="PDF" filename="my.pdf" overwrite="yes">
<cfoutput>#myContent#<cfoutput>
</cfdocument>
If I save the variable string to a text file then use the text file as in
include (like below), it works.
<cfdocument format="PDF" filename="my.pdf" overwrite="yes">
<cfinclude template="myContent.txt">
</cfdocument>
Seems like <cfdocumentitem type="pagebreak"></cfdocumentitem> should work when
it's in a var string (all the HTML works fine), but it's not. So why is the
page break ignored when it's in an output string but work when it's text. The
string and the text are identical. I'd really like to skip the step of writing
a text file first.
Any hints?
Thanks,
Robert Harrison
Director of Interactive Services
Austin & Williams
Advertising I Branding I Digital I Direct
125 Kennedy Drive, Suite 100 I Hauppauge, NY 11788
T 631.231.6600 X 119 F 631.434.7022
http://www.austin-williams.com
Blog: http://www.austin-williams.com/blog
Twitter: http://www.twitter.com/austin_
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive:
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:354617
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm