Skip to content

fix(web-app-pdf-viewer): [OCISDEV-878] display open button on iOS/iPadOS#13816

Open
LukasHirt wants to merge 2 commits into
masterfrom
fix/ios-pdf-viewer
Open

fix(web-app-pdf-viewer): [OCISDEV-878] display open button on iOS/iPadOS#13816
LukasHirt wants to merge 2 commits into
masterfrom
fix/ios-pdf-viewer

Conversation

@LukasHirt
Copy link
Copy Markdown
Collaborator

Description

On iOS/iPadOS, we now display a button to open the PDF file in the browser instead of the native PDF viewer. This is a workaround to avoid issues with the native PDF viewer on iOS/iPadOS.

Related Issue

Motivation and Context

On iOS/iPadOS, the object/iframe approach does not fully work because it always renders only the first page. This makes the viewer unusable. To work around this, an open button allows user to simply open the PDF in a new tab where it works as expected.

How Has This Been Tested?

  • test environment: iPad Pro 11 inch 4th generation v26.1 & iPhone 16 v26.5 and macos
  • test case 1: open pdf via the button
  • test case 2: open pdf on desktop via object

Screenshots (if appropriate):

B46EEC04-912F-407F-B555-B4FEDDDB02E4_4_5005_c

On iOS/iPadOS, we now display a button to open the PDF file in
the browser instead of the native PDF viewer. This is a workaround
to avoid issues with the native PDF viewer on iOS/iPadOS.

Signed-off-by: Lukas Hirt <info@hirt.cz>
@LukasHirt LukasHirt requested a review from mzner May 28, 2026 09:34
@LukasHirt LukasHirt self-assigned this May 28, 2026
@LukasHirt LukasHirt enabled auto-merge (squash) May 28, 2026 09:38
@LukasHirt LukasHirt disabled auto-merge May 28, 2026 09:54
Signed-off-by: Lukas Hirt <info@hirt.cz>
@LukasHirt
Copy link
Copy Markdown
Collaborator Author

@mzner I added some unit tests. Could you please review the latest changes? I kept them in separate commit for now so that it's easier to find them.

@LukasHirt LukasHirt requested a review from mzner May 28, 2026 09:59
@sonarqubecloud
Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
40.9% Condition Coverage on New Code (required ≥ 50%)

See analysis details on SonarQube Cloud

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[OCISDEV-878] Mobile public PDF links make multi-page PDFs look like one-page files

2 participants