spatie / pdf-to-text

Extract text from a pdf

Home Page:https://freek.dev/348-a-package-to-extract-text-from-a-pdf

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

get text of docx file

umairasif opened this issue · comments

I am unable to read the file with docx extension. Things are working fine with doc files. Following is the code through which I am getting the text
$file_content = Pdf::getText($user_data['profile_path'], env('WORDTOTEXT_PATH'));
I have set WORDTOTEXT_PATH as enviroment variable. I am using the exe file of antiword
WORDTOTEXT_PATH='C:\Program Files\Git\mingw64\bin\antiword'

Docx is not supported

@freekmurze what will be the proper way to handle this issue?