Copy link to clipboard
Copied
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!
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.
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
I found some badly formed html in our template and it's working fine now. Thanks again for getting back to us so fast.
Copy link to clipboard
Copied
Are the siblings getting removed from the HTML DOM or are they just not visible?