Hello, I have been struggling in creating thumbnai...
# multiplatform
a
Hello, I have been struggling in creating thumbnail of PDF in IOS, can anyone help for same? Or any suggestions?
f
Does it have to be local and native? There might be a way to do that server-side. Or a way to show it in a WebView.
I’m sadly not familiar with a system to create previews of PDF’s. But I do know there’s a PDF renderer in Google Chrome. A server could run a Chrome instance to get a PDF, and send back a screenshot.
thank you color 1
a
Looking forward to the server side approach now.
j
https://developer.apple.com/documentation/pdfkit/pdfthumbnailview?language=objc KMP's natural use is to use the native views. Granted, I'm not a Compose guy, so I don't know how that interacts. But if you're using the native views or you can bridge to them, you could get that here. If you want an image specifically, you can draw views to a bitmap IIRC in UIKit.
thank you color 1
a
Noted. Let me try this. Thanks for the help.