LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-24-2004, 10:26 AM   #1
caseycarnathan
LQ Newbie
 
Registered: Mar 2004
Location: new york
Posts: 1

Rep: Reputation: 0
PDFLIB font error


Hello,

Just installed PDFLIB + PDI on Red Hat box.

Script runs on windows apache, but gives this error...

Fatal error: PDFlib error [2600] PDF_findfont: Couldn't find encoding 'TrueType' in /var/www/html/pdf/generate_pdf.php on line 69

Here is the chunk of code:


$font = pdf_findfont($pdf, "Arial", "TrueType", 1);
pdf_setfont($pdf, $font, 18);
pdf_setColor($pdf, "fill", "rgb",1, 0, 0);


I also tried

$font = pdf_findfont($pdf, "Arial", "winansi", 1);
pdf_setfont($pdf, $font, 18);
pdf_setColor($pdf, "fill", "rgb",1, 0, 0);

Does anyone know how do get pdflib to recognize the font, or how i can check that the font even exists?

Thanks,

Casey
caseycarnathan@yahoo.com
 
Old 03-26-2006, 01:27 AM   #2
tooparam
Member
 
Registered: Nov 2005
Location: India
Distribution: Slackware
Posts: 51

Rep: Reputation: 15
Dear casey

Have you corrected the above error. Please help me. I'm facing a similar problem as yours.

I get the following error

Fatal error: PDFlib error: [2516] PDF_findfont: Metrics data for font 'Serif' not found in C:\phpfiles\test\pdf.php on line 10

on executing this line of code.

$font = pdf_findfont($pdf, "Serif", "winansi", 1);

I've tried various other font names but I'm getting the similar error.

Can you tell where I'm wrong

Thanks
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
pear install pdflib fails uopjohnson Linux - Software 4 05-03-2006 03:40 PM
PHP 4.3.10 & PDFlib EHCanadian Mandriva 2 12-24-2005 07:46 AM
can't complie pdflib-lite source from pdflib.com samik Linux - Software 1 11-09-2003 09:14 PM
Mplayer font error LooseCanon Linux - Software 2 08-28-2003 12:04 AM
Error loading font Ztyx Linux - General 1 11-29-2002 07:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:51 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration