Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Oddity when using the PDF embed API

New Here ,
Mar 23, 2023 Mar 23, 2023

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/

TOPICS
PDF Embed API
877
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Adobe Employee , Mar 23, 2023 Mar 23, 2023

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.

Translate
Adobe Employee ,
Mar 23, 2023 Mar 23, 2023

I'm not seeing it at all. I do see an error in the console:

RaymondCamden_0-1679616322752.png

 

Looking at view source, I see you include the library, but I can't tell where you use the embed. 

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Mar 23, 2023 Mar 23, 2023

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Mar 23, 2023 Mar 23, 2023

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Mar 23, 2023 Mar 23, 2023

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Mar 27, 2023 Mar 27, 2023
LATEST

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)!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources