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!! Link to comment https://forums.phpfreaks.com/topic/224671-fpdi-select-which-pdfs-to-show/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.