Stupid ColdFusion error message!!!
So, there I was sticking a wee <cfdocument> tag in my code when I got a strange error...
The document has no pages.
Eh? Said I. So I tried a simple example...
<cfdocument format="pdf">
Cows go Moo...
</cfdocument>
Cows go Moo...
</cfdocument>
Same error...
And then I had a thought ... could the watermark.png file be missing? (See this post)
And sure enough, that was the problem.
When the watermark.png file is missing from the Developer Edition you'll get an error. When the format is set to Flashpaper it tells you the watermark.png file is missing... awesome, it tells you exactly what's wrong.
When set to PDF however, it tells you that the document has no pages.
Stupid! Stupid! Stupid!
The number of obscure and misleading error messages in ColdFusion does my head in!!!



Damon
No complaints about the watermark in the developer edition ... the devs here all run that locally, and then we have fully licensed versions in staging and production. So we cough up the dosh :)
The post was really about the silly, and incorrect error message.
"5" on line 39 ....
while creating a new object.
5 is very helpful (CF8)