, 07 2007 . 07:07
+

pdf php!
- , , , !
!
:
1. File_PHP - PEAR
2. FPDF - , , !
!
, 1 , , .
! , pdf !
, !
, TrueType , Adobe.
ttf2pt1. ! ! amf
ttf2pt1 -A .ttf . afm. arial.
ttf2pt1 -A arial.ttf arial
FPDF , MakeFont(). font/makefont/makefont.php
:
PHP:
MakeFont(string fontfile, string afmfile [, string enc [, array patch [, string type]]])
font>
:
fontfile - TrueType
afmfile - afm
enc - ( cp1251)
patch - ( )
type - ( TrueType, - )
, , makefont/makefont.php , font, :
PHP:
MakeFont("arial.ttf", "arial.afm", "cp1251") ;
font>
! , !
arial.php arial.z
arial.php, !
, !
FPDF ( ) pdf , , FPDF addfont().
:
PHP:
$pdf = new FPDF();
$pdf->addfont('arial','','font/arial.php');
font>
, - , - ! - (, ..). , ..!
- , ! ! , ! , ! - , arial.php !
, :
$cw, => = =>! , , 750! , !
arial regular!
!
!
!