• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Stuck at "Opening Document 100%"

Community Beginner ,
Jan 25, 2024 Jan 25, 2024

Copy link to clipboard

Copied

Hello,

I am trying out the PDF Embed API. It has mostly been great, but I am encountering an issue of opening documents on mobile.

Attached are two screenshots, one from desktop which works perfectly. And on mobile (at least Android), which gets stuck on "Opening Document 100%" until eventually quitting.


This website is open source, you can see the code here:
TheAntiCarCollective.github.io/pages/modules/links.ts at a37710ac6ef7c5c84e99433c47e04308cf1a1418 · ...
A link to test with:
https://anticar.org/?link=PdfLink-justin-tyndall-the-effect-of-front-end-vehicle-height-on-pedestria...

The PDF it's pulling:
justin-tyndall-the-effect-of-front-end-vehicle-height-on-pedestrian-death-risk.pdf (anticar.org)

Any leads would be appreciated. Thank you.

TOPICS
Bug , PDF Embed API

Views

780

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Beginner , Jan 25, 2024 Jan 25, 2024

That indeed was the problem. So the solution is to either not have

hasReadOnlyAccess: true

 or, if you do, make sure you have

showAnnotationTools: false

For previewFile options (second parameter). Known working version:
TheAntiCarCollective.github.io/pages/modules/links.ts at 9e0a9082ecc62915858804890018a2ce89cc3f3a · TheAntiCarCollective/TheAntiCarCollective.github.io

Votes

Translate

Translate
Community Beginner ,
Jan 25, 2024 Jan 25, 2024

Copy link to clipboard

Copied

Something interesting I just discovered is that when I set the browser to emulate a mobile device I see a new error:

Commenting is not enabled in this document.

 


Is this because I have:

hasReadOnlyAccess: true

?

And if so, is that intended?

msedge_FXxz48EqjB.png

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jan 25, 2024 Jan 25, 2024

Copy link to clipboard

Copied

LATEST

That indeed was the problem. So the solution is to either not have

hasReadOnlyAccess: true

 or, if you do, make sure you have

showAnnotationTools: false

For previewFile options (second parameter). Known working version:
TheAntiCarCollective.github.io/pages/modules/links.ts at 9e0a9082ecc62915858804890018a2ce89cc3f3a · ...

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources