0

currently figured out how to implement the FPDI Class from https://manuals.setasign.com/fpdi-manual/v2/ into my laravel project. Now I think I can execute some of the method, but currently getting undefined method for the most important one:

    $pdf2 = new Fpdi();
    $path2 = public_path() . '/storage/Template/testpdf3.pdf';
    $pdf2->setSourceFile($path2);
    $tplIdx = $pdf2->importPage(1);
    $pdf2->useTemplate($tplIdx, 10, 10, 100);
    $pdf2->Output(); -> this one getting undefined Method. 

The other method are all okay. Do you have any Idea? Thanks!

Nil
  • 1,209
  • 9
  • 20
JrWebDev
  • 128
  • 9
  • It seems that the method is working. Do you have any idea why VSC is showing me this error? – JrWebDev Jan 07 '23 at 22:48
  • Which plugin are you using on vscode? Also, can you install **laravel-ide-helper** (https://github.com/barryvdh/laravel-ide-helper) and running `php artisan ide-helper:generate` command? – cengsemihsahin Jan 07 '23 at 23:31

1 Answers1

0

Thanks Which plugin are you using on vscode? Also, can you install laravel-ide-helper (github.com/barryvdh/laravel-ide-helper) and running php artisan ide-helper:generate

JrWebDev
  • 128
  • 9