php - How can I include the content from an existing pdf into my generated pdf? -
i'm using fpdf script create pdf sql data. want add glossary end of content. looked @ fpdi, can add 1 page pdf. how can add pages?
from fpdi documentation... note first parameter.
fpdi::importpage()
description
class fpdi extends fpdf_tpl { mixed importpage ( integer $pageno[, string $boxname='/cropbox'] ) } transforms source page fpdf_tpl template , returns id of created "template" (or page in case).
parameters
$pageno
- the page number import.
$boxname
the box should used display imported page.
possible values are:
- /mediabox
- /bleedbox
- /trimbox
- /cropbox
- /artbox
if box not found, fpdi it's parent box , use instead. can check box imported fpdi::getlastusedpagebox().
return values
if page imported correctly method return id of template (page) use usetemplate(). if define wrong box in 2nd parameter method return false
Comments
Post a Comment