[api-minor] Attempt to reduce memory usage during printing, by always running `cleanup` once rendering has finished
[api-minor] Attempt to reduce memory usage during printing, by always running `cleanup` once rendering has finished

Given that `cleanupAfterRender` is already set for large images, when handling 'obj' messages, this patch *should* thus be safe in general (since otherwise there ought be existing bugs related to cleanup and printing).

timvandermeij/pdf.js,Snuffleupagus/pdf.js,Snuffleupagus/pdf.js,timvandermeij/pdf.js,nawawi/pdf.js,mozilla/pdf.js,mozilla/pdf.js,nawawi/pdf.js,timvandermeij/pdf.js,showpad/mozilla-pdf.js,caremerge/pdf.js,Shoobx/pdf.js,macroplant/pdf.js,xavier114fch/pdf.js,macroplant/pdf.js,mozilla/pdf.js,showpad/mozilla-pdf.js,mainegreen/pdf.js,Shoobx/pdf.js,showpad/mozilla-pdf.js,caremerge/pdf.js,nawawi/pdf.js,Shoobx/pdf.js,mainegreen/pdf.js,macroplant/pdf.js,xavier114fch/pdf.js,Snuffleupagus/pdf.js