sungaila / PDFtoImage

A .NET library to render PDF files into images.
https://www.sungaila.de/PDFtoImage/
MIT License
144 stars 14 forks source link

MAUI .NET 7: Converting pdf stream to image in Release mode throws an exception #45

Closed AndriyGlodan closed 9 months ago

AndriyGlodan commented 9 months ago

Hello, I started using your package for converting PDF stream to SKBitmap image. And it works well in Debug mode. But when I installed my app in Release mode, it throws an exception. Here is the stack trace. Any thoughts?

image
sungaila commented 9 months ago

Hi @AndriyGlodan, on which platform is this exception thrown? iOS and Mac Catalyst are not supported right now.

AndriyGlodan commented 9 months ago

It happens on Android 33

AndriyGlodan commented 9 months ago

Do you need a sample project?

sungaila commented 9 months ago

Do you need a sample project?

Sure, a minimal sample project would be much appreciated!

AndriyGlodan commented 9 months ago

Take this one PdfToImageExample.zip

P.s. in debug it works fine, but in release it crashes

sungaila commented 9 months ago

@AndriyGlodan Thanks, I could reproduce this issue and am looking into the cause of this problem.

Edit: Found the cause and will publish a fix later today. I'll ask you to retest this once the new version is uploaded.

AndriyGlodan commented 9 months ago

OK. Thanks a lot!

sungaila commented 9 months ago

PDFtoImage 2.4.2 went live. @AndriyGlodan could you please check if your issue was solved?

Please note that this library does not support iOS/Mac Catalyst yet. This might become a problem if you want to target these platforms with your MAUI app.

AndriyGlodan commented 9 months ago

@sungaila I can approve that it works now. Thank you. One more question. Could you update the PdfToZpl library so it'll use the latest version of the PdfToImage library?

sungaila commented 9 months ago

Could you update the PdfToZpl library so it'll use the latest version of the PdfToImage library?

Already done. ;-)