google pdf iframe viwer

C++
<iframe src="https://docs.google.com/gview?url={magical url that works}"></iframe>
Source

Also in C++: