html-to-pdf
Version:
A Node HTML to PDF converter using a the Java flyingsaucer library.
25 lines (24 loc) • 521 B
HTML
<html>
<head>
<style>
@page {
size: 8.5in 11in;
margin: 0in;
}
html, body {
width: 8.5in;
height: 11in;
margin: 0;
font-family: "Arial", sans-serif;
}
img {
width: 4in;
}
</style>
</head>
<body>
Look some text! Oh and a cat picture!
<br>
<img src="test/cat.jpg" />
</body>
</html>