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

  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''kappa'or die('サーバーに接続できません');
  10.  
  11. //asciiで出力
  12. cssj_set_property($session'output.pdf.compression''ascii');
  13.  
  14. //リソースの指定
  15. cssj_include_resource($session'http://copper-pdf.com/**');
  16. //本文の変換
  17. cssj_format_main($session'http://copper-pdf.com/');
  18.  
  19. //セッションの終了
  20. cssj_close($session);
  21.  
  22. ?>

Documentation generated on Wed, 10 Jun 2009 13:44:39 +0900 by phpDocumentor 1.4.1