I tried this code
Notice the // instead of http:// or https://
Ideally, if the page loads via HTTP, it should load the PDF via HTTP, and if the page loads via HTTPS, the PDF source should be HTTPS.
I'm posting here because this code didn't work, even after I changed the GDE Settings "File Base URL" to be blank.
I think this would be a good feature, since the PDF loads via iframe src and an HTTP PDF on a HTTPS page would show an "insecure" warning.
Thank you for this plugin.