{ "html": "\n\n\n \n \n Basic Corporate Letter<\/title>\n <link rel=\"stylesheet\" href=\"style.css\" \/>\n<\/head>\n<body>\n <div>\n <div class=\"logo-area\">\n <div class=\"circle\"><\/div>\n <h1>Company Logo<\/h1>\n <\/div>\n <div class=\"address-area\">\n jane.doe@example.com\n <br \/>\n +49 123 4567 8901\n <br \/>\n www.example.com\n <br \/>\n Busystreet 5 · 00001 Gotham\n <\/div>\n <div class=\"to-address-area\">\n <h3>To<\/h3>\n Max Mueller\n <br \/>\n max.mueller@example.com\n <br \/>\n +49 123 2233 7755\n <br \/>\n Lazyroad 2 · 00002 New Town\n <\/div>\n <div class=\"green-border\"><\/div>\n <div class=\"content\">\n <h1>Lorem ipsum <span class=\"green\">dolor<\/span><\/h1>\n <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Donec enim diam vulputate ut pharetra sit amet aliquam. In cursus turpis massa tincidunt dui ut. Consequat mauris nunc congue nisi vitae suscipit tellus. Volutpat maecenas volutpat blandit aliquam etiam erat. Quis ipsum suspendisse ultrices gravida dictum. Velit ut tortor pretium viverra suspendisse. <\/p>\n <p>Porta non pulvinar neque laoreet suspendisse. Et molestie ac feugiat sed lectus. Morbi tristique senectus et netus et. Facilisis sed odio morbi quis commodo odio aenean sed. <\/p>\n <p>Id semper risus in hendrerit gravida rutrum quisque non. Aenean euismod elementum nisi quis eleifend quam adipiscing vitae proin. Tellus in hac habitasse platea. Tellus elementum sagittis vitae et leo duis ut diam quam. Id interdum velit laoreet id donec. Faucibus in ornare quam viverra orci sagittis eu. <\/p>\n <\/div>\n <div class=\"signature\">\n <img src=\"https:\/\/raw.githubusercontent.com\/azettl\/printcss.examples\/main\/HTML%20Examples\/Company%20Examples\/Letters\/Basic%20Corporate%20Letter\/signature.png\" \/>\n <b>Jane Doe<\/b>\n <br \/>\n <b class=\"green\">Print CSS and Web Development Guru<\/b>\n <\/div>\n <\/div>\n<\/body>\n<\/html>\n", "css": "@import url('https:\/\/fonts.googleapis.com\/css2?family=Poppins:wght@400;500;700&display=swap');\n\nbody{\n\tfont-family: 'Poppins', sans-serif;\n}\n\n@page{\n\tsize:210mm 297mm;\n margin:6cm 3cm 1cm 3cm;\n \n @top-left{\n \tcontent:element(coverLogo);\n }\n \n @top-right{\n content:element(coverAddress);\n }\n \n @top-right-corner{\n content:\"\";\n \tbackground:#000222;\n }\n \n @right-top{\n content:\"\";\n \tbackground:#000222;\n }\n \n @right-middle{\n content:\"\";\n \tbackground:#000222;\n }\n \n @right-bottom{\n content:\"\";\n \tbackground:#000222;\n }\n \n @bottom-right-corner{\n content:\"\";\n \tbackground:#44b75b;\n }\n \n @bottom-right{\n content:\"\";\n \tbackground:#44b75b;\n }\n \n @bottom-center{\n width:210mm;\n content:\"\";\n \tbackground:#44b75b;\n }\n \n @bottom-left{\n content:\"\";\n \tbackground:#44b75b;\n }\n \n @bottom-left-corner{\n content:\"\";\n \tbackground:#44b75b;\n }\n}\n\n.logo-area{\n\tposition:running(coverLogo);\n\tmargin-left:-1.5cm;\n}\n\n.address-area{\n\tposition:running(coverAddress);\n\tmargin-right:1.5cm;\n\ttext-align:right;\n}\n\n.circle{\n\twidth:1cm;\n \theight:1cm;\n \tborder:.4cm solid #44b75b;\n \tborder-radius:100%;\n display:inline-block;\n}\n\n.logo-area h1{\n\tdisplay:inline-block;\n \ttext-transform:uppercase;\n \tcolor:#000222;\n \twidth:5cm;\n \tline-height:1;\n \tmargin-left:0.25cm;\n \tposition:relative;\n top:-.25cm; \n}\n\n.signature{\n \tposition:absolute;\n \tpadding-left:.5cm;\n \tbottom:.4cm;\n \tright:.5cm;\n \tbackground-color:#fff;\n}\n\nimg{\n display:block;\n}\n\n.to-address-area{\n margin-top:-1cm;\n margin-left:-1.5cm;\n}\n\n.content{\n\tpadding:0 1cm 2cm 1cm;\n\tbackground-color:#fff;\n\tposition:absolute;\n\ttop:4cm;\n\tleft:0;\n}\n\n.content h1{\n\tcolor:#000222;\n \tmargin-top:0;\n \ttext-transform: capitalize;\n}\n\n.green{\n\tcolor:#44b75b;\n \tdisplay:block;\n}\n\n.green-border{\n\tborder:.125cm solid #44b75b;\n \theight:16cm;\n \twidth:8cm;\n \tposition:absolute;\n \ttop:5cm;\n \tleft:-1.5cm;\n}", "options": { "renderer": "weasyprint" } }