$html2pdf->Output('example.pdf', 'FI'); the file doesn't save in the right folder

56 Views Asked by At

Using html2pdf, i need to save the generated file.pdf in my folder (not the same than my file.php) AND display it on the screen with the same action.

  • When i did $html2pdf->Output('example.pdf', true); i could display it well.
  • When i did $html2pdf->Output('absolute/path/example.pdf', 'F'); i could save it well.
  • But with $html2pdf->Output('absolute/path/example.pdf', 'FI'), whick it suppose to do the combination (true + F), i can display it and i can save it but in the same folder than file.php and with this name : absolutepathexample.pdf.

I did't find in the docs or in any other site an example with 'FI' used. Any idea ?

0

There are 0 best solutions below