At some point you might need to diplay a PDF on a Webpage.
And you do not have it as normal URL on your server but as DataUri.
It sounds very easy but in reality is not really.
I would be if Chome would not be dumb.
What we really want is a sandboxed iframe
where a PDF is displayed.
The sandbox is essential to prevent a malicious script to break out to the parent and steal sensitive data.
Warning This is just a little write-up about my experiences and not a full tutorial! Also, I did this a couple of weeks ago, so something might be missing or inaccurate!