Skip to main content
Participating Frequently
September 13, 2022
Answered

PDF Embed API - issue with content disappearing

  • September 13, 2022
  • 2 replies
  • 995 views

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 has been closed for replies.
Correct answer Raymond Camden

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

2 replies

Joel Geraci
Community Expert
Community Expert
September 14, 2022

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

Raymond Camden
Community Manager
Raymond CamdenCommunity ManagerCorrect answer
Community Manager
September 13, 2022

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

gregabyteAuthor
Participating Frequently
September 14, 2022

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.