/*
 * ̾Ρmu_PdfFunctions
 * СVer.0.1.3b
 * ơpdfؿȤʤPDF
 * ưĶPHP4ʹ (ɬ:mbstring,PCRE 侩:zlib,GD)
 * 2002/11/27
 * 2003/03/07
 * ԡR.Sakamoto
 * ɽCopyright (c) 2002-2003 YDS. All rights reserved.
 * 饤󥹡LGPL
 * ۸http://www.mula-net.com/mulib/
 */

ڡϤˡ
	PHPpdfؿʤǤ
	LGPL饤󥹤ǸƤޤ


ڡȤꡡ
	ʬΤȤζ̳ɬפʤȤǤ褦ˤȺäƤΤ
	ɬפǤʤäǽϥѥƤޤ
	ȥꥢХ襤ŪˤʤäƤꤷޤ
	
	ޤߡΥ饹¾ȼͤPDF饤֥äƤޤ
	Τۤ̿˹ͤƤΤǡΥ饹Ͼʤ
	Τޤ
	
	ȤǤΦǤǤ
	ȤϼǤǤꤤޤ


ڡΥե롡
	mu_PdfFunctions.txt        Υե
	mu_PdfFunctions.php        饹ե
	sample_mu_pdffunctions.php ץ륹ץ
	COPYING                    饤ʸʱѸ


ڡʳɬפʥե롡
	PDFɸեȤAFMեTimes-Roman.afm ʤɡ
	http://partners.adobe.com/asn/developer/technotes/fonts.html
	ˤߤǤ
	̵ƤưϤޤʸեȤʸǤʤ
	ܤǽޤ


ڡ󥹥ȡ롡
	Ŭʥǥ쥯ȥ mu_PdfFunctions.php ֤Ƥ
	
	줫Ʊǥ쥯ȥ fonts Ȥǥ쥯ȥꡢ
	AFMե֤ޤ
	ʳƥեPHP¹Իɤ褦ˤƤƤ
	
	Ÿinclude_path  /usr/local/lib/php/mulib Ȥơ
	
	-rw-r--r-- /usr/local/lib/php/mulib/mu_PdfFunctions.php  
	
	drwxr-xr-x /usr/local/lib/php/mulib/fonts/
	-rw-r--r-- /usr/local/lib/php/mulib/fonts/Times-Roman.afm
	-rw-r--r-- /usr/local/lib/php/mulib/fonts/Helvetica.afm
	            ...
	
	mu_PdfFunctions.php  include() 
	MU_PDF_FONTPATH ȤꤷƤȤ
	̤Υǥ쥯ȥǤޤ


ڡˡ
	require_once("mu_PdfFunctions.php");
	$obj = new mu_PdfFunctions();
	
	ʤɤȤƤơ
	Ȥ pdf_hoge() Ȥؿ $obj->pdf_hoge() ȤФ褤Ǥ
	pdfؿߴȤ櫓ǤϤʤΤǡǤ⤫Ǥ֤
	櫓ǤϤʤǤ
	ʴŪʤȤǤʤȻפäƤäۤ褤
	
	ƥ᥽åɤΥե󥹤ϡ  Ȥ򸫤Ƥ
	ʥȤ򸫤Ƥ⤢ޤ񤤤ƤʤΤޤ󤬡ġ
	
	¸ߤ᥽åɤΰ򲼤˽񤤤Ƥޤ
	
		󥹥ȥ饯
			mu_PdfFunctions ()
		ץ󡦥
			pdf_open($fp)
			pdf_new()
			pdf_open_file($pdf, $file)
			pdf_close($pdf)
			pdf_delete($pdf)
			pdf_get_buffer($pdf)
		ѥ᡼Ϣ
			pdf_set_info($pdf, $key, $str)
			pdf_set_parameter($pdf, $key, $string)
			pdf_get_parameter($pdf, $key)
			pdf_set_value($pdf, $key, $value)
			pdf_get_value($pdf, $key)
		ڡ
			pdf_begin_page($pdf, $width, $height)
			pdf_end_page($pdf)
		եå
			pdf_translate($pdf, $x, $y)
			pdf_scale($pdf, $x, $y)
			pdf_rotate($pdf, $phi)
			pdf_save($pdf)
			pdf_restore($pdf)
			pdf_closepath($pdf)
			pdf_clip($pdf)
			pdf_setlinewidth($pdf, $width)
			pdf_setdash($pdf, $white, $black)
			pdf_moveto($pdf, $x, $y)
			pdf_lineto($pdf, $x, $y)
			pdf_curveto($pdf, $x1, $y1, $x2, $y2, $x3, $y3)
			pdf_circle($pdf, $x, $y, $r)
			pdf_rect($pdf, $x, $y, $w, $h )
			pdf_stroke($pdf)
			pdf_fill($pdf)
			pdf_fill_stroke($pdf)
		ʸ
			pdf_set_font($pdf, $font, $size, $code, $embed)
			pdf_findfont($pdf, $fontname, $encoding, $embed)
			pdf_setfont($pdf, $fontno, $size)
			pdf_stringwidth($pdf, $text)
			pdf_set_text_pos($pdf, $x, $y )
			pdf_show($pdf, $txt)
			pdf_show_xy($pdf, $txt, $x, $y)
			pdf_show_boxed($pdf, $txt, $x, $y, $width, $height, $hmode, $feature)
		Ϣ
			pdf_setcolor($pdf, $type, $cspace, $c1, $c2, $c3, $c4)
			pdf_setrgbcolor($pdf, $r, $g, $b)
			pdf_setrgbcolor_stroke($pdf, $r, $g, $b)
			pdf_setrgbcolor_fill($pdf, $r, $g, $b)
			pdf_setgray($pdf, $gray)
			pdf_setgray_stroke($pdf, $gray)
			pdf_setgray_fill($pdf, $gray)
		᡼ؿ
			pdf_open_image_file($pdf, $imgtype, $file)
			pdf_open_memory_image($pdf, $img)
			pdf_place_image($pdf, $imgid, $x, $y, $width, $height)
			pdf_close_image($pdf, $imgid)
	
	ʤpdfؿ򤽤Τޤ֤褦
	ƴؿ$pdfȤΤޤ
	Ȥȥ饹ʤΤǤͤϻѤƤޤ


ڡͤˤΡ
	PHPޥ˥奢 pdfؿ
		http://www.php.net/manual/ja/ref.pdf.php
	PDFlib
		http://www.pdflib.com
	ɥӥƥॺPDFե裲ǡ
	ʤ


ڡ򡡡
	Ver.0.1.3b	2003/03/07
		᡼Υ᥽åɤǥڥߥ
	Ver.0.1.2b	2003/03/05
		Ghostscriptǥ˥󥰤ФΤ
		pdf_add_bookmark()ؿȤɲ
	Ver.0.1.1b	2003/02/07
		
