I was testing out the PDF capability and am runnin...
# box-products
h
I was testing out the PDF capability and am running into an issue. The following code:
Copy code
function printable( event , rc, prc ) {
		event.renderData(data="<b>this is a test</b>", type="PDF");
	}
produces an error:
Attribute validation error for tag cfcontent.
1st line in stack trace is:
coldbox\system\core\conversion\DataMarshaller.cfc:147
If I remove the type="PDF" attribute, the page loads fine. Tried this from the example at: https://coldbox.ortusbooks.com/the-basics/event-handlers/rendering-data
j
I'm seeing the same thing. The other format types are working.
h
oh, I didn't try the other types as PDF was what I was really interested in 🙂 Was curious if this was a bug or I am missing enabling PDF capability in the Coldbox setup.
b
@hemi345 Can you enter a ticket for this? Also, you haven't said what version of ColdBox
h
Version 6.8.1+5 I can't find where I would submit a ticket for this on your website.