PDF viewer does not work!

Hello, I have a problem, because I cant open pdf file. I can only see the local filesystem path. I did everything like this guy in this video, except from bounding local filesystem path to HTML content instead of URL, because I’ve just couldnt do it.
Does anyone knows where is the problem? The webview compotent is just showing a local filesystem path instead of a pdf file.