Skip to main content
kristyh97773410
Participant
Feb 3, 2022 4:33 PM UTC
Answered

Embed PDF API causes page to jump/focus on the PDF

I have an embedded PDF (embedmode "IN_LINE") and it's located way down the page (out of the viewing area), however the page jumps/focuses on the PDF once it's loaded.

 

This still happens, even with the variable "focusOnRendering: false".

 

I've also set the default PDF reader in Firefox to Adobe PDF, but to no avail.

This topic is closed to new replies. Start a new post to keep the conversation going.
Joel Geraci
Joel GeraciCorrect answer
Community Expert
Feb 23, 2022 4:00 PM UTC

I can't reproduce the behavior you describe. 

The settings should look like this...

 

{ embedMode: "IN_LINE", focusOnRendering: false }

I have a working example at this CodePen.

 

2 replies

Joel Geraci
Community Expert
Joel GeraciCommunity ExpertCorrect answer
Community Expert
Feb 23, 2022 4:00 PM UTC

I can't reproduce the behavior you describe. 

The settings should look like this...

 

{ embedMode: "IN_LINE", focusOnRendering: false }

I have a working example at this CodePen.

 

Translate
กะขะคะงะ231839776gjm
Participant
Feb 25, 2022 4:04 AM UTC

Thank you very much ^^

Translate