Copy link to clipboard
Copied
CFDocument does not render my fonts in the PDF
I tried the following things:
I use Coldfusion 9 on Linux
Here is the code, which i use to generate my PDF
<CFFILE action="write" file="mydocument.pdf" output="#content#" mode="777" />
<cfheader name="Content-Disposition" value="attachment; filename=mydocument.pdf">
<cfcontent type="application/pdf" variable="#content#" />
Copy link to clipboard
Copied
Why are you using cffile instead of cfdocument or cfpdf?
Copy link to clipboard
Copied
That's only a intermediate step to save my pdf on the server.
My Codeorder looks like this:
<CFDOCUMENT name="content" format="pdf" pageType="A4" localurl="yes" fontembed="no" marginbottom="0" margintop="1" unit="cm">
<!--- MY HTML --->
</CFDOCUMENT>
<CFFILE action="write" file="mydocument.pdf" output="#content#" mode="777" />
<cfheader name="Content-Disposition" value="attachment; filename=mydocument.pdf">
<cfcontent type="application/pdf" variable="#content#" />