Skip to main content
Participant
September 23, 2020
Question

PDF Embed API - Open Web Page dialog positioning and Pop-ups blocking

  • September 23, 2020
  • 2 replies
  • 1487 views

Greetings!

 

I have a few questions about PDF Embed API (embed mode - IN_LINE):

  1. When clicking the link inside embed PDF document, the "Open Web Page" dialog appears, but its positioning is poor - it appears too high (out of user view) and the user needs to scroll up to see it. Can position of this dialog be modified?
  2. "Open Web Page" dialog has the button "Open Link". After clicking on it Chrome browser is blocking it (pop-up blocked dialog appears). How can this be fixed? Is there any solution (e.g, in JS - any event so I can get an URL from this dialog)?

 

Thanks in advance!

    This topic has been closed for replies.

    2 replies

    Joel Geraci
    Community Expert
    Community Expert
    September 23, 2020

    Can you share the site that shows the issue?

    Nazar5C0FAuthor
    Participant
    September 24, 2020

    Page with embed PDF - https://www.allot.com/security-for-smb-position-paper/
    Links in the embed PDF can be found on pages 12 and 13.

    Joel Geraci
    Community Expert
    Community Expert
    September 24, 2020

    Ok - I see. The top of the dialog is aligned with the top scroll position which puts 1/2 of it under your static header. I'd consider this a UI bug in the viewer but we'll see what Adobe says. Until it's fixed, you might consider listening for "HYPERLINK_OPEN" then hiding the static header allowing the user to click the button then showing it on the next "PREVIEW_PAGE_VIEW_SCROLLED" event, show it again

    Adobe Employee
    September 23, 2020

    Thanks for using PDF Embed API. We appreciate you taking the time to report the issues. We will look into this on priority.

    Participant
    October 6, 2020

    On a related point - if the pdf in question has permission to open weblinks (for example from certain domains, or all), can you turn off the open link dialogue such that the link goes direct to the target?

    Participant
    October 8, 2020

    In addition when the site a page in question is displayed on a portrait screen the dialogue is hidden / does not appear and the page freezes when you try to activate a weblink...  See https://www.atlanticshoresseakayakguide.co.uk/events.html for an example demonstrating this.