Members: 16,996
Threads: 38,846
Posts: 159,391
Online: 21

Newest Member: Kl_broka@rediffmail.com


Odoo.tv - Outdoor Television


Sedo - Domains kaufen und verkaufen das Projekt mambers.com steht zum Verkauf Besucherstatistiken von mambers.com etracker® Web-Controlling statt Logfile-Analyse

Go Back   Mambers.com > Archive > Mambo 4.5 > Mambo 4.5 'How Do I' Questions

 
 
LinkBack Thread Tools Display Modes
Old 15.05.2004, 22:07   #1 (permalink)
Baby Mamber
 
breakdesign's Avatar
 
Join Date: May 2004
Location: Cape Town, South Africa
Posts: 16
breakdesign is on a distinguished road
RedCross PDF cannot find font - using Helvetica instead

Hi all!

I'm having a problem getting PDF's generated using the standard Mambo 4.5 PDF generator.

I get the error :
could not find a font in the Resources dictionary - using Helvetica instead.

It then exports a PDF document with all text on the same line.

What I think must be happening is that the /media/php_helvetica.afm and /media/helvetica.afm files are not being found. Thus the PDF generator doesn't have any metrics for the fonts, and renders incorrectly.

I have found references to a /font folder in the class.pdf.php - but haven't really wanted to change anything, since I guess this is something that should work without too much hassle?

Oh, this worked fine on my dev server (windows xp / apache2) - but got the error once i moved over to linux / apache1.3 - i guess it uses your installed fonts on the system with win xp.

I also have the /media directory as CHMOD 776 - if that is of any help?

Your thoughts on this will be appreciated! I know it must be something really simple, but just cant seem to get it working!

Have a cool weekend!

Stefan
__________________
http://www.breakdesign.com
web, broadband, tv & mobile multimedia systems & applications, online web and mobile communities, flash games & more.
breakdesign is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Old 16.05.2004, 07:58   #2 (permalink)
mmx
Expert Mamber
 
Join Date: Apr 2004
Location: Virginia Beach, Virginia USA
Posts: 309
mmx is on a distinguished road
Send a message via MSN to mmx
Default Re: PDF cannot find font - using Helvetica instead

Try placing them in the media/ folder. There is at least one afm file installed there already.
mmx is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 17.05.2004, 03:44   #3 (permalink)
Baby Mamber
 
breakdesign's Avatar
 
Join Date: May 2004
Location: Cape Town, South Africa
Posts: 16
breakdesign is on a distinguished road
RedCross Re: PDF cannot find font - using Helvetica instead

Hi MMX

I have the AFM files already in /media and CHMOD the directory to 776

I also once tried saving them in a /fonts folder, but no luck.

Any other suggestions?

Thanks!
Stefan
__________________
http://www.breakdesign.com
web, broadband, tv & mobile multimedia systems & applications, online web and mobile communities, flash games & more.
breakdesign is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 17.05.2004, 04:38   #4 (permalink)
mmx
Expert Mamber
 
Join Date: Apr 2004
Location: Virginia Beach, Virginia USA
Posts: 309
mmx is on a distinguished road
Send a message via MSN to mmx
Default Re: PDF cannot find font - using Helvetica instead

I know it's possible to install fonts locally because they do it on TYPO3, but they may only be supporting TrueType fonts (not sure about this). Later versions of GD1 and all versions of GD2 have FreeType support, so the latter is probably the case. It might be possible to specify a path via php.ini to handle it but I have never looked at this. GDlib 1 and 2 are php extensions.

Strangely, mambo does support ezPDF because its included and that library does support Type 1 fonts. However, no Type 1 files are installed as is the usual case with PDF implemented as they have done.

I wouldn't mind researching this further for curiosity reasons but am a bit overloaded for the next few days. I'll try to look into this later in the week.
mmx is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 18.05.2004, 12:16   #5 (permalink)
Baby Mamber
 
breakdesign's Avatar
 
Join Date: May 2004
Location: Cape Town, South Africa
Posts: 16
breakdesign is on a distinguished road
RedCross Re: PDF cannot find font - using Helvetica instead

Hi MMX

Thanks for the info - I'll see what I can get done on the server - I don't have direct access to it - it's on a shared server somewhere in Germany, but will have a look!

Look forward to hearing back from you in the future! For now I will try and install an updated PDF generator, that's what other users have done that encountered the same problem.

Cool, thanks again

Stefan
__________________
http://www.breakdesign.com
web, broadband, tv & mobile multimedia systems & applications, online web and mobile communities, flash games & more.
breakdesign is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 18.05.2004, 14:23   #6 (permalink)
mmx
Expert Mamber
 
Join Date: Apr 2004
Location: Virginia Beach, Virginia USA
Posts: 309
mmx is on a distinguished road
Send a message via MSN to mmx
Default Re: PDF cannot find font - using Helvetica instead

Another gem that I just became aware of is that GD needs to be compiled into PHP with the GD/T1lib library. Otherwise, it will not support Type 1 fonts.
mmx is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 18.05.2004, 14:26   #7 (permalink)
Baby Mamber
 
breakdesign's Avatar
 
Join Date: May 2004
Location: Cape Town, South Africa
Posts: 16
breakdesign is on a distinguished road
RedCross Re: PDF cannot find font - using Helvetica instead

Hi MMX

I think that's it - I will look into it and see if I can get my hosting provider to get it sorted!

Thanks for all your help!

Stefan
__________________
http://www.breakdesign.com
web, broadband, tv & mobile multimedia systems & applications, online web and mobile communities, flash games & more.
breakdesign is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
PDF generator cannot find font - Helvetica not found breakdesign Component Development 5 10.12.2005 16:54
Font inside the wysiwyg editors is wrong... dunedain Mambo 4.5 General Talk 2 22.04.2004 12:33
Template -> getting rid of underlined links webweever Mambo 4.5 'How Do I' Questions 6 19.04.2004 19:18
Last 5 SB Posts Module -> Is there a CSS Class that controls its styling webweever Module 'How Do I' Questions 2 17.04.2004 11:32
How do I change the font colour in the Events module? Bean Module 'How Do I' Questions 3 12.04.2004 14:45


All times are GMT +2. The time now is 05:30.

Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0
A vBSkinworks Design
© Copyright 2004-2008 by Arthur Konze Webdesign.