java.io.IOException: The document has no pages. at com.lowagie.text.pdf.PdfPages.... watermark.png
Just FYI for anyone that gets this error when trying to create PDF using cfdocument. The watermark.png file is missing from your C:\JRun4\servers\SERVERNAME\cfusion.ear\cfusion.war\WEB-INF\cfusion\lib directory.
I just re-imaged my workstation and got this strange error when trying to create a PDF using cfdocument. I've never seen this error before, so I googled it without too much success. There was some talk on a java forum about this error with reference to embedding images in PDF's. *BING* - the lights went on.
About a year ago or more, I remember having trouble generating PDF's and SWF charts because the watermark file was missing in the JRun server instance I was working on. At the time, it threw an exception telling that the watermark was missing, unlike this new error. When you create a new JRun server instance from the CFusion instance manager, for some bizare reason it doesn't copy the watermark.png file over to your new instance.I also remember some talk about it at the time that it was a known bug that MM where aware of. Does anyone know if Adobe is aware of this? Also, why wasn't it fixed in the latest update?
- Jason's blog
- 888 reads


Comments
Yeah, I reported it back in September.
http://www.creative-restraint.co.uk/blog/index.cfm/2006/9/21/Stupid-Cold...
Consider yourself bookmarked - this has irritated me for a while.
Why couldn't they just say your watermark.jpg file is missing? Thanks for posting this! Paul...
i am having the same issue, i did check and all of my instaces have the
watermark file.
Post new comment