Skip to main content
Participant
March 13, 2024
Question

Viewer API .gotoLocation stopped working suddenly

  • March 13, 2024
  • 1 reply
  • 256 views

Hi team, 

As given the post https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/how-to-open-pdf-with-jump-to-particular-page-in-embed-adobe-api/td-p/384277 

I used the view API .gotoLocation() method to navigate to a particular page when the pdf loaded in the page. 

 

Below is my code 

 pdfFilePromise.then(adobeViewer => {
          console.log('file rendered')
          if (this.item.pageId) {
            console.log('opening page', this.item.pageId)
            adobeViewer.getAPIs().then((apis: any) => {
              apis.gotoLocation(this.item.pageId)
                .then(() => console.log("Page opening Success"))
                .catch((error: any) => console.log('Page opening error', error));
            });
          }
}

It works fine from last 3 months. But suddenly today it stopped working. The PDF is loading successfully, but it is not moving to the page.
 
It stopped in production environment even we didn't do any deployments in prod from last 1 month. 
 
Is there any changes in adboe side? Can you please suggest? 
    This topic has been closed for replies.