0

So my problem is as follows. I have a bunch of articles and every article has a specification sheet.

These sheets are in pdf format and dynamically generated using PHP and the FPDF class. For convenience i would like to automatically generate all articles' (about 200) specification sheets and download them all to a specific file directory.

I tried a solution using PHPs file_get_contents which won't work because the pdf file does not seem to be generated at time of the function call.

I haven't found any suitable solution to this problem so far.

slexo
  • 5
  • 3
  • 1
    Your question is vague, it is unclear what you ask. You claim you tried something, but you do not provide your code. We cannot help with this, sorry. – arkascha Dec 20 '16 at 11:06

1 Answers1

0

To save files to a folder

require('fpdf.php');

//create a FPDF object
$pdf=new FPDF();

$pdf->Output($dir.$filename,'F');

see this question may help you.

Community
  • 1
  • 1
Aabir Hussain
  • 1,161
  • 1
  • 11
  • 29