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?

Comments

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

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options

News Feed

Recent comments

That's great, thank you.
Sorry I didn't go through and update all my old...
Is RbMan2 still available anywhere? The link...
Slicehost is very stable and professional and the...
I enjoyed reading your article, and the followup...