Problem with pdf_show_boxed()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello, Sir:
   
  I just installed PHP with pdflib :
  --------------------------------------------------------------------
  PHP-4.4.1 
  pdflib PDFlib GmbH Version 6.0.2
  pdflib PECL Version   2.0.3 
  apache 1.3.34
   
  in Liunx FC1.
  ----------------------------------------------------------------------
   
  When I run the script , I got the error messages as following:
   
  ---------------------------------------------------------------------------------------------------------
  Fatal error: pdf_show_boxed(): [2102] PDF_show_boxed: Function not supported for 'CID' in /home/apache/htdocs/004.php on line 8
---------------------------------------------------------------------------------------------------------
   
  Some thing wrong with this function at the 8th parameter, I think:
   >>>>>>pdf_show_boxed($pdf,$text,50,650,150,100,'right','');
   
  if I remove the 8th parameter, It would tell me :
  ---------------------------------------------------------------------------------------------------------
  Warning: pdf_show_boxed() expects exactly 8 parameters, 7 given in /home/apache/htdocs/004.php on line 8
---------------------------------------------------------------------------------------------------------
  What should I do?
  Thanks form Any help. 
   
  ###########################################################
  The code:
  ###########################################################
    $pdf = PDF_new();
   pdf_open_file($pdf,"");
   pdf_begin_page($pdf,595,842); //a4
   $font = pdf_findfont($pdf,"MSung-Light","ETen-B5-H",0);
   pdf_setfont($pdf,$font,12);
   $text="MY TEST WORD";
   pdf_show_boxed($pdf,$text,50,650,150,100,'right','');
   pdf_end_page($pdf);
   pdf_close($pdf);
    $buffer=pdf_get_buffer($pdf);
  $leng = strlen($buffer);
    header ("Cache-Control: must-revalidate, post-check=0, pre-check=0");
  header("Content-type: application/pdf; charset: big5");
  header("Content-Length: $leng");
  header("Content-Disposition: inline; filename=hello.pdf");
  print($buffer);
  pdf_delete($pdf);

___________________________________________________  最新版 Yahoo!奇摩即時通訊 7.0,免費網路電話任你打!  http://messenger.yahoo.com.tw/

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux