Skip to content
Advertisement

FPDF string output

I use OctoberCms (laravel). This uses own Filesystem https://octobercms.info/docs/services-filesystem-cdn/ That is why I need to take generated $pdf as a string, and than use Storage::put('docs/kek.pdf', $pdf);

JavaScript

But it isn’t works, because Output() anyway returns to $pdf only object. Have you any idea?)

Advertisement

Answer

You have to save the string output that fPDF creates before you can do something with it.

Change:

JavaScript

to:

JavaScript
User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement