Can't load preview images for shared PDFs
Closed this issue · 1 comments
ole commented
Steps to reproduce:
- Open Safari in iOS 13 and open a web page.
- Open the share sheet and tap Options > Send as PDF
- Share to Share Inspector. The preview image cell displays an error.
(See #1 for a screenshot.)
ole commented
This seems to be an issue with Safari and not a ShareInspector bug. NSItemProvider.loadPreviewImage
returns an error when loading the preview image for a PDF in Safari:
Error Domain=NSItemProviderErrorDomain Code=-1000 "Cannot load preview." UserInfo={NSLocalizedDescription=Cannot load preview.}
We can't do anything about this.
On the other hand, sharing a PDF file from the Files app doesn't provide a preview image at all (but also no error), and sharing a PDF file from PSPDFKit's PDF Viewer app does provide a working preview image.