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

trouble embedding fonts in <cfdocument>

New Here ,
Feb 04, 2008 Feb 04, 2008

Copy link to clipboard

Copied

I'm using &lt;cfdocument&gt; tag to create PDFs on a shared server.

I need to embed the fonts because my visitors don't seem to have standard fonts on their computers.

Only problem is that I do not have permission to the font folder on this shared server. C:\windows\fonts\

Is there a way for me to put the fonts in my root folder and then point or map to them.

I also do not have access to the cold fusion administrator on this server.

I'm running MX7.

Thx

Mike
TOPICS
Advanced techniques

Views

434

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
New Here ,
Feb 05, 2008 Feb 05, 2008

Copy link to clipboard

Copied

cfdocument uses an attribute of 'fontembed'



Hope this helps!

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
New Here ,
Feb 06, 2008 Feb 06, 2008

Copy link to clipboard

Copied

When I use the font embed attribute I throw an error because I don't have permissions to use the fonts installed at c:\windows\fonts\

That is why I need a way to install fonts where I do have permission and then point to them some way.

Windows seems to only look in c:\windows\fonts\ for fonts.

Any idea how to tell windows to look elsewhere for fonts?

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
Valorous Hero ,
Feb 07, 2008 Feb 07, 2008

Copy link to clipboard

Copied

LATEST
I do not think there is a way to do this if you do not have permission to either c:\windows\fonts or CF's runtime\jre\lib\fonts folder.

It is possible using iText directly. It is what cfdocument uses behind the scenes. While not difficult, creating pdfs with iText is not as simple as using cfdocument.

http://itextdocs.lowagie.com/tutorial/fonts/index.php

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