Sample pdf generated

This commit is contained in:
Yogesh Ojha
2022-04-24 22:57:30 +05:30
parent 80d9d945c6
commit e650a9133e
11 changed files with 529 additions and 0 deletions
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+26
View File
@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 22.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg version="1.1" id="Calque_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 56.7 56.7" style="enable-background:new 0 0 56.7 56.7;" xml:space="preserve">
<style type="text/css">
.st0{fill:none;stroke:#231F20;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;}
</style>
<rect x="12.4" y="6.1" class="st0" width="31.9" height="44.5"/>
<line class="st0" x1="16.4" y1="10.8" x2="26.8" y2="10.8"/>
<line class="st0" x1="37" y1="10.8" x2="40.2" y2="10.8"/>
<g>
<rect x="-85.5" y="-13" class="st0" width="31.9" height="44.5"/>
<line class="st0" x1="-81.4" y1="-6.3" x2="-71.1" y2="-6.3"/>
<line class="st0" x1="-81.4" y1="-0.1" x2="-71.1" y2="-0.1"/>
<line class="st0" x1="-81.4" y1="6.1" x2="-71.1" y2="6.1"/>
<line class="st0" x1="-81.4" y1="12.3" x2="-71.1" y2="12.3"/>
<line class="st0" x1="-81.4" y1="18.6" x2="-71.1" y2="18.6"/>
<line class="st0" x1="-81.4" y1="24.8" x2="-71.1" y2="24.8"/>
<line class="st0" x1="-60.8" y1="-6.3" x2="-57.6" y2="-6.3"/>
<line class="st0" x1="-60.8" y1="-0.1" x2="-57.6" y2="-0.1"/>
<line class="st0" x1="-60.8" y1="6.1" x2="-57.6" y2="6.1"/>
<line class="st0" x1="-60.8" y1="12.3" x2="-57.6" y2="12.3"/>
<line class="st0" x1="-60.8" y1="18.6" x2="-57.6" y2="18.6"/>
<line class="st0" x1="-60.8" y1="24.8" x2="-57.6" y2="24.8"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 1.5 KiB

+409
View File
@@ -0,0 +1,409 @@
@font-face {
font-family: roboto-regular;
font-weight: 300;
src: url(Roboto-Regular.ttf);
}
@font-face {
font-family: roboto-italic;
font-style: italic;
font-weight: 400;
src: url(Roboto-Ialic.ttf);
}
@font-face {
font-family: roboto-light;
font-weight: 300;
src: url(Roboto-Light.ttf);
}
@font-face {
font-family: roboto-lightitalic;
font-style: italic;
font-weight: 300;
src: url(Roboto-LightItalic.ttf);
}
@font-face {
font-family: roboto-bold;
font-weight: 700;
src: url(Roboto-Bold.ttf);
}
@page {
@top-left {
background: #FF7043;
content: counter(page);
height: 1cm;
text-align: center;
width: 1cm;
}
@top-center {
background: #FF7043;
content: '';
display: block;
height: .05cm;
opacity: .5;
width: 100%;
}
@top-right {
content: string(heading);
font-size: 9pt;
height: 1cm;
vertical-align: middle;
width: 100%;
}
}
@page :blank {
@top-left { background: none; content: '' }
@top-center { content: none }
@top-right { content: none }
}
@page no-chapter {
@top-left { background: none; content: none }
@top-center { content: none }
@top-right { content: none }
}
@page :first {
background-color: #212121;
background-size: cover;
margin: 0;
}
@page chapter {
background: #FF7043;
margin: 0;
@top-left { content: none }
@top-center { content: none }
@top-right { content: none }
}
html {
color: #393939;
font-family: roboto-regular;
font-size: 11pt;
font-weight: 300;
line-height: 1.5;
}
h1 {
font-family: roboto-light;
font-size: 38pt;
margin: 5cm 2cm 0 2cm;
page: no-chapter;
width: 100%;
}
h2, h3, h4 {
font-family: roboto-regular;
color: black;
font-weight: 400;
}
h2 {
break-before: always;
font-size: 28pt;
string-set: heading content();
}
h3 {
font-family: roboto-light;
font-weight: 100;
font-size: 15pt;
}
h4 {
font-size: 13pt;
}
#cover {
align-content: space-between;
display: flex;
flex-wrap: wrap;
height: 297mm;
}
#cover footer {
background: #FF7043;
flex: 1 33%;
margin: 0 -2cm;
padding: 1cm 0;
white-space: pre-wrap;
}
#cover footer:first-of-type {
padding-left: 3cm;
}
#contents {
page: no-chapter;
}
#contents h2 {
font-size: 20pt;
font-weight: 400;
margin-bottom: 3cm;
}
#contents h3 {
font-weight: 500;
margin: 3em 0 1em;
}
#contents h3::before {
background: #FF7043;
content: '';
display: block;
height: .08cm;
margin-bottom: .25cm;
width: 2cm;
}
#contents ul {
list-style: none;
padding-left: 0;
}
#contents ul li {
border-top: .25pt solid #c1c1c1;
margin: .25cm 0;
padding-top: .25cm;
}
#contents ul li::before {
color: #FF7043;
content: '• ';
font-size: 40pt;
line-height: 16pt;
vertical-align: bottom;
}
#contents ul li a {
color: inherit;
text-decoration-line: inherit;
}
#contents ul li a::before {
content: target-text(attr(href));
}
#contents ul li a::after {
color: #FF7043;
content: target-counter(attr(href), page);
float: right;
}
#columns section {
columns: 2;
column-gap: 1cm;
padding-top: 1cm;
}
#columns section p {
text-align: justify;
}
#columns section p:first-of-type {
font-weight: 700;
}
#skills h3 {
background: #FF7043;
margin: 0 -3cm 1cm;
padding: 1cm 1cm 1cm 3cm;
width: 21cm;
}
#skills section {
padding: .5cm 0;
}
#skills section#table-content::before {
background: url(table-content.svg) no-repeat center #FF7043;
background-size: 50%;
content: '';
display: inline-block;
float: left;
height: 2cm;
margin-right: .5cm;
vertical-align: middle;
width: 2cm;
}
#skills section#heading::before {
background: url(heading.svg) no-repeat center #FF7043;
background-size: 50%;
content: '';
display: inline-block;
float: left;
height: 2cm;
margin-right: .5cm;
vertical-align: middle;
width: 2cm;
}
#skills section#multi-columns::before {
background: url(multi-columns.svg) no-repeat center #FF7043;
background-size: 50%;
content: '';
display: inline-block;
float: left;
height: 2cm;
margin-right: .5cm;
vertical-align: middle;
width: 2cm;
}
#skills section#internal-links::before {
background: url(internal-links.svg) no-repeat center #FF7043;
background-size: 50%;
content: '';
display: inline-block;
float: left;
height: 2cm;
margin-right: .5cm;
vertical-align: middle;
width: 2cm;
}
#skills section#style::before {
background: url(style.svg) no-repeat center #FF7043;
background-size: 50%;
content: '';
display: inline-block;
float: left;
height: 2cm;
margin-right: .5cm;
vertical-align: middle;
width: 2cm;
}
#skills section h4 {
margin: 0;
}
#skills section p {
margin-top: 0;
}
#offers {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
}
#offers h2, #offers h3 {
width: 100%;
}
#offers section {
width: 30%;
}
#offers section h4 {
margin-bottom: 0;
}
#offers section ul {
list-style: none;
margin: 0;
padding-left: 0;
}
#offers section ul li:not(:last-of-type) {
margin: .5cm 0;
}
#offers section p {
background: #FF7043;
display: block;
font-size: 15pt;
font-weight: 700;
margin-bottom: 0;
padding: .25cm 0;
text-align: center;
}
#chapter {
align-items: center;
display: flex;
height: 297mm;
justify-content: center;
page: chapter;
}
#typography section {
display: flex;
flex-wrap: wrap;
margin: 1cm 0;
}
#typography section h4 {
border-top: 1pt solid;
flex: 1 25%;
margin: 0;
}
#typography section h4 + * {
flex: 1 75%;
margin: 0;
padding-left: .5cm;
}
#typography section p {
text-align: justify;
}
#typography section ul {
line-height: 2;
list-style: none;
}
#typography section#small-caps p {
font-variant: small-caps;
}
#typography section#ligatures dl {
display: flex;
flex-wrap: wrap;
}
#typography section#ligatures dl dt {
font-weight: 400;
width: 30%;
}
#typography section#ligatures dl dd {
flex: 1 70%;
margin: 0;
padding: 0;
}
#typography section#ligatures .none {
font-variant-ligatures: none;
}
#typography section#ligatures .common {
font-variant-ligatures: common-ligatures;
}
#typography section#ligatures .discretionary {
font-variant-ligatures: discretionary-ligatures;
}
#typography section#ligatures .contextual {
font-variant-ligatures: contextual;
}
#typography section#numbers dl {
display: flex;
flex-wrap: wrap;
}
#typography section#numbers dl dt {
font-weight: 400;
width: 30%;
}
#typography section#numbers dl dd {
flex: 1 70%;
margin: 0;
padding: 0;
}
#typography section#numbers #fractions {
font-variant-numeric: diagonal-fractions;
}
#typography section#numbers #ordinals {
font-variant-numeric: ordinal;
}
#typography section#numbers #slashed {
font-variant-numeric: slashed-zero;
}
#typography section#numbers #super {
font-variant-position: super;
}
#typography section#numbers #sub {
font-variant-position: sub;
}
#typography section#figures dl {
columns: 4;
}
#typography section#figures dl dt {
font-weight: 400;
}
#typography section#figures dl dd {
display: flex;
margin: 0;
padding: 0;
}
#typography section#figures dl dd ul {
padding: 0 1em 0 0;
}
#typography section#figures #oldstyle {
font-variant-numeric: oldstyle-nums;
}
#typography section#figures #tabular {
font-variant-numeric: tabular-nums;
}
#typography section#figures #old-tabular {
font-variant-numeric: oldstyle-nums tabular-nums;
}
.line {
border-bottom: 1px double #FF7043;
}
+29
View File
@@ -0,0 +1,29 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 22.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg version="1.1" id="Calque_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 56.7 56.7" style="enable-background:new 0 0 56.7 56.7;" xml:space="preserve">
<style type="text/css">
.st0{fill:none;stroke:#231F20;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;}
</style>
<rect x="12.4" y="6.1" class="st0" width="31.9" height="44.5"/>
<line class="st0" x1="16.4" y1="13.8" x2="40.2" y2="13.8"/>
<g>
<rect x="-85.5" y="-13" class="st0" width="31.9" height="44.5"/>
<line class="st0" x1="-81.4" y1="-6.3" x2="-71.1" y2="-6.3"/>
<line class="st0" x1="-81.4" y1="-0.1" x2="-71.1" y2="-0.1"/>
<line class="st0" x1="-81.4" y1="6.1" x2="-71.1" y2="6.1"/>
<line class="st0" x1="-81.4" y1="12.3" x2="-71.1" y2="12.3"/>
<line class="st0" x1="-81.4" y1="18.6" x2="-71.1" y2="18.6"/>
<line class="st0" x1="-81.4" y1="24.8" x2="-71.1" y2="24.8"/>
<line class="st0" x1="-60.8" y1="-6.3" x2="-57.6" y2="-6.3"/>
<line class="st0" x1="-60.8" y1="-0.1" x2="-57.6" y2="-0.1"/>
<line class="st0" x1="-60.8" y1="6.1" x2="-57.6" y2="6.1"/>
<line class="st0" x1="-60.8" y1="12.3" x2="-57.6" y2="12.3"/>
<line class="st0" x1="-60.8" y1="18.6" x2="-57.6" y2="18.6"/>
<line class="st0" x1="-60.8" y1="24.8" x2="-57.6" y2="24.8"/>
</g>
<line class="st0" x1="16.4" y1="20.9" x2="40.2" y2="20.9"/>
<line class="st0" x1="16.4" y1="28" x2="40.2" y2="28"/>
<line class="st0" x1="16.4" y1="35" x2="40.2" y2="35"/>
<line class="st0" x1="16.4" y1="42.1" x2="40.2" y2="42.1"/>
</svg>

After

Width:  |  Height:  |  Size: 1.7 KiB

+21
View File
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 22.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg version="1.1" id="Calque_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 56.7 56.7" style="enable-background:new 0 0 56.7 56.7;" xml:space="preserve">
<style type="text/css">
.st0{fill:none;stroke:#231F20;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;}
</style>
<rect x="12.4" y="6.1" class="st0" width="31.9" height="44.5"/>
<line class="st0" x1="16.4" y1="12.8" x2="26.8" y2="12.8"/>
<line class="st0" x1="16.4" y1="19" x2="26.8" y2="19"/>
<line class="st0" x1="16.4" y1="25.2" x2="26.8" y2="25.2"/>
<line class="st0" x1="16.4" y1="31.5" x2="26.8" y2="31.5"/>
<line class="st0" x1="16.4" y1="37.7" x2="26.8" y2="37.7"/>
<line class="st0" x1="16.4" y1="43.9" x2="26.8" y2="43.9"/>
<line class="st0" x1="37" y1="12.8" x2="40.2" y2="12.8"/>
<line class="st0" x1="37" y1="19" x2="40.2" y2="19"/>
<line class="st0" x1="37" y1="25.2" x2="40.2" y2="25.2"/>
<line class="st0" x1="37" y1="31.5" x2="40.2" y2="31.5"/>
<line class="st0" x1="37" y1="37.7" x2="40.2" y2="37.7"/>
<line class="st0" x1="37" y1="43.9" x2="40.2" y2="43.9"/>
</svg>

After

Width:  |  Height:  |  Size: 1.2 KiB

+44
View File
@@ -0,0 +1,44 @@
<html>
<head>
<meta charset="utf-8">
<title>Report</title>
<link href="http://127.0.0.1:8000/staticfiles/reports/report.css" rel="stylesheet" type="text/css" />
<meta name="description" content="Report example">
</head>
<body>
<article id="cover">
<h1 style="color:#FF7043">Full Scan Report
<br>
{{scan_object.domain.name}}
<div class="line"></div>
</h1>
<footer>
Company Name
Company Address
</footer>
<footer>
your@company.com
https://yourcompany.org
</footer>
<footer>
Generated by reNgine
https://github.com/yogeshojha/rengine
</footer>
</article>
<article id="columns">
<h2 id="columns-title">Quick Summary</h2>
<h3>This section is a quick summary of scan performed on {{scan_object.domain.name}}.</h3>
<p>
{% if scan_object.domain.description %}
<h4>Target/Domain Information</h4>
Description: {{scan_object.domain.description}}
<hr>
{% endif %}
</p>
</article>
</body>
</html>