Nothing looks wrong but I do not have access to complete module you are using so I can not really tell.
I just added an example to the plugin that exports forum posts. Any forum post that you have you can export with this and if it does contain images they will be exported as well.
See https://github.com/kiklop74/moodle-local_dompdf/blob/master/examples/testimage.php
Make sure that context you use is the right one, make sure that filearea is the right one. See how I create it in my example
I just added an example to the plugin that exports forum posts. Any forum post that you have you can export with this and if it does contain images they will be exported as well.
See https://github.com/kiklop74/moodle-local_dompdf/blob/master/examples/testimage.php
Make sure that context you use is the right one, make sure that filearea is the right one. See how I create it in my example