サーバー側のファイルを変換する


1 <?php
2 require_once ('../code/cssj_driver.php');
3 header("Content-Type: application/pdf");
4
5 //ドライバの作成
6 $driver = cssj_create_driver_for('localhost', 8099);
7
8 //セッションの開始
9 $session = cssj_create_session($driver, 'user', 'secret') or die('サーバーに接続できません');
10
11 //asciiで出力
12 cssj_set_property($session, 'output.pdf.compression', 'ascii');
13
14 //リソースの指定
15 cssj_include_resource($session, 'http://www.cssj.jp/**');
16 //本文の変換
17 cssj_format_main($session, 'http://www.cssj.jp/');
18
19 //セッションの終了
20 cssj_close($session);
21
22 ?>

Documentation generated on Mon, 7 Nov 2005 19:21:26 +0900 by phpDocumentor 1.2.3