
What is FPDF?
FPDF is a PHP class which allows to generate PDF files with pure PHP, that is to say without using the PDFlib library. F from FPDF stands for Free: you may use it for any kind of usage and modify it to suit your needs.
FPDF has other advantages: high level functions. Here is a list of its main features:
- Choice of measure unit, page format and margins
- Page header and footer management
- Automatic page break
- Automatic line break and text justification
- Image support (JPEG, PNG and GIF)
- Colors
- Links
- TrueType, Type1 and encoding support
- Page compression
FPDF requires no extension (except zlib to activate compression and GD for GIF support). It works with PHP 4 and PHP 5 (the latest version requires at least PHP 4.3.10).
The tutorials will give you a quick start. The complete online documentation is here and download area is there. It is strongly advised to read the FAQ which lists the most common questions and issues.
A script section is available and provides some useful extensions (such as bookmarks, rotations, tables, barcodes...).
What languages can I use?
The class can produce documents in many languages other than the Western European ones: Central European, Cyrillic, Greek, Baltic and Thai, provided you own TrueType or Type1 fonts with the desired character set. Chinese, Japanese and Korean are supported too.
UTF-8 support is also available.
What about performance?
Of course, the generation speed of the document is less than with PDFlib. However, the performance penalty keeps very reasonable and suits in most cases, unless your documents are particularly complex or heavy.
For any remark, question or problem, you can leave a message on the forum.
You can write to me here .
Tutorials
The different examples rapidly show how to use FPDF. You will find all main features explained.
- Tutorial 1: Minimal example
- Tutorial 2: Header, footer, page break and image
- Tutorial 3: Line breaks and colors
- Tutorial 4: Multi-columns
- Tutorial 5: Tables
- Tutorial 6: Links and flowing text
- Tutorial 7: Adding new fonts and encoding support
http://fpdf.org/
'개발업무' 카테고리의 다른 글
| PHP로 XML-RPC 사용하기 (0) | 2011/05/29 |
|---|---|
| php 파싱 라이브러리 - snoopy (0) | 2010/09/24 |
| PHP 로 PDF를 생성해 보자 (0) | 2010/09/03 |
| CodeIgniter 한국사용자 매뉴얼 (0) | 2010/09/01 |
| smtp를 이용한 메일보내기 (0) | 2010/08/31 |
| Vb.net] Disable/enable Command Prompt, Run, Right Click, Etc (0) | 2010/08/27 |
댓글을 달아 주세요