Skip to content

Instantly share code, notes, and snippets.

@rdtsc
Created March 28, 2016 11:31
Show Gist options
  • Save rdtsc/24cf8abc4fff32e69e47 to your computer and use it in GitHub Desktop.
Save rdtsc/24cf8abc4fff32e69e47 to your computer and use it in GitHub Desktop.
NW.js PDF Reader Test
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>NW.js PDF Test</title>
<style>
html, body, object {
margin: 0;
padding: 0;
width: 100%;
height: 100%;
position: fixed;
}
</style>
</head>
<body>
<!-- Base64-encoded version of the 138 byte variant from: https://stackoverflow.com/questions/17279712/what-is-the-smallest-possible-valid-pdf#answer-17280876 -->
<object type="application/pdf" data="data:application/pdf;base64,JVBERi0xLjANCjEgMCBvYmo8PC9QYWdlcyAyIDAgUj4+ZW5kb2JqIDIgMCBvYmo8PC9LaWRzWzMgMCBSXS9Db3VudCAxPj5lbmRvYmogMyAwIG9iajw8L01lZGlhQm94WzAgMCAzIDNdPj5lbmRvYmoNCnRyYWlsZXI8PC9Sb290IDEgMCBSPj4="></object>
</body>
</html>
{
"name": "nwjs",
"main": "index.html"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment