AyRestaurant Posted January 17, 2011 Share Posted January 17, 2011 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!! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.