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

PDF Embeds: file loads incorrectly on iOS #51664

Closed
liviopv opened this issue Apr 3, 2021 · 7 comments
Closed

PDF Embeds: file loads incorrectly on iOS #51664

liviopv opened this issue Apr 3, 2021 · 7 comments
Assignees
Labels
Build Maintenance Build Group maintenance tasks [Feature] Media The media screen in Calypso, general media management, or integration with third party media. [Pri] High Address as soon as possible after BLOCKER issues [Type] Bug User Report This issue was created following a WordPress customer report

Comments

@liviopv
Copy link

liviopv commented Apr 3, 2021

Steps to reproduce the behavior

  1. Embed a PDF file on a post or page https://wordpress.com/support/embedding-a-pdf-file/
  2. Open the page/post on an iOS device

What I expected to happen

The PDF should load as an embed as it does on desktop, or it should load as a downloadable link like on Android

What actually happened

The file displays only the first page of the PDF, with no option to scroll on multi-page files. The content of the PDF is displayed against the site's background, ignoring the PDF's background.

Screenshot
Screenshot: https://d.pr/i/N8UjSV

Pages:

Browser / OS version

Tested on an iPad Air 4 running iOS 14.4. Chrome and Safari apps in their latest versions.

Is this specific to the applied theme? Which one?

All themes

Does this happen on simple or atomic sites or both?

Both

Level of impact

Medium. It handles PDF embeds (not common) unusable on an entire operating system (very common).

Reproducibility

Consistent

@rw-ye
Copy link

rw-ye commented Nov 14, 2021

Customer report of this issue here: 4451703-zd-woothemes

@rw-ye rw-ye added User Report This issue was created following a WordPress customer report [Pri] High Address as soon as possible after BLOCKER issues labels Nov 14, 2021
@Robertght
Copy link

Still an issue.
I tested with on a iPad Pro with iOS 15, Chrome and Safari.

@brookewp
Copy link
Contributor

Another report here: hc-32877576

@thekingsprojects
Copy link

Another here: 4555202-zen

@cometgrrl cometgrrl added the [Feature] Media The media screen in Calypso, general media management, or integration with third party media. label Aug 2, 2022
@vindl vindl added the Build Maintenance Build Group maintenance tasks label Sep 20, 2022
@sejas sejas self-assigned this Oct 31, 2022
@sejas
Copy link
Member

sejas commented Dec 7, 2022

I've been testing the issue. Here are my findings.
The issue comes from WPcore/Gutenberg and the current limitations to rendering PDF previews on mobile devices.

There is a reported issue on Apple's Developer Forum about this limitation on iOS.
https://developer.apple.com/forums/thread/649982
I've tried using only the slashes without https:, and the problem persists.

Testing on Android, I can see an empty space instead of the PDF preview or the first-page image.

I've also found this interesting conversation in the original PR:

Screenshots

iOS Android
ios android

The Preview can be disabled, showing only the "download" buttons.
Screenshot 2022-12-07 at 15 45 26

I've created this issue on Gutenberg's repo: WordPress/gutenberg#46382

@liviopv, is it ok to close this issue in favor of the new one on Gutenberg?

@github-actions
Copy link

github-actions bot commented Dec 7, 2022

Support References

This comment is automatically generated. Please do not edit it.

  • 4451703-zen
  • 4555202-zen

@liviopv
Copy link
Author

liviopv commented Dec 8, 2022

@sejas yes, sounds like a good option! Closing for now.

@liviopv liviopv closed this as completed Dec 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Build Maintenance Build Group maintenance tasks [Feature] Media The media screen in Calypso, general media management, or integration with third party media. [Pri] High Address as soon as possible after BLOCKER issues [Type] Bug User Report This issue was created following a WordPress customer report
Projects
None yet
Development

No branches or pull requests

8 participants