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

creating pdf pages from CF - how to control the font

Participant ,
Oct 21, 2006 Oct 21, 2006

Copy link to clipboard

Copied

hi there - i have this..

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" " http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>pdf test page</title>
<style type="text/css">
<!--
.style3 {font-family: "tahoma"}
-->
</style>
</head>

<body>

<cfdocument format="pdf" pagetype="a4" orientation="portrait" unit="cm" margintop="2" marginleft="1.5" marginright="1.5" >
<span class="style3">
hello this text should be in tahoma, not times new roman!
</span>
</cfdocument>
</body>
</html>


which creates a pdf as desired - however the font is times new roman - not tahoma. i've tried with several different fonts and it is as if this only works with times. i have checked in cf admin "font management" in case it's something to do with that - but is says tahoma is installed and available for pdfs.

any suggestions would be gratefully received - thank you very much
TOPICS
Advanced techniques

Views

225

Translate

Translate

Report

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
LEGEND ,
Oct 21, 2006 Oct 21, 2006

Copy link to clipboard

Copied

put all of your HTML in the cfdocument tag, not just your span
hth
--
Tim Carley
www.recfusion.com
info@NOSPAMINGrecfusion.com

Votes

Translate

Translate

Report

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
Participant ,
Oct 21, 2006 Oct 21, 2006

Copy link to clipboard

Copied

LATEST
thanks Tim - that solved it. really appreciate your help

Votes

Translate

Translate

Report

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
Documentation