Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

cant get the font on PDF document and alignment

Participant ,
Jan 27, 2014 Jan 27, 2014

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.

TOPICS
Advanced techniques
555
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 02, 2014 Feb 02, 2014
LATEST

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>

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources