Index: phpdoc/en/functions/calendar.xml diff -u phpdoc/en/functions/calendar.xml:1.20 phpdoc/en/functions/calendar.xml:1.21 --- phpdoc/en/functions/calendar.xml:1.20 Tue Dec 18 15:33:59 2001 +++ phpdoc/en/functions/calendar.xml Mon Jan 14 10:47:58 2002 @@ -1,5 +1,5 @@ - + Calendar functions Calendar @@ -534,7 +534,7 @@ jday <= 2465342 ) - See also jdtounix. + See also unixtojd. Index: phpdoc/en/functions/cpdf.xml diff -u phpdoc/en/functions/cpdf.xml:1.36 phpdoc/en/functions/cpdf.xml:1.37 --- phpdoc/en/functions/cpdf.xml:1.36 Wed Jan 9 19:26:29 2002 +++ phpdoc/en/functions/cpdf.xml Mon Jan 14 10:47:59 2002 @@ -1,5 +1,5 @@ - + ClibPDF functions ClibPDF @@ -1752,7 +1752,7 @@ - The cpdf_setgray_stroke function sets the current + The cpdf_setgray function sets the current drawing and filling color to the given gray value. @@ -1913,7 +1913,7 @@ - The cpdf_setrgbcolor_stroke function sets the current + The cpdf_setrgbcolor function sets the current drawing and filling color to the given rgb color value. Index: phpdoc/ja/functions/apache.xml diff -u phpdoc/ja/functions/apache.xml:1.8 phpdoc/ja/functions/apache.xml:1.9 --- phpdoc/ja/functions/apache.xml:1.8 Wed Dec 12 15:52:43 2001 +++ phpdoc/ja/functions/apache.xml Mon Jan 14 10:48:00 2002 @@ -1,4 +1,5 @@ + Apache用関数 Apache @@ -14,7 +15,7 @@ 説明 - class apache_lookup_uri + object apache_lookup_uri string filename @@ -141,7 +142,7 @@ getallheaders - 全てのHTTPリクエストヘッダを取り出します + 全てのHTTPリクエストヘッダを取得する 説明 @@ -165,10 +166,12 @@ <function>getallheaders</function>の例 +\n"; } +]]> この例は、現在のリクエストに関して全てのリクエストヘッダを @@ -187,7 +190,7 @@ virtual - Apache サブリクエストを実行します + Apacheサブリクエストを実行する 説明 @@ -211,6 +214,55 @@ requireを使用する必要があります。 virtualは、PHPファイル自体を読みこむ 際には使用できません。 + + + + + + + apache_child_terminate + このリクエストの後にApacheプロセスを終了する + + + 説明 + + + string apache_child_terminate + + + + + apache_child_terminate は、カレントのPHPリク + エストを実行しているApacheプロセスをリクエスト終了時点で終了しま + す。この関数は、メモリ消費量が大きなスクリプトを実行した後プロセ + スを使用するために使用することが可能です。これは、メモリは通常内 + 部的にのみ解放され、オペレーティングシステムに戻されないためです。 + + + exitも参照下さい。 + + + + + + + apache_setenv + Apacheサブプロセスの環境変数を設定する + + + 説明 + + + int apache_setenv + string variable + string value + bool + walk_to_top + + + + + &warn.undocumented.func; Index: phpdoc/ja/functions/aspell.xml diff -u phpdoc/ja/functions/aspell.xml:1.8 phpdoc/ja/functions/aspell.xml:1.9 --- phpdoc/ja/functions/aspell.xml:1.8 Wed Dec 12 15:52:44 2001 +++ phpdoc/ja/functions/aspell.xml Mon Jan 14 10:48:00 2002 @@ -1,6 +1,7 @@ + - Aspell 関数 + Aspell関数(古い拡張モジュール) Aspell @@ -27,7 +28,7 @@ aspell_new - 新しい辞書をロードする + 新しい辞書をロードする [古い関数] 説明 @@ -35,18 +36,23 @@ int aspell_new string master - string personal + string + personal + - aspell_new は、新規辞書をオープンし、 - 他の aspell 関数で使用される辞書リンク ID を返します。 + aspell_new は、新規辞書をオープンし、他の + aspell関数で使用される辞書リンクIDを返します。エラー時に&false; + を返します。 <function>aspell_new</function> -$aspell_link=aspell_new ("english"); + @@ -56,7 +62,7 @@ aspell_check - 単語をチェックする + 単語をチェックする [古い関数] 説明 @@ -69,18 +75,21 @@ aspell_check は単語のスペルをチェックし、 - スペルが正しい場合には&true; 、そうでない場合は&false;を返します。 + スペルが正しい場合には&true;、そうでない場合は&false;を返します。 <function>aspell_check</function> - -$aspell_link=aspell_new ("english"); -if (aspell_check ($aspell_link,"testt")) { + + @@ -98,7 +107,7 @@ 説明 - boolean aspell_check_raw + bool aspell_check_raw int dictionary_link string word @@ -112,12 +121,15 @@ <function>aspell_check_raw</function> -$aspell_link=aspell_new ("english"); -if (aspell_check_raw ($aspell_link,"test")) { + @@ -127,7 +139,7 @@ aspell_suggest - 単語スペルの修正案を示す + 単語スペルの修正案を示す [古い関数] 説明 @@ -146,15 +158,17 @@ <function>aspell_suggest</function> -$aspell_link=aspell_new ("english"); +"; + foreach ($suggestions as $suggestion) { + echo "Possible spelling: $suggestion
\n"; } } +]]>
Index: phpdoc/ja/functions/bc.xml diff -u phpdoc/ja/functions/bc.xml:1.8 phpdoc/ja/functions/bc.xml:1.9 --- phpdoc/ja/functions/bc.xml:1.8 Wed Dec 12 15:52:45 2001 +++ phpdoc/ja/functions/bc.xml Mon Jan 14 10:48:00 2002 @@ -1,4 +1,5 @@ + BCMath任意精度数学関数 BC math Index: phpdoc/ja/functions/bzip2.xml diff -u phpdoc/ja/functions/bzip2.xml:1.10 phpdoc/ja/functions/bzip2.xml:1.11 --- phpdoc/ja/functions/bzip2.xml:1.10 Mon Jan 14 04:56:35 2002 +++ phpdoc/ja/functions/bzip2.xml Mon Jan 14 10:48:00 2002 @@ -1,4 +1,5 @@ + Bzip2 圧縮関数 Bzip2 Index: phpdoc/ja/functions/calendar.xml diff -u phpdoc/ja/functions/calendar.xml:1.11 phpdoc/ja/functions/calendar.xml:1.12 --- phpdoc/ja/functions/calendar.xml:1.11 Wed Dec 12 15:52:45 2001 +++ phpdoc/ja/functions/calendar.xml Mon Jan 14 10:48:00 2002 @@ -1,4 +1,5 @@ + カレンダー関数 カレンダー @@ -7,7 +8,7 @@ カレンダー関数は、PHPソースコードのサブディレクトリ"dl"または"ext" にあるカレンダー拡張をコンパイルした場合にのみ利用可能です。使用法 - については、dl/READMEの指示を参照下さい。 + については、READMEファイルを参照下さい。 カレンダー関数は、異なったカレンダーフォーマット間の変換を @@ -75,12 +76,14 @@ カレンダー関数 -<?php + +]]> @@ -180,8 +183,6 @@ このソフトウェアでは1年(紀元前3761年)に遡って全ての日々を扱うこと が出来ますが、この様な使い方は特に意味があるわけではありません。 - - ユダヤ暦は数千年に渡って使われていますが、当初は月の 始まりが決められていませんでいた。新しい月は新月が最初に観測 された日に始まりました。 @@ -258,37 +259,44 @@ どんなタイプの月名を返すを関数に伝えます。

