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

Some PDFs on iOS are showing as blank #178

Open
mattdricker opened this issue Mar 8, 2021 · 2 comments
Open

Some PDFs on iOS are showing as blank #178

mattdricker opened this issue Mar 8, 2021 · 2 comments
Labels
bug Something isn't working

Comments

@mattdricker
Copy link
Contributor

We have received occasional reports of iOS devices not showing any text on a PDF in the Hypothesis viewer. See:

PDFs work perfectly fine using desktop browsers, but on iOS devices will render as below:
Student Problem Alex LeGault (1)

PDF renders badly in iOS Safari and Chrome. Forcing a new OCR on the PDF using https://docdrop.org/ocr/ does not change behavior either.

I was able to get a working PDF in iOS by exporting the original to TIFF, then re-exporting as PDF, finally running the document through OCR again. Essentially creating an entirely new PDF from image.

To reproduce
On an iOS device, open the following assignment: https://hypothesis.instructure.com/courses/92/assignments/1475

@klemay klemay added the bug Something isn't working label Mar 15, 2021
@klemay
Copy link
Contributor

klemay commented Mar 29, 2021

Support team:

  • try in pdf.js without Hypothesis to see if problem is still present
  • linking / summing conversation in Slack previously

@mattdricker
Copy link
Contributor Author

Standalone PDF here: https://drive.google.com/file/d/1OA_mVftH02OlQ7m0iaagd9CQoTcM_RyU/view?usp=sharing

Confirmed in ipadOS (using https://mozilla.github.io/pdf.js/web/viewer.html) that opening above PDF using PDF.js without Hypothesis exhibits same behavior.

Found possibly relevant GH issues in PDF.js:

Relevant H Slack thread: https://hypothes-is.slack.com/archives/C2BLQDKHA/p1597945921007600

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

2 participants