FPDI - SELECT WHICH PDFS TO SHOW?

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!! :smiley:

Sponsor our Newsletter | Privacy Policy | Terms of Service