Created
May 14, 2020 19:27
-
-
Save JamoCA/978b092f1d8b798c2651da0bf6b2efce to your computer and use it in GitHub Desktop.
Full Page HTML/CSS/SVG Demo to generate PDFs using CFDocument, CFHTMLTOPDF & WKHTMLTOPDF
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Full Page HTML/CSS/SVG Demo to generate PDFs using CFDocument, CFHTMLTOPDF & WKHTMLTOPDF --> | |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title>SVG Demo</title> | |
<style> | |
body {width:8.5in; height:11in; padding:0; margin:0;} | |
.logo1 {width:8in; height:8in; margin:auto;} | |
.logo1 img {width:100%; height:100%;} | |
.centered {position:fixed; top:50%; left:50%; margin-top:-400px; margin-left:-400px;} | |
</style> | |
</head> | |
<body> | |
<div class="logo1 centered"> | |
<img src="https://www.sunstarmedia.com/webart/SunStarLogo.svg" alt="SunStar"> | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment