glook
02/02/2022, 1:55 PM<cfhtmltopdf name="myerecord">
<textarea name="test" id="test">TEXT</textarea>
</cfhtmltopdf>
<cfheader name="Content-Disposition" value="attachment;filename=testdocument.pdf">
<cfcontent type="application/pdf" variable="#myerecord#">
aliaspooryorik
glook
02/02/2022, 2:09 PMaliaspooryorik
glook
02/02/2022, 2:10 PMaliaspooryorik
<div class="textarea">My content</div>
and then a style of .textarea {border:1px solid black width: 50px; height: 50px;}
or something like that. Forms in PDFs are a different rabbit hole 🙂glook
02/02/2022, 2:14 PMaliaspooryorik
glook
02/02/2022, 2:24 PMglook
02/02/2022, 3:49 PMaliaspooryorik
Matt Jones
02/02/2022, 3:57 PMglook
02/02/2022, 4:26 PMMatt Jones
02/02/2022, 4:53 PMglook
02/02/2022, 4:54 PMDavid Buck
02/02/2022, 7:44 PM<cfpdfform>
and doing a "populate" action (with no data) seems to fix the problem:
<cfhtmltopdf name="myerecord">
<textarea name="test" id="test">TEXT</textarea>
</cfhtmltopdf>
<cfpdfform source="#myerecord#" action="populate" name="myerecord" />
<cfheader name="Content-Disposition" value="attachment;filename=testdocument.pdf">
<cfcontent type="application/pdf" variable="#toBinary(myerecord)#">
It might be possible to use <cfpdf>
in a similar fashion, though I haven't tested it.glook
02/02/2022, 7:48 PMglook
02/03/2022, 6:13 PMDavid Buck
02/03/2022, 6:21 PMDavid Buck
02/03/2022, 6:29 PM<cfpdf source="myerecord" name="myerecord" action="write" flatten="true">
glook
02/03/2022, 6:53 PMglook
02/03/2022, 6:54 PMDavid Buck
02/03/2022, 6:56 PMglook
02/03/2022, 7:58 PMglook
02/03/2022, 8:01 PMDavid Buck
02/03/2022, 8:02 PMDavid Buck
02/03/2022, 8:04 PMglook
02/03/2022, 8:04 PMDavid Buck
02/03/2022, 8:05 PMglook
02/03/2022, 9:33 PM