Embed font to PDF

Knowledge exchange related to the VPE Report Engine and PDF Library

Moderator: IDEAL Software Support

Embed font to PDF

Postby MHjerpe » Tue Feb 22, 2005 12:26 pm

Vpe 3.50

We have made an own custom font that we want to embed with the generated pdf file.. so we set
hVpe:SetFontControl("hj_big","hj_big",TRUE,FALSE).

The font don't have any Copyright stuff set.

before WriteDoc..
Then when we open the doc in Reader we get:
"Cannot extract the embedded font 'hj_big'. Some chars bla bla".

Have tried different options EmbedAll and such but then I get Cannot Extract Arial MT bla bla...

I can see the fonts when I read the doc on my machine wich have the font installed.. but when copied to another machine.. the font we mad our self is substituted with a default font.

Any Ideas ?
MHjerpe
 
Posts: 9
Joined: Wed Feb 09, 2005 11:03 am
Location: Sweden

Postby MHjerpe » Tue Feb 22, 2005 1:07 pm

If I make a wordpad document with the custom font in and make a PDF (print to pdf) with adobe acrobat it embeds the font.. and I can view the document and the font on the other machine.
MHjerpe
 
Posts: 9
Joined: Wed Feb 09, 2005 11:03 am
Location: Sweden

Postby MHjerpe » Tue Feb 22, 2005 2:09 pm

As always a reboot of the machine cured it..
Vpe seems to chache fonts, and don't see new installed fonts right away..
MHjerpe
 
Posts: 9
Joined: Wed Feb 09, 2005 11:03 am
Location: Sweden

Postby IDEAL Software Support » Tue Feb 22, 2005 6:26 pm

A reboot is not necessary. Simply shut down your application and restart it.

The font cache of VPE marks a font as "not present", if you try to use a True-Type font before it is installed. Regarding Postscript fonts, they need to be present before your application is started.

Regards
Thorsten Radde
IDEAL Software GmbH
IDEAL Software Support
 
Posts: 1633
Joined: Thu Nov 18, 2004 4:03 pm

Postby MHjerpe » Thu Mar 03, 2005 9:15 am

I shut down the processes that uses VPE.dll and restarts them.. still they don't se my new installed font.. :(
MHjerpe
 
Posts: 9
Joined: Wed Feb 09, 2005 11:03 am
Location: Sweden

Postby IDEAL Software Support » Thu Mar 03, 2005 12:50 pm

This can happen on servers, for example IIS, because IIS might hold the VPE DLL in memory. Simple test: shut down all your processes and try to rename the VPE DLL. If this is not possible, VPE is still running and the font cache is not updated.

Regards
Thorsten Radde
IDEAL Software GmbH
IDEAL Software Support
 
Posts: 1633
Joined: Thu Nov 18, 2004 4:03 pm


Return to VPE Open Forum

Who is online

Users browsing this forum: No registered users and 11 guests

cron