Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


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

Rep: Reputation: 0
PDFLIB font error


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?


Old 03-26-2006, 01:27 AM   #2
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



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 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 > Forums > Linux Forums > Linux - Software

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

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