I checked the code and changed some code. Please check on github!
Now images will close their streams by default. If you want render an rtf more than once, you can call $rtf->getContent(false), $rtf->save($file, false), or $rtf->sendFile($filename, false) to leave the image streams open.
Hope this helps you.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Need more details. Do you have code that reproduces the error? And what error do you get?
I checked the code and changed some code. Please check on github!
Now images will close their streams by default. If you want render an rtf more than once, you can call $rtf->getContent(false), $rtf->save($file, false), or $rtf->sendFile($filename, false) to leave the image streams open.
Hope this helps you.
Great thanks for your quick correction ! It work nice.