So, the problem I face is like this: I have a layer, which it will be placed on top of a pdf on the page. The PDF is either using to embed, or iframe to include it. Howeve
I just found a solution to this. Use the google pdf viewer in the iframe to display your pdf on the page then it works like any other div.
example: