Adobe PDF Embed seems to always reload the pdf instead of just navigating to the correct page (as changing the page number within the iframe does). Is there a way around this?
Code being used: previewFilePromise.then(adobeViewer => {
adobeViewer.getAPIs().then(apis => {
apis.gotoLocation(n)
.then(() => console.log("Success"))
.catch(error => console.log(error));
});
});
I haven't seen that behavior but I'm approaching the problem a bit differently. I get the APIs only once and then reuse the object as shown below. A link to a functioning example is after the code snippet.
Full Codepen