2017 © Pedro Peláez
 

library fpdi

FPDI is a collection of PHP classes facilitating developers to read pages from existing PDF documents and use them as templates in FPDF.

image

sogevia/fpdi

FPDI is a collection of PHP classes facilitating developers to read pages from existing PDF documents and use them as templates in FPDF.

  • Monday, May 11, 2015
  • by valibaux
  • Repository
  • 3 Watchers
  • 0 Stars
  • 412 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 48 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

FPDI - Free PDF Document Importer

Latest Stable Version Total Downloads Latest Unstable Version License, (*1)

A clone to FPDI, (*2)

FPDI is a collection of PHP classes facilitating developers to read pages from existing PDF documents and use them as templates in FPDF, which was developed by Olivier Plathey. Apart from a copy of FPDF, FPDI does not require any special PHP extensions., (*3)

As of version 1.2.1 FPDI can also be used with TCPDF., (*4)

Installation

Run the command:, (*5)

$ composer require "setasign/fpdi"

Usage

The usage is very easy: open the document, put a page into a template, and use it like an image!, (*6)

<?php
// ...

use \FPDI;
use \FPDF;

// ...
$pdf = new FPDI();

$pageCount = $pdf->setSourceFile("Fantastic-Speaker.pdf");
$tplIdx = $pdf->importPage(1, '/MediaBox');

$pdf->addPage();
$pdf->useTemplate($tplIdx, 10, 10, 90);

$pdf->Output();

The Versions

11/05 2015

dev-master

9999999-dev https://www.setasign.com/fpdi

FPDI is a collection of PHP classes facilitating developers to read pages from existing PDF documents and use them as templates in FPDF.

  Sources   Download

Apache-2.0

pdf fpdf fpdi

11/05 2015

1.5.3

1.5.3.0 https://www.setasign.com/fpdi

FPDI is a collection of PHP classes facilitating developers to read pages from existing PDF documents and use them as templates in FPDF.

  Sources   Download

Apache-2.0

pdf fpdf fpdi

08/05 2015

1.5.2

1.5.2.0 http://www.setasign.de/

FPDI is a collection of PHP classes facilitating developers to read pages from existing PDF documents. This package contains some special fixes for use with TCPDF.

  Sources   Download

Apache-2.0

The Requires

  • php >=5.3.0

 

pdf fpdi