Copy link to clipboard
Copied
I cant get the font on PDF document and alignment eventhough I have margins to 0 still getting some space from the top and left side.
I have added fonts to CF Admin and restarted too still same issue. I am able to see fonts are added in CF Admin.
Copy link to clipboard
Copied
I suspect there is a little bit of padding between the HTML content and the edge of the PDF page. You could solve the problem by specifying the fonts and margins using the HTML style property, like this, for example:
<cfdocument format="PDF" pageType="A4" marginBottom="0" marginLeft="0" marginRight="0" marginTop="0">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style>
body{font-family:arial,sans-serif;font-size:100%;margin-top: 0px; margin-left: 0px; padding: 0;}
p{font-family:"Times New Roman", Times, serif;font-size:14px}
</style>
</head>
<body>
<!--- Content of your document --->
</body>
</cfdocument>