Menu

#42 Function addImage() does not free the ressources

v1.3
open
None
5
2014-09-19
2014-09-18
Maneo
No

When I try to remove my temporary resource that was included in a RTF file through function addImage(), I become an error.

Discussion

  • Steffen Zeidler

    Steffen Zeidler - 2014-09-18

    Need more details. Do you have code that reproduces the error? And what error do you get?

     
  • Steffen Zeidler

    Steffen Zeidler - 2014-09-18

    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.

     
  • Maneo

    Maneo - 2014-09-19

    Great thanks for your quick correction ! It work nice.

     

Log in to post a comment.