Copy link to clipboard
Copied
Hi!
I am using the PDF embed API on a website and have noticed some odd behaviour on at least one of the pages were I am using it.
Whenever somone goes to the page, apparently the PDF content doesn't load. But if yo then refresh the page it not loads the content correctly.
Have I messed up something or am I missing something? Very open to suggestions here.
The page is at: https://www.kd.dk/idepolitik/
Ok, I _can_ see it. But I'm wondering if the other errors on the page are breaking things. Best I can suggest is to try to slim down the page and remove your other JS to see if that helps, and that may expose the conflict.
Copy link to clipboard
Copied
I'm not seeing it at all. I do see an error in the console:
Looking at view source, I see you include the library, but I can't tell where you use the embed.
Copy link to clipboard
Copied
Ok, I _can_ see it. But I'm wondering if the other errors on the page are breaking things. Best I can suggest is to try to slim down the page and remove your other JS to see if that helps, and that may expose the conflict.
Copy link to clipboard
Copied
I got it to work by copying and pasting the code into the console. I think the issue may be that you are listening for adobe_dc_view_sdk.ready and it may have already fired. I'd suggest this. Look at my blog post here, https://medium.com/adobetech/tips-and-tricks-for-working-with-adobe-pdf-embed-and-services-ce685594b... and scroll down to this section, Adobe PDF Embed and Setup, and I detail how to handle this issue.
Copy link to clipboard
Copied
Thanks Raymond, I will have a look later today (1:15 am local time here) and will post back. Was a bit of a pain getting it to work with Divi in the first place, but we did get that solved, but a short while later this popped up.
I will post back and follow up.
Copy link to clipboard
Copied
Hi Raymond,
Thanks a lot for your help on this. Turned out those errors were indeed a clue as to the issue. Turned out the new plugin had been installed and this caused a conflict with the existing implementations on the site. After having that plugin removed everything actually resumed "normal operations"..
I love that a Wordpress plugin has been made (just hope Divi will find a way to incorporate it in their solutions as well, but that's up to them. Great work from Adobe in supporting the Wordpress community and creators)!