It appears that you are running out of memory. But the odd part of that exception is that looks like it is happening inside the tiff writer. It might be possible that the tiff coder is being used when the PDF is being written but I cannot find that with a quick look at the code. Maybe you could do some experimenting with the Compression property of the MagickImage. I wonder if setting it to something like RLE will resolve your issue.
↧