You have to include the PDF embed JavaScript in the web page that shows the PDF. See the complete documentation at Adobe Developers - PDF Embed API | Embed PDF in HTML | Adobe Document Services.
Since the embed code runs from within a web page only, then you would have already sought consent from the user when the web page is shown.