暦モード - + モード 意味 + 0 グレゴリウス暦 - 省略形 + Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, Dec 1 グレゴリウス暦 + January, February, March, April, May, June, July, August, September, October, November, December 2 ユリウス暦 - 省略形 + Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, Dec 3 ユリウス暦 + January, February, March, April, May, June, July, August, September, October, November, December 4 ユダヤ暦 + Tishri, Heshvan, Kislev, Tevet, Shevat, AdarI, AdarII, Nisan, Iyyar, Sivan, Tammuz, Av, Elul 5 フランス革命暦 + Vendemiaire, Brumaire, Frimaire, Nivose, Pluviose, Ventose, Germinal, Floreal, Prairial, Messidor, Thermidor, Fructidor, Extra @@ -374,9 +382,11 @@ <function>easter_date</function>の例 -echo date ( "M-d-Y", easter_date(1999)); /* "1999/4/04" */ -echo date ( "M-d-Y", easter_date(2000)); /* "2000/4/23" */ -echo date ( "M-d-Y", easter_date(2001)); /* "2001/4/15" */ + @@ -407,7 +417,9 @@ easter_days - 指定した年において3月21日以降、復活祭までの日数を得る + + 指定した年において3月21日以降、復活祭までの日数を得る + 説明 @@ -428,9 +440,11 @@ <function>easter_days</function>の例 + @@ -482,11 +496,6 @@ jdtounixも参照下さい。 - - - この関数は、PHP 4RC1以降のバージョンのPHPでのみ利用可能です。 - - @@ -511,13 +520,99 @@ の範囲外の場合は&false;を返します。 + unixtojdも参照下さい。 + + + + + + + cal_days_in_month + + 指定した年とカレンダについて日数を返す + calendar + + + + 説明 + + + int cal_days_in_month + int calendar + int month + int year + + + + この関数は、指定したcalendarについて + yearmonth月の日数 + を返します。 + + jdtounixも参照下さい。 - - - この関数は、PHP 4RC1以降のバージョンのPHPで利用可能です。 - - + + + + + + cal_to_jd + + サポートされるカレンダからユリウス積算日に変換する + + + + 説明 + + + int cal_to_jd + int calendar + int month + int day + int year + + + + + + + + + + cal_from_jd + + ユリウス積算日からサポートされるカレンダに変換し、拡張情報を返す + + + + 説明 + + + array cal_from_jd + int jd + int calendar + + + + + + + + + + cal_info + 特定のカレンダに関する情報を返す + + + 説明 + + + array cal_info + int calendar + + + + Index: phpdoc/ja/functions/ccvs.xml diff -u phpdoc/ja/functions/ccvs.xml:1.3 phpdoc/ja/functions/ccvs.xml:1.4 --- phpdoc/ja/functions/ccvs.xml:1.3 Wed Dec 12 15:52:46 2001 +++ phpdoc/ja/functions/ccvs.xml Mon Jan 14 10:48:00 2002 @@ -1,4 +1,5 @@ + Index: phpdoc/ja/functions/classobj.xml diff -u phpdoc/ja/functions/classobj.xml:1.13 phpdoc/ja/functions/classobj.xml:1.14 --- phpdoc/ja/functions/classobj.xml:1.13 Wed Dec 12 15:52:46 2001 +++ phpdoc/ja/functions/classobj.xml Mon Jan 14 10:48:00 2002 @@ -1,4 +1,5 @@ + クラス/オブジェクト関数 クラス/オブジェクト @@ -29,7 +30,8 @@ classes.inc -<?php +edible = $edible; + $this->color = $color; } function is_edible() { - return $this->edible; + return $this->edible; } function what_color() { - return $this->color; + return $this->color; } } // クラスVegetableの終り @@ -59,11 +61,11 @@ var $cooked = false; function Spinach() { - $this->Vegetable( true, "green" ); + $this->Vegetable( true, "green" ); } function cook_it() { - $this->cooked = true; + $this->cooked = true; } function is_cooked() { @@ -72,7 +74,8 @@ } // クラスSpinachの終り -?> +?> +]]> @@ -86,58 +89,60 @@ test_script.php -<pre> -<?php + + + +]]> @@ -151,10 +156,12 @@ + @@ -247,30 +254,32 @@ そのクラスのメソッドprint_infoをコールします。 -<?php +NAME = $name; + $this->TLD = $tld; + } - function print_info($prestr="") { - echo $prestr."Country: ".$this->NAME."\n"; - echo $prestr."Top Level Domain: ".$this->TLD."\n"; - } + function print_info($prestr="") { + echo $prestr."Country: ".$this->NAME."\n"; + echo $prestr."Top Level Domain: ".$this->TLD."\n"; + } } -$cntry = new Country("Peru","pe"); +$cntry = new Country("Peru","pe"); -echo "* Calling the object method directly\n"; -$cntry->print_info(); +echo "* Calling the object method directly\n"; +$cntry->print_info(); -echo "\n* Calling the same method indirectly\n"; -call_user_method ("print_info", $cntry, "\t"); -?> +echo "\n* Calling the same method indirectly\n"; +call_user_method ("print_info", $cntry, "\t"); +?> +]]> @@ -321,6 +330,7 @@ get_parent_class、 + get_typeis_subclass_ofも参照下さい。 @@ -349,7 +359,9 @@ オブジェクト自身を指定することが可能です。例えば、 + @@ -358,7 +370,8 @@ <function>get_class_methods</function>の例 -<?php + +]]> @@ -393,9 +407,11 @@ 上の例の出力は次のようになります。 + @@ -436,7 +452,8 @@ <function>get_class_vars</function> の例 -<?php + +]]> @@ -467,8 +485,10 @@ この例の出力は次のようになります。 + @@ -489,7 +509,7 @@ array get_declared_classes - void + @@ -499,10 +519,16 @@ PHP 4.0.1pl2では、この他に次の3つのクラスが配列の先頭に返されま - す。: stdClass (Zend/zend.cで定義)、 + す。: stdClass + (Zend/zend.cで定義)、 OverloadedTestClass - (ext/standard/basic_functions.cで定義)、Directory - (ext/standard/dir.cで定義) + (ext/standard/basic_functions.cで定義)、 + Directory + (ext/standard/dir.cで定義) + + + PHPにコンパイルされているライブラリの種類に依存して、他のクラス + も存在する可能性があることにも注意して下さい。 @@ -531,24 +557,25 @@ <function>get_object_vars</function>の使用例 -<?php +x = $x; + $this->y = $y; } function setLabel($label) { - $this->label = $label; + $this->label = $label; } function getPoint() { - return array("x" => $this->x, - "y" => $this->y, - "label" => $this->label); + return array("x" => $this->x, + "y" => $this->y, + "label" => $this->label); } } @@ -557,20 +584,21 @@ // "$label" は宣言されていますが、未定義です。 // Array // ( -// [x] => 1.233 -// [y] => 3.445 +// [x] => 1.233 +// [y] => 3.445 // ) -$p1->setLabel("point #1"); +$p1->setLabel("point #1"); print_r(get_object_vars($p1)); // Array // ( -// [x] => 1.233 -// [y] => 3.445 -// [label] => point #1 +// [x] => 1.233 +// [y] => 3.445 +// [label] => point #1 // ) -?> +?> +]]> @@ -591,12 +619,17 @@ string get_parent_class - object obj + mixed obj - この関数は、objがインスタンスであるクラス - の親クラスの名前を返します。 + objがオブジェクトの場合、 + objがインスタンスであるクラスの親クラスの + 名前を返します。 + + + objが文字列の場合、これを名前とするクラス + の親クラスの名前を返します。この機能は、PHP 4.0.5で追加されました。 get_class、 Index: phpdoc/ja/functions/com.xml diff -u phpdoc/ja/functions/com.xml:1.10 phpdoc/ja/functions/com.xml:1.11 --- phpdoc/ja/functions/com.xml:1.10 Wed Dec 12 15:52:46 2001 +++ phpdoc/ja/functions/com.xml Mon Jan 14 10:48:00 2002 @@ -1,14 +1,32 @@ + Windows用のCOMサポート関数 COM - - + + + + COMは、標準化された呼び出し規約及びコンポーネントが保存されている + マシンや実行ファイルが存在するマシンの種類の実装の詳細をAPIの背後 + に隠蔽することにより、(あらゆる言語により)あらゆる言語で書かれたコー + ドを再使用することを可能とする技術です。COMは、いくつかの基本的な + オブジェクトルートを有する特別なRemote Procedure Call (RPC)機構と + 考えることができる。COMは、実装をインターフェイスから分離します。 + + + COMは、バージョン管理、インターフェイスからの実装の分離、実行ファ + イルの位置や記述される言語のような実装の詳細の隠蔽を推奨します。 + + + COM関数は、PHPのWindowsバージョンでのみ利用可能です。 + - 以下の関数は、Windows版のPHPでのみ利用可能です。これらの関数は、 - PHP4で追加されました。 - - + COMに関するより詳細な情報については、COM規約またはDon Boxの + Yet Another COM Library (YACL)を + 参照下さい。 + + @@ -81,6 +99,7 @@ COM の例 (1) +Version}\n"; @@ -101,6 +120,7 @@ // オブジェクトを開放 $word->Release(); $word = null; +]]> @@ -108,6 +128,7 @@ COM の例 (2) +Open("Provider=SQLOLEDB; Data Source=localhost; Initial Catalog=database; User ID=user; Password=password"); @@ -117,7 +138,7 @@ $num_columns = $rs->Fields->Count(); echo $num_columns . "\n"; -for ($i=0; $i < $num_columns; $i++) +for ($i=0; $i < $num_columns; $i++) { $fld[$i] = $rs->Fields($i); } @@ -125,7 +146,7 @@ $rowcount = 0; while (!$rs->EOF) { - for ($i=0; $i < $num_columns; $i++) + for ($i=0; $i < $num_columns; $i++) { echo $fld[$i]->value . "\t"; } @@ -142,6 +163,7 @@ $rs = null; $conn = null; +]]> @@ -455,6 +477,47 @@ コンポーネントリファレンスカウンタを減らします。 + + + + + + + com_isenum + IEnumVariantを取得する + + + 説明 + + + void com_isenum + object com_module + + + + &warn.undocumented.func; + + + + + + + com_load_typelib + Typelibをロードする + + + 説明 + + + void com_load_typelib + string typelib_name + int + case_insensitive + + + + + &warn.undocumented.func; Index: phpdoc/ja/functions/cpdf.xml diff -u phpdoc/ja/functions/cpdf.xml:1.18 phpdoc/ja/functions/cpdf.xml:1.19 --- phpdoc/ja/functions/cpdf.xml:1.18 Wed Dec 12 15:52:47 2001 +++ phpdoc/ja/functions/cpdf.xml Mon Jan 14 10:48:00 2002 @@ -1,5 +1,5 @@ - + ClibPDF 関数 ClibPDF @@ -73,7 +73,8 @@ 簡単な ClibPDF の例 -<?php + +]]> @@ -99,8 +101,9 @@ pdflib 2.0 配布ファイルからの pdfclock の例 - -<?php + + +]]> - - + + - cpdf_global_set_document_limits - PDFドキュメントの制限を設定する + cpdf_add_annotation + 注記を追加する 説明 - void cpdf_global_set_document_limits - int maxpages - int maxfonts - int maximages - int maxannotations - int maxobjects + void cpdf_add_annotation + int pdf document + float llx + float lly + float urx + float ury + string title + string content + int + + mode + + - cpdf_global_set_document_limits 関数は複数の - ドキュメントの制限を設定します。この関数を使用する際には、 - cpdf_openの前にコールする必要があります。こ - の関数は、この後オープンする全てのドキュメントに制限を設定します。 + cpdf_add_annotation は、左下隅を + (llx, lly) 、右上隅 + を(urx, ury) とする + 注記を追加します。 - cpdf_openも参照下さい。 + 最後のオプションのパラメータ mode は単位長 + さを定義します。0 または指定しなかった場合、そのページに指定され + たデフォルトの単位が使用されます。デフォルトの単位が指定されてい + ない場合は、座標はポストスクリプトポイントで計られます。 - - + + - cpdf_set_creator - pdf ドキュメントの creator フィールドを設定する + cpdf_add_outline + 現在のページにブックマークを追加する 説明 - void cpdf_set_creator - string creator + void cpdf_add_outline + int pdf document + string text - cpdf_set_creator 関数は、pdf ドキュメントの - creator を設定します。 - - - cpdf_set_subject, - cpdf_set_title, - cpdf_set_keywords - も参照下さい。 + cpdf_add_outline 関数は、テキスト + text により、現在のページを指すブックマー + クを設定します。 + + ページアウトラインの追加 + + +]]> + + + + - + - cpdf_set_title - pdf ドキュメントの title フィールドを設定する + cpdf_arc + 円弧を描く 説明 - void cpdf_set_title - string title + void cpdf_arc + int pdf document + float x-coor + float y-coor + float radius + float start + float end + int mode - cpdf_set_title 関数は、pdfドキュメントの - title を設定します。 + cpdf_arc 関数は、 + (x-coor, y-coor) + を中心として半径 radius、 + 角度 start から、角度 + end までの円弧を描きます。 - cpdf_set_subject, - cpdf_set_creator, - cpdf_set_keywords - も参照下さい。 + 最後のオプションのパラメータ mode は + 単位長さを定義します。 + 0 または指定しなかった場合、そのページに指定されたデフォルトの単位が + 使用されます。 + デフォルトの単位が指定されていない場合は、座標はポストスクリプト + ポイントで計られます。 + + + cpdf_circle も参照下さい。 - + - cpdf_set_subject - pdfドキュメントのsubject フィールドを設定する + cpdf_begin_text + テキストセクションを開始する 説明 - void cpdf_set_subject - string subject + void cpdf_begin_text + int pdf document - cpdf_set_subject 関数は、pdf ドキュメントの - subject を設定します。 + cpdf_begin_text 関数はテキストセクションを + 開始します。テキストセクションは、cpdf_end_text + で終了する必要があります。 + + テキスト出力 + + +]]> + + - cpdf_set_title, - cpdf_set_creator, - cpdf_set_keywords も参照下さい。 + cpdf_end_text も参照下さい。 - - + + - cpdf_set_keywords - pdfドキュメントのkeywords フィールドを設定する + cpdf_circle + 円を描く 説明 - void cpdf_set_keywords - string keywords + void cpdf_circle + int pdf document + float x-coor + float y-coor + float radius + int + mode + - cpdf_set_keywords 関数は、pdfドキュメントの - keywords を設定します。 + cpdf_circle 関数は、 + (x-coor, y-coor) + を中心として半径 radius の円を描きます。 - cpdf_set_title, - cpdf_set_creator, - cpdf_set_subjectも参照下さい。 + 最後のオプションのパラメータ mode は + 単位長さを定義します。 + 0 または指定しなかった場合、そのページに指定されたデフォルトの単位が + 使用されます。 + デフォルトの単位が指定されていない場合は、座標はポストスクリプト + ポイントで計られます。 + + + cpdf_arc も参照下さい。 - + - cpdf_open - 新規pdfドキュメントをオープンする + cpdf_clip + カレントのパスを切り取る 説明 - int cpdf_open - int compression - string filename + void cpdf_clip + int pdf document - cpdf_open 関数は新規pdfドキュメントをオープ - ンします。最初の引数が0 以外である場合、ドキュメントの圧縮がオン - となります。オプションの2番目のパラメータには、ドキュメントを書き - こむファイルを設定します。これを省略した場合、ドキュメントはメモ - リー上に作成され、cpdf_save_to_file によりファ - イルに書きこむか、 cpdf_output_buffer により - 標準出力に書き込むかのどちらかの処理を行うことができます。 - - - 返り値は、pdfドキュメントを書きこむ他の全ての関数の最初の引数 - として将来のバージョンの ClipPDF では必要になることでしょう。 - - - ClibPDF ライブラリは、stdout を表すファイル名として "-" をとり - ます。ClipPDF の stdout への出力は apache との組み合わせでは動 - 作しないため、PHP が apache モジュールとしてコンパイルされてい - る場合、この指定は動作しません。この問題は、ファイル名の指定を - スキップし、pdfドキュメントを出力するために - cpdf_output_buffer を使用することにより解 - 決することができます。 - - - - - cpdf_close, - cpdf_output_bufferも参照下さい。 + cpdf_clip 関数はカレントのパスに描かれたもの + を全て切り取ります。 @@ -393,198 +438,148 @@ - + - cpdf_page_init - 新規ページを開始する + cpdf_closepath + パスを閉じる 説明 - void cpdf_page_init + void cpdf_closepath int pdf document - int page number - int orientation - double height - double width - double unit - cpdf_page_init 関数は、高さ - height 、幅 width - の新規ページを開始します。ページは、ページ番号 page - number 及び向きorientation を - 有しています。orientation は縦置きの場合に - 0、横置きの場合に 1 とします。最後のオプションのパラメータ - unitは、座標系の単位を指定します。この値 - は、単位当たりのポストスクリプトのポイント数とする必要があります。 - 1インチは、72ポイントに等しいので、72という値は、単位をインチに設 - 定します。デフォルト値も72です。 - - - cpdf_set_current_pageも参照下さい。 + cpdf_closepath 関数はカレントのパスを + 閉じます。 - + - cpdf_finalize_page - ページを終了する + cpdf_closepath_fill_stroke + パスを閉じ、塗りつぶし、描く 説明 - void cpdf_finalize_page + void cpdf_closepath_fill_stroke int pdf document - int page number - cpdf_finalize_page 関数は、ページ番号 - page number のページを終了します。この関数 - は、メモリに節約する意味しかありません。ページを終了することによ - り、消費メモリは少なくなりますが、修正することはできなくなります。 + cpdf_closepath_fill_stroke 関数は、カレント + のパスを閉じ、内部をカレントの塗りつぶし色で塗りつぶし、カレント + のパスを描きます。 - cpdf_page_initも参照下さい。 + cpdf_closepath, + cpdf_stroke, + cpdf_fill, + cpdf_setgray_fill, + cpdf_setgray, + cpdf_setrgbcolor_fill, + cpdf_setrgbcolor も参照下さい。 - - - cpdf_finalize - ドキュメントを終了する - - - 説明 - - - void cpdf_finalize - int pdf document - - - - cpdf_finalize 関数はドキュメントを終了します。 - 更に cpdf_close をコールする必要があります。 - - - cpdf_close も参照下さい。 - - - - - + - cpdf_output_buffer - pdf ドキュメントをメモリバッファに出力する + cpdf_closepath_stroke + パスを閉じ、線をパスに沿って描く 説明 - void cpdf_output_buffer + void cpdf_closepath_stroke int pdf document - cpdf_output_buffer 関数は、pdfドキュメントを - 標準出力に出力します。ドキュメントは、メモリ上に作成されている必 - 要があります。メモリ上に作成されるのは、 - cpdf_open を filename パラメータを指定せずに - コールした場合です。 + cpdf_closepath_stroke 関数は、 + cpdf_closepath と + cpdf_stroke が合わさったものです。 + 処理語、パスをクリアします。 - cpdf_openも参照下さい。 + cpdf_closepath, + cpdf_stroke も参照下さい。 - + - cpdf_save_to_file - pdf ドキュメントをファイルに書きこむ + cpdf_continue_text + 次の行にテキストを出力する 説明 - void cpdf_save_to_file + void cpdf_continue_text int pdf document - string filename + string text - cpdf_save_to_file 関数は、メモリ上に作成され - たpdfドキュメントをファイルに出力します。この関数は、 - cpdf_open のパラメータとしてfilename を指定 - してオープンした場合にはコールする必要はありません。 + cpdf_continue_text 関数は次の行に + 文字列 text を出力します。 - cpdf_output_buffer, - cpdf_open も参照下さい。 + cpdf_show_xy, + cpdf_text, + cpdf_set_leading, + cpdf_set_text_pos も参照下さい。 - + - cpdf_set_current_page - カレントページを設定する + cpdf_curveto + 曲線を描く 説明 - void cpdf_set_current_page + void cpdf_curveto int pdf document - int page number + float x1 + float y1 + float x2 + float y2 + float x3 + float y3 + int mode - cpdf_set_current_page 関数は、全ての操作を行 - うページを設定します。cpdf_finalize_page に - よりページを終了するまでページ間を移動することができます。 - - - cpdf_finalize_page も参照下さい。 + cpdf_curveto 関数は、 + (x1, y1) および + (x2, y2) を制御点として + カレントの点から + (x3, y3) にベジエ曲線を + 描きます。 - - - - - - cpdf_begin_text - テキストセクションを開始する - - - 説明 - - - void cpdf_begin_text - int pdf document - - - cpdf_begin_text 関数はテキストセクションを - 開始します。テキストセクションは、cpdf_end_text - で終了する必要があります。 - - テキスト出力 - -<?php cpdf_begin_text($pdf); -cpdf_set_font($pdf, 16, "Helvetica", "WinAnsiEncoding"); -cpdf_text($pdf, 100, 100, "Some text"); -cpdf_end_text($pdf) ?> - - + 最後のオプションのパラメータ mode は単位長 + さを定義します。0 または指定しなかった場合、そのページに指定され + たデフォルトの単位が使用されます。デフォルトの単位が指定されてい + ない場合は、座標はポストスクリプトポイントで計られます。 - cpdf_end_text も参照下さい。 + cpdf_moveto, + cpdf_rmoveto, + cpdf_rlineto, + cpdf_lineto も参照下さい。 @@ -608,11 +603,15 @@ ンを終了します。 テキスト出力 - -<?php cpdf_begin_text($pdf); + + +cpdf_end_text($pdf) +?> +]]> @@ -622,412 +621,458 @@ - + - cpdf_show - 現在位置にテキストを出力する + cpdf_fill + カレントのパスを塗りつぶす 説明 - void cpdf_show + void cpdf_fill int pdf document - string text - cpdf_show 関数は、現在位置に - text の文字列を出力します。 + cpdf_fill 関数は、カレントの塗りつぶし色で + カレントのパスの内部を塗りつぶします。 - cpdf_text, - cpdf_begin_text, - cpdf_end_text も参照下さい。 + cpdf_closepath, + cpdf_stroke, + cpdf_setgray_fill, + cpdf_setgray, + cpdf_setrgbcolor_fill, + cpdf_setrgbcolor も参照下さい。 - + - cpdf_show_xy - 指定位置にテキストを出力する + cpdf_fill_stroke + カレントのパスを塗りつぶし、描く 説明 - void cpdf_show_xy + void cpdf_fill_stroke int pdf document - string text - double x-coor - double y-coor - int mode - cpdf_show_xy 関数は、 - 座標 (x-coor, y-coor) - の位置に文字列 text を出力します。 - 最後のオプションのパラメータは単位長さを定義します。 - 0 または指定しなかった場合、そのページに指定されたデフォルトの単位が - 使用されます。 - デフォルトの単位が指定されていない場合は、座標はポストスクリプト - ポイントで計られます。 - - - 関数cpdf_show_xy は、オプションの - パラメータを除き cpdf_text と同じです。 - - + cpdf_fill_stroke 関数は、カレントのパスの内 + 部をカレントの塗りつぶし色で塗りつぶし、カレントのパスを描きます。 - cpdf_text も参照下さい。 + cpdf_closepath, + cpdf_stroke, + cpdf_fill, + cpdf_setgray_fill, + cpdf_setgray, + cpdf_setrgbcolor_fill, + cpdf_setrgbcolor + も参照下さい。 - + - cpdf_text - テキストをパラメータを元に出力する + cpdf_finalize + ドキュメントを終了する 説明 - void cpdf_text + void cpdf_finalize int pdf document - string text - double x-coor - double y-coor - int mode - double orientation - int alignmode - cpdf_text 関数は、文字列 - text を座標(x-coor, - y-coor)の位置に出力します。 - オプションのパラメータは、単位長さを定義します。0 または指定しな - かった場合、そのページに指定されたデフォルトの単位が使用されます。 - デフォルトの単位が指定されていない場合は、座標はポストスクリプト - ポイントで計られます。オプションのパラメータ - orientation はテキストの回転角を度を単位と - して表したものです。オプションのパラメータ - alignmodeテキストの並べ方を定義します。 - 使用可能な値については、ClibPDF のドキュメントを参照下さい。 + cpdf_finalize 関数はドキュメントを終了します。 + 更に cpdf_close をコールする必要があります。 - cpdf_show_xy も参照下さい。 + cpdf_close も参照下さい。 - + - cpdf_set_font - フォントの種類とサイズを選択する + cpdf_finalize_page + ページを終了する 説明 - void cpdf_set_font + void cpdf_finalize_page int pdf document - string font name - double size - string encoding + int page number - cpdf_set_font 関数は、カレントのフォントの種 - 類とサイズ、エンコード法を設定します。現在は、標準の Postscript - フォントのみがサポートされています。最後のパラメータ - encoding には次の値を指定できます。 - "MacRomanEncoding", "MacExpertEncoding", - "WinAnsiEncoding","&null;" 。"&null;" は、そのフォントの組込みエンコー - ド法を意味します。詳細な情報、特にアジア用フォント(訳注:日本語 - フォントを含むCJKフォント)のサポートについては、ClibPDF のマニュ - アルを参照下さい。 + cpdf_finalize_page 関数は、ページ番号 + page number のページを終了します。この関数 + は、メモリに節約する意味しかありません。ページを終了することによ + り、消費メモリは少なくなりますが、修正することはできなくなります。 + + + cpdf_page_initも参照下さい。 - + - cpdf_set_leading - テキスト行の間隔を設定する + cpdf_global_set_document_limits + PDFドキュメントの制限を設定する 説明 - void cpdf_set leading - int pdf document - double distance + void cpdf_global_set_document_limits + int maxpages + int maxfonts + int maximages + int maxannotations + int maxobjects - cpdf_set_leading 関数はテキストの行間 - 設定します。この関数は、 - cpdf_continue_text により - テキストを出力する場合に使用されます。 + cpdf_global_set_document_limits 関数は複数の + ドキュメントの制限を設定します。この関数を使用する際には、 + cpdf_openの前にコールする必要があります。こ + の関数は、この後オープンする全てのドキュメントに制限を設定します。 - cpdf_continue_text も参照下さい。 + cpdf_openも参照下さい。 - - + + - cpdf_set_text_rendering - テキストのレンダリング法を定義する + cpdf_import_jpeg + JPEG 画像をオープンする 説明 - void cpdf_set_text_rendering + int cpdf_import_jpeg int pdf document - int mode + string file name + float x-coor + float y-coor + float angle + float width + float height + float x-scale + float y-scale + int + + mode + + - cpdf_set_text_rendering 関数はテキストのレン - ダリング法を定義します。mode で使用可能な - 値は、0=塗りつぶす, 1=輪郭を描く, 2=塗りつぶし輪郭を描く, 3=不可 - 視,4=塗りつぶしクリッピングパスに追加, 5=輪郭を描いてクリッピング - パスに追加,6=塗りつぶし輪郭を描いてクリッピングパスに追加, 7=クリッ - ピングパスに追加です。 + cpdf_import_jpeg 関数は、 + file name という名前のファイルに保存された + 画像をオープンします。画像のフォーマットは jpeg である必要があります。 + 画像は、カレントのページの位置 + (x-coor, y-coor) + に置かれます。 + 画像は、angle 度回転されます。 - - - - - - cpdf_set_horiz_scaling - テキストの水平方向の倍率を設定する - - - 説明 - - - void cpdf_set_horiz_scaling - int pdf document - double scale - - - cpdf_set_horiz_scaling 関数は、水平方向の - 倍率を scale パーセントに設定します。 + オプションのパラメータ modeは、単位長さを + 定義します。0 または指定しなかった場合、そのページに指定されたデ + フォルトの単位が使用されます。デフォルトの単位が指定されていない + 場合は、座標はポストスクリプトポイントで計られます。 + + + cpdf_place_inline_image も参照下さい。 - + - cpdf_set_text_rise - テキストの高さを設定する + cpdf_lineto + 線を描く 説明 - void cpdf_set_text_rise + void cpdf_lineto int pdf document - double value + float x-coor + float y-coor + int mode - cpdf_set_text_rise 関数は、テキストの高さを - value 単位に設定します。 + cpdf_lineto 関数はカレントのポイントから + (x-coor, y-coor) + に線を描きます。 + + + 最後のオプションのパラメータ mode は + 単位長さを定義します。 + 0 または指定しなかった場合、そのページに指定されたデフォルトの単位が + 使用されます。 + デフォルトの単位が指定されていない場合は、座標はポストスクリプト + ポイントで計られます。 + + + cpdf_moveto, + cpdf_rmoveto, + cpdf_curveto も参照下さい。 - + - cpdf_set_text_matrix - テキスト行列を設定する + cpdf_moveto + カレントのポイントを設定する 説明 - void cpdf_set_text_matrix + void cpdf_moveto int pdf document - array matrix + float x-coor + float y-coor + int mode - cpdf_set_text_matrix 関数は、カレントのテキ - ストフォントに適用する変換を記述する行列を設定します。 + cpdf_moveto 関数は、カレントのポイントを + 座標 (x-coor ,y-coor) + に設定します。 + + + 最後のオプションのパラメータ mode は + 単位長さを定義します。 + 0 または指定しなかった場合、そのページに指定されたデフォルトの単位が + 使用されます。 + デフォルトの単位が指定されていない場合は、座標はポストスクリプト + ポイントで計られます。 - + - cpdf_set_text_pos - テキスト位置を設定する + cpdf_newpath + 新規パスを開始する 説明 - void cpdf_set_text_pos + void cpdf_newpath int pdf document - double x-coor - double y-coor - int mode - cpdf_set_text_pos 関数は、 - 次に cpdf_show がコールされた時の - テキストの位置を設定します。 - - - 最後のオプションのパラメータ mode は - 単位長さを定義します。 - 0 または指定しなかった場合、そのページに指定されたデフォルトの単位が - 使用されます。 - デフォルトの単位が指定されていない場合は、座標はポストスクリプト - ポイントで計られます。 - - - cpdf_show, - cpdf_text も参照下さい。 + cpdf_newpath は、パラメータ + pdf documentで指定したドキュメントにおいて + 新規のパスを開始します。 - - + + - cpdf_set_char_spacing - 文字間隔を設定する + cpdf_open + 新規pdfドキュメントをオープンする 説明 - void cpdf_set_char_spacing - int pdf document - double space + int cpdf_open + int compression + string filename - cpdf_set_char_spacing 関数は、文字の間隔を - 設定します。 + cpdf_open 関数は新規pdfドキュメントをオープ + ンします。最初の引数が0 以外である場合、ドキュメントの圧縮がオン + となります。オプションの2番目のパラメータには、ドキュメントを書き + こむファイルを設定します。これを省略した場合、ドキュメントはメモ + リー上に作成され、cpdf_save_to_file によりファ + イルに書きこむか、 cpdf_output_buffer により + 標準出力に書き込むかのどちらかの処理を行うことができます。 + + + 返り値は、pdfドキュメントを書きこむ他の全ての関数の最初の引数 + として将来のバージョンの ClipPDF では必要になることでしょう。 + + + ClibPDF ライブラリは、stdout を表すファイル名として "-" をとり + ます。ClipPDF の stdout への出力は apache との組み合わせでは動 + 作しないため、PHP が apache モジュールとしてコンパイルされてい + る場合、この指定は動作しません。この問題は、ファイル名の指定を + スキップし、pdfドキュメントを出力するために + cpdf_output_buffer を使用することにより解 + 決することができます。 + + - cpdf_set_word_spacing, - cpdf_set_leading も参照下さい。 + cpdf_close, + cpdf_output_bufferも参照下さい。 - + - cpdf_set_word_spacing - 単語間の間隔を設定する + cpdf_output_buffer + pdf ドキュメントをメモリバッファに出力する