Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't load preview images for shared PDFs #4

Closed
ole opened this issue Jul 28, 2019 · 1 comment
Closed

Can't load preview images for shared PDFs #4

ole opened this issue Jul 28, 2019 · 1 comment
Labels
bug Something isn't working

Comments

@ole
Copy link
Collaborator

ole commented Jul 28, 2019

Steps to reproduce:

  1. Open Safari in iOS 13 and open a web page.
  2. Open the share sheet and tap Options > Send as PDF
  3. Share to Share Inspector. The preview image cell displays an error.

(See #1 for a screenshot.)

@ole ole added the bug Something isn't working label Jul 28, 2019
@ole
Copy link
Collaborator Author

ole commented Dec 26, 2019

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.

@ole ole closed this as completed Dec 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant