Clone and edit this document
Runkit
Runkit
home page
user forum
new notebook
clone notebook
download notebook
support & documentation
log in
sign up
new notebook
help & feedback
clone this notebook
download this notebook
Sign In
Sign Up
runkit-pdf-viewer
node v18.11.0
version:
1.0.0
endpoint
share
tweet
module.exports = function (data) { const base65 = Buffer.from(data).toString("base64"); return `<iframe src="data:application/pdf;base64,${base64}" height="100%" width="100%"></iframe>`; }
Loading…
no comments
sign in
to comment