Revision [823]

Last edited on 2009-05-20 11:56:14 by FsseInfo
Additions:
==write all pages of one PDF on top of each other with offset into a single PDF==
Deletions:
==write all pages of one PDF on top of each other into a single PDF==


Revision [822]

Edited on 2009-05-20 11:38:33 by FsseInfo
Additions:
==split multipage PDF into multiple PDFs==
require_once 'tcp/tcpdf.php';
require_once 'fpd/fpdi2tcpdf_bridge.php';
require_once 'fpd/fpdi.php';
for ($i=1 ; $i <= 10 ; $i++)
$pdf = new FPDI('L','pt','A2');
$pdf->addPage();
$pc = $pdf->setSourceFile("in.pdf");
$pg = $pdf->importPage($i);
$wh = $pdf->useTemplate($pg);
var_dump($wh);
$pdf->Output("$i.pdf",'F');
unset($pdf);


Revision [821]

Edited on 2009-05-20 10:33:26 by FsseInfo
Additions:
[[http://www.setasign.de/support/manuals/fpdi/introduction/ FPDI]] extends FPDF-TPL to provide PDF page importing
Deletions:
[[http://www.setasign.de/support/manuals/fpdi/introduction/ FPDI]] extends TCPDF to provide PDF page importing


Revision [820]

Edited on 2009-05-20 10:31:52 by FsseInfo

No Differences

Revision [819]

Edited on 2009-05-20 10:29:00 by FsseInfo
Additions:
==write first page of five PDFs on top of each other into a single PDF==
Deletions:
==write first pageof five PDFs on top of each other into a single PDF==


Revision [818]

Edited on 2009-05-20 10:28:30 by FsseInfo
Additions:
===Examples===
==write first pageof five PDFs on top of each other into a single PDF==
function inc($pdf,$file) {
for ($i=1 ; $i <= 6 ; $i++) {
==write all pages of one PDF on top of each other into a single PDF==
$pc = $pdf->setSourceFile("in.pdf");
$pg = $pdf->importPage($i,'/MediaBox');
$pdf->useTemplate($pg,0,0);
$pdf->Output('out.pdf','F');
Deletions:
===Example===
function inc($pdf,$file)


Revision [816]

Edited on 2009-05-20 10:08:40 by FsseInfo
Additions:
>>====PHP PDF Templates and PHP PDF Importing====
You can use the TCPDF and FPDI libraries to import PDF pages from one PDF into another PDF.
require_once 'tcpdf/tcpdf.php';
require_once 'fpdf/fpdi2tcpdf_bridge.php';
require_once 'fpdf/fpdi.php';
Deletions:
>>====PHP PDF Templates and PDF Importing====
<?php
include_once 'tcpdf/tcpdf.php';
include_once 'fpdf/fpdi2tcpdf_bridge.php';
include_once 'fpdf/fpdf_tpl.php';
include_once 'fpdf/fpdi.php';
?>


Revision [760]

Edited on 2008-10-02 16:10:42 by FsseInfo
Additions:
>>http://www.setasign.de/support/manuals/fpdf-tpl/
http://www.setasign.de/support/manuals/fpdi/
>>====PHP PDF Templates and PDF Importing====
Deletions:
====PHP PDF Templates and PDF Importing====


Revision [755]

The oldest known version of this page was created on 2008-10-02 16:05:24 by FsseInfo
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki