Jump to content

FPDI - SELECT WHICH PDFS TO SHOW?


AyRestaurant

Recommended Posts

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

Link to comment
https://forums.phpfreaks.com/topic/224671-fpdi-select-which-pdfs-to-show/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.