Skip to main content
kristyh97773410
Participant
February 3, 2022
Answered

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

  • February 3, 2022
  • 1 reply
  • 547 views

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 has been closed for replies.
Correct answer Joel Geraci

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.

 

1 reply

Joel Geraci
Community Expert
Joel GeraciCommunity ExpertCorrect answer
Community Expert
February 23, 2022

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.

 

กะขะคะงะ231839776gjm
Participant
February 25, 2022

Thank you very much ^^