Skip to main content
Participating Frequently
Sep 13, 2022 4:05 PM UTC
Answered

PDF Embed API - issue with content disappearing

Hello,

 

I am integrating the PDF Embed API into our project. What I am seeing is that after I load the viewer, I can see the PDF fine, but every sibling html element after the container is getting stripped out. For example, say I have this:

<div class="some-content">

  <div id="my-embed-id" class="adobe-dc-view">

  </div>

  <p>Some content here</p>

  <p>More content here</p> 

</div>

 

Once I render a AdobeDC.View and pass the in the id "my-embed-id", the pdf shows but the 2 paragraphs after the embed div get removed from the DOM.

 

Any suggestions?

 

Thank you!

 

This topic is closed to new replies. Start a new post to keep the conversation going.
Raymond Camden
Raymond CamdenCorrect answer
Community Manager
Sep 13, 2022 7:24 PM UTC

That absolutely should not happen. Can you share a URL where I can see it? If it's private, you can email me at jedimaster@adobe.com. 

4 replies

Joel Geraci
Community Expert
Community Expert
Sep 14, 2022 2:39 PM UTC

Are the siblings getting removed from the HTML DOM or are they just not visible?

Translate
Raymond Camden
Community Manager
Raymond CamdenCommunity ManagerCorrect answer
Community Manager
Sep 13, 2022 7:24 PM UTC

That absolutely should not happen. Can you share a URL where I can see it? If it's private, you can email me at jedimaster@adobe.com. 

Translate
gregabyteAuthor
Participating Frequently
Sep 14, 2022 1:56 PM UTC

Thanks for confirming that. I tested it outside my app and this doesn't happen. I'm going to make sure my html is well formed as that might have something to do with it. I will report back.

Translate