FPDI - SELECT WHICH PDFS TO SHOW

Posted by NORM on Stack Overflow See other posts from Stack Overflow or by NORM
Published on 2011-01-17T04:48:19Z Indexed on 2011/01/17 4:53 UTC
Read the original article Hit count: 285

Filed under:
|
|
|
|

IS THERE A WAY FOR A OPTION TO SELECT WHICH PDFS TO SHOW WITH THE FPDI FUNCTION?

THIS IS THE REGULAR CODE:

$pdf->AddPage(); // set the sourcefile $pdf->setSourceFile('h.pdf'); // import page 1 $tplIdx = $pdf->importPage(1); // use the imported page and place it at point 10,10 with a width of 100 mm $pdf->useTemplate($tplIdx, 0, 0, 0);

Is there a way to make this $pdf->setSourceFile('h.pdf'); a option for users who visit the website.

For example: have - $pdf->setSourceFile('h.pdf'); & $pdf->setSourceFile('g.pdf'); - then let the visitor select which one to include in the pdf via fpdi.

I would prefer something like a input.

Any ideas?? or something similar???

Help is very much appreciated!! :D

© Stack Overflow or respective owner

Related posts about pdf

Related posts about fpdf