Fpdi-import existing PDF documents into fpdf
Fpdi is a collection of PHP classes facilitating developers to read pages from existing PDF documents and use them as templates infpdf, which was developed by Olivier plathey. apart from a copy of fpdf, fpdi does not require any special PHP extensions.
Since version 1.2.1, fpdi only supports the 1.6 version of fpdf.
As of version 1.2.1 fpdi can also be used with tcpdf.
Fpdi is developed by setasign-Jan slabon-and is published under the Apache software license, version 2.0.
The usage is very easy: Open the document, put a page into a template, and use it like an image!
|
1 |
<? PHP |
2 |
Require_once ('fpdf. php '); |
3 |
Require_once ('fpdi. php '); |
4 |
|
5 |
$ PDF = & New fpdi (); |
6 |
|
7 |
$ Pagecount = $ PDF-> setsourcefile('testdoc.pdf '); |
8 |
$ Tplidx = $ PDF-> importpage (1, '/mediabox '); |
9 |
|
10 |
$ PDF-> addpage (); |
11 |
$ PDF-> usetemplate ($ tplidx, 10, 10, 90 ); |
12 |
|
13 |
$ PDF-> output('new000000', 'D '); |
|
View plain | print |? |Run |
About
PDF-parser!
Fpdi-downloads
Fpdi requires f1__tpl-so you shoshould Download both
Packages. Notice the compatibility information!
New fpdi PDF-parser is available!
Download fpdi
Fpdiversions/downloads: version 1.4 (Release Date: 2010-11-12)
Filename |
Download |
FPDI-1.4.zip |
Zip tgz tar |
Show older versions
Download fpdf_tpl
F1__tplversions/downloads: version 1.2 (Release Date: 2010-11-12)
Filename |
Download |
FPDF_TPL-1.2.zip |
Zip tgz tar |
Show older versions Donate