Help in Adobe embed PDF api

Hello Guys I hope you are fine I need help in adding this HTML code to app inventor App

<div id="adobe-dc-view" style="height: 360px; width: 500px;"></div>
<script src=""></script>
<script type="text/javascript">
  document.addEventListener("adobe_dc_view_sdk.ready", function(){
    var adobeDCView = new AdobeDC.View({clientId: "<YOUR_CLIENT_ID>", divId: "adobe-dc-view"});
      content:{ location: 
        { url: ""}},
      metaData:{fileName: "Bodea Brochure.pdf"}
      embedMode: "SIZED_CONTAINER"

you only need to enter the html file into AI2 by uploading it to Media

How Can I do this ?

Check my example here

1 Like

but I need to show Pdf online by this method Can I do it using your way ?

yeah, you just need to do what i did,
then modify your code so you can display the pdf via webview

why do you want to use "embed pdf api" ?

Yeah I tried your way but I didn't manage to do it :sleepy:

it didn't work either

Working OK here on companion: