pragathyt's avatar

How to convert array to excel and download using maatwebsite/excel or any other way

laravel version: 5.8 maatwebsite/excel version: ~2.1.0 our requirement is upload a pdf file and display in grid in laravel view

our pdfs are unstructured. We have used jexcel library and pdfparser api.

extract the contents from pdf using pdfparser api and save them in output.xlsx file display the output.xlsx contents to laravel view using jexcel

We have done upto extracting the contents of pdf and store them in array. but not able to write them in a excel. FYI, here am using maatwebsite/excel. I got these errors "ReflectionException (-1) Class App\Http\Controllers\PdfparserController does not exist"

If needed i can post my code also.

Thanks in advance!

0 likes
2 replies
pragathyt's avatar

I have done the changes as given in the link u mentioned.

This is my controller code

Please or to participate in this conversation.