php word Invalid image: zip:///tmp/php5dJhEJ#word//media/image4.png

30 Views Asked by At

As I am using phpword to textualize a word it shows Invalid image: zip:///tmp/php5dJhEJ#word//media/image4.png

i expect the file to be loaded

some file work but most files show this error

is there any way to get sure that it will work with all documents

i used this file and a very basic installation Just composer install in PHP laravel using:

$phpWord = PhpWordIOFactory::load($filePath);

the issue persists with most files with images

I tried to investigate the library code

and i am not sure But having 3 "///" and "word//" instead of "word/" seems suspicious

I couldn't follow the code furthermore

also it is suspicious that it happens with most files

not all files

Maybe the source type of the image(link or from the device (embedded))

any help will be appreciated Also if i should provide more details or code i will be happy to do

0

There are 0 best solutions below