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

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

New Here ,
Feb 03, 2022 Feb 03, 2022

Copy link to clipboard

Copied

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.

TOPICS
PDF Embed API , PDF Services API

Views

345

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 Expert , Feb 23, 2022 Feb 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.

 

Votes

Translate

Translate
Community Expert ,
Feb 23, 2022 Feb 23, 2022

Copy link to clipboard

Copied

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.

 

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
New Here ,
Feb 24, 2022 Feb 24, 2022

Copy link to clipboard

Copied

LATEST

Thank you very much ^^

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