Skip to main content
Participant
October 13, 2010
Question

Cfdocument bug?

  • October 13, 2010
  • 3 replies
  • 1201 views

I am using a CFHTTP to call a page to use the content to create a PDF using cfdocument in CF9.

If the document has two break tags prior to a close td tag (maybe other scenarios, did not test) then you receive the following error:

An error: ERROR encountered loading TEMPLATEPATH: java.io.IOException: Parsing problem occured during the rendering process of this document.

If you put a space between the break tags, it still errors.  If you put a non-breaking space between the break tags, it will render properly.

This scenario worked when using Coldfusion 7, not sure about CF 8, never tried it.

Maybe someone else could try it and see what they get.

<html>
<head>
<title>test page</title>
</head>
<body>
<table>
<tr><td><br><br></td></tr>
</table>
</body>
</html>

Message was edited by: jingojango

    This topic has been closed for replies.

    3 replies

    Participant
    April 3, 2012

    Still a bug in CF9 and closing the BR tag didn't help.  Adding the non-breaking space was an effective work around for the problem though.

    February 9, 2012

    Hi there,

    Can't say for sure but one possibility is that the parsing requires strict XHTML and the BR tags are not self closing. You could try doing a replace on any BR tags to replace with a BR/ tag ?

    Cheers

    Andy

    Participant
    January 19, 2012

    I had the same problem using CF8 today when using CFDOCUMENT to create PDF output.

    Took me a while to find out what was causing the problem!