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

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -