How to display PDF file in Yii2 web app page view?

I have one text field for storing images named ‘audit_report’.I stored PDF files in folder and saved file name in db.I could display jpeg and png files.But how to display PDF file?

In my Yii1 site, I have some static pdf’s and clicking a link to the file opens them in the browser. I don’t know under what scenario you are displaying yours, but I would guess that in some controller action you would call

return $this->render($yourpath."/".$yourpdf);

You may need to customize a layout for this to work.