20
Views
4
Comments
Solved
[Adobe PDF Embed API] PDF Viewer Loads Then Disappears
adobe-pdf-embed-api
Reactive icon
Forge asset by Matthew Matias
Application Type
Reactive
Service Studio Version
11.54.17 (Build 62610)
Platform Version
11.18.1 (Build 37828)

Hello,

I've been able to implement the extension within my application and have setup the API key just fine however when I load the document on the screen, the viewer appears, I then see the document and toolbar for about a second, and then the viewer goes blank (video attached). Any help would be appreciated. This is happening in the extension demo app as well and in all browsers.

Thanks,

Brendan

Home - Google Chrome 2023-08-03 12-24-25.mp4
UserImage.jpg
Brendan Shott
Solution

Thank you both for the help - checking the browser console I found the following error:

Failed to load resource: the server responded with a status of 401 (Unauthorized)

With that information I was able to search online and figure out that it was most likely an issue with the domain I provided for the API key. I played around with that value a bit and finally have it working (it needed to be more specific than the company domain I provided). 

2023-08-20 04-20-03
RAD Manage

Brendan,

From the video, my guess would be either a javascript error (check your browser console) or an on-after-fetch running and triggering an error on the back end.

If you have error handlers set up in your actions you should be able to see both error types in the ServiceCenter logs.

The forge demo doesn't seem to work at all without login.

2021-02-09 03-17-43
Matthew Matias

Hey Brendan,

I wasn't able to reproduce the error. Do you have a sample oml you could share? I assume you are using the latest version?

Are you able to load another document or another embedded mode e.g. full window?

I see the sample app is out of date. I'll try to update it tomorrow. We are planning to update to the Adobe sdk soon.

Cheers,

Matt

UserImage.jpg
Brendan Shott
Solution

Thank you both for the help - checking the browser console I found the following error:

Failed to load resource: the server responded with a status of 401 (Unauthorized)

With that information I was able to search online and figure out that it was most likely an issue with the domain I provided for the API key. I played around with that value a bit and finally have it working (it needed to be more specific than the company domain I provided). 

2021-02-09 03-17-43
Matthew Matias

Thanks for the update Brendan, Glad you got it working!

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.