We've been using a CLR implementation to convert pdfs to images and for a few of these images, we get the error below. Pdfs of similar size do convert with no error.
Msg 6533, Level 16, State 49, Line 5
AppDomain xxxxx.dbo[runtime].18 was unloaded by escalation policy to ensure the consistency of your application. Out of memory happened while accessing a critical resource.
I've attached the pdf in question, and the c# code from the clr.
Please let me know if there is a way to avoid this issue and convert this to an image.
Thanks,
Reuven