PHP&PDF

| 2 Comments | 1 TrackBack

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

OScommerce
網路甘仔店 KMD
永益行就是用OScommerce所架的
PDFLib
FPDF

1 TrackBack

使用 FPDF 來產生 PDF 檔案 from 【玄德雅舍】如意齋 on September 19, 2005 1:32 AM

看了Philipz學習日誌的介紹,發現這個好用的 PDF 產生工具,在 Web Base 的程式中,多了一個強有力的列印輔助工具。(筆者至截稿時間尚未試用實作,先記下來囉!) 網址:http://www.fpdf.org/ ... Read More

2 Comments

請問一下,為什麼我一用
$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向您告知。

Leave a comment

October 2008

Sun Mon Tue Wed Thu Fri Sat
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31  

Archives

Pages

Powered by Movable Type 4.21-en

About this Entry

This page contains a single entry by philipz published on July 7, 2004 2:12 AM.

Zinio Reader was the previous entry in this blog.

Matlab7 is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.