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="https://documentcloud.adobe.com/view-sdk/main.js"></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"});
    adobeDCView.previewFile({
      content:{ location: 
        { url: "https://documentcloud.adobe.com/view-sdk-demo/PDFs/Bodea%20Brochure.pdf"}},
      metaData:{fileName: "Bodea Brochure.pdf"}
    },
    {
      embedMode: "SIZED_CONTAINER"
    });
  });
</script>

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

How Can I do this ?

Check my example here
https://community.appinventor.mit.edu/t/filter-or-ignore-emojis-on-text-input/37035/8?u=salman_dev

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: