Not that it helps - but I can confirm it. Since you can't build interactive forms with cfdocument anyway, why not just replace type="file" with type="text" before you cfdocument it?
On Fri, Aug 2, 2013 at 2:42 PM, Britton Powers <bpower...@yahoo.com> wrote: > > We have an app that allows users to create a PDF of pages in the > application. It uses cfdocument for this functionality. > > Today a user reported they couldn't PDF one of the pages. We get this > error: > coldfusion.document.spi.DocumentExportException: > java.lang.NullPointerException. > > Other page PDF's are working fine in this application, so I removed > various sections from the non-PDF-able page to see what specific part of > the page might be causing the issue. The page contains an html form, and it > turned out that if I removed one of the form controls -- a form input of > type "file" (a file upload control) -- then the PDF is created successfully. > > I then made a small test page with just an html form and one input field, > and get the same error. If the field is an input type "file" then > cfdocument won't make the PDF. Any other type of form input control seems > fine. > > We're not trying to create interactive pdf forms or anything, just a PDF > image of a web page that happens to have a form with some controls. > > This is on CF 9.0.1 on Windows Server 2008. > > Has anyone seen a workaround or have any ideas? I tried setting the mime > type and a few other things but nothing worked. > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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:356366 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm