Fpdi-import existing PDF documents into fpdf

Source: Internet
Author: User
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.