How to open a pdf file in my webviewer

I made a webviewer application for the so-called GLPI system, however I need to open some attachments that I have in GLPI, and I can’t use the webviewer, can anyone help me?
image

try the example from here https://puravidaapps.com/snippets.php#2pdf

Taifun