最近放暑假,在家幫忙顧店,發現雖然OScommerce很方便,但是Web應用程式對於列印還是相當不方便,且格式跟家裡的估價單也不符合,所以就想到利用PDF來讓估價單自動化,且相當方便就可以控制列印。
ㄧ開始是打算用PDFLib,但是安裝太過繁瑣(我只需要PHP支援),且商業用途要付費,所以就改用FPDF,FPDF相當簡單,只需要一個fpdf.php的檔案,加上又支援中文,所以推薦大家使用FPDF。
這是動態產生的PDF檔案,可以顯示您所用的IP address。
OScommerce
網路甘仔店 KMD
永益行就是用OScommerce所架的
PDFLib
FPDF


請問一下,為什麼我一用
$pdf->SetFont('arial');
這個setfont的函式的時候,會跑出以下錯誤訊息
----------------------------
Warning: setfont(www/font/helvetica.php): failed to open stream: No such file or directory in c:\appserv\www\fpdf.php on line 550
Warning: setfont(www/font/helvetica.php): failed to open stream: No such file or directory in c:\appserv\www\fpdf.php on line 550
Warning: setfont(): Failed opening 'www/font/helvetica.php' for inclusion (include_path='.;c:\php4\pear') in c:\appserv\www\fpdf.php on line 550
FPDF error: Could not include font metric file
----------------------------
而且,如果我要設定include_path='.;c:\php4\pear'是要在那裏設
找遍php.ini跟apache的啟動設定檔,完全沒看到
include_path在那…
可否指點一下
不好意思,最近沒時間幫您。
等到有空閒時,再幫您解決,會寄EMAIL向您告知。