-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpdf.html
160 lines (155 loc) · 8.81 KB
/
pdf.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css" crossorigin="anonymous">
<link rel="stylesheet" href="pdfdownload/pdf.css" />
<script src="pdfdownload/pdf.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/html2pdf.js/0.9.2/html2pdf.bundle.js"></script>
</head>
<body>
<div class="container d-flex justify-content-center mt-50 mb-50">
<div class="row">
<div class="col-md-12 text-right mb-3">
<button class="btn btn-primary" id="download"> Download pdf</button>
</div>
<div class="col-md-12">
<div class="card" id="invoice">
<div class="card-header bg-transparent header-elements-inline">
<h6 class="card-title text-primary">Invoice</h6>
</div>
<div class="card-body">
<div class="row">
<div class="col-sm-6">
<div class="mb-4 pull-left">
<ul class="list list-unstyled mb-0 text-left">
<li>223 Greater Noida</li>
<li>New Delhi</li>
<li>+91 9876543210</li>
</ul>
</div>
</div>
<div class="col-sm-6">
<div class="mb-4 ">
<div class="text-sm-right">
<h4 class="invoice-color mb-2 mt-md-2">Invoice #BBB1243</h4>
<ul class="list list-unstyled mb-0">
<li>Date: <span class="font-weight-semibold">June 15, 2022</span></li>
<li>Due date: <span class="font-weight-semibold">June 24, 2022</span></li>
</ul>
</div>
</div>
</div>
</div>
<div class="d-md-flex flex-md-wrap">
<div class="mb-4 mb-md-2 text-left"> <span class="text-muted">Invoice To:</span>
<ul class="list list-unstyled mb-0">
<li>
<h5 class="my-2">XXXX-XXXX</h5>
</li>
<li><span class="font-weight-semibold">Leaf Now</span></li>
<li>Bangalore</li>
<li>India</li>
<li>56004X</li>
<li><a href="#" data-abc="true">[email protected]</a></li>
</ul>
</div>
<div class="mb-2 ml-auto"> <span class="text-muted">Donation Details:</span>
<div class="d-flex flex-wrap wmin-md-400">
<ul class="list list-unstyled mb-0 text-left">
<li>
<h5 class="my-2">Donation Amount:</h5>
</li>
<li>Bank name:</li>
<li>Country:</li>
<li>City:</li>
<li>Address:</li>
<li>Transaction ID:</li>
</ul>
<ul class="list list-unstyled text-right mb-0 ml-auto">
<li>
<h5 class="font-weight-semibold my-2">Rs. XXXX</h5>
</li>
<li><span class="font-weight-semibold">Canara Bank</span></li>
<li>Bangalore</li>
<li>Commercial street, 21</li>
<li><span class="font-weight-semibold">9876543210</span></li>
<li><span class="font-weight-semibold">BHDHD98273BER</span></li>
</ul>
</div>
</div>
</div>
</div>
<div class="table-responsive">
<table class="table table-lg">
<thead>
<tr>
<th>Description</th>
<th>Amount</th>
<th>Total</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<h6 class="mb-0">CHILD HEALTH FUNDS</h6> <span class="text-muted">Donation to child health center via health.org </span>
</td>
<td>Rs. XXX</td>
<td><span class="font-weight-semibold">Rs. XXX</span></td>
</tr>
<tr>
<td>
<h6 class="mb-0">Tree Plantation Fundraiser</h6> <span class="text-muted">Fundraise for plantation of trees</span>
</td>
<td>Rs. XXX</td>
<td><span class="font-weight-semibold">Rs. XXX</span></td>
</tr>
<tr>
<td>
<h6 class="mb-0">For The People-Food Fundraiser</h6> <span class="text-muted">Fundraise to provide food to people below poverty line</span>
</td>
<td>Rs. XXX</td>
<td><span class="font-weight-semibold">Rs. XXX</span></td>
</tr>
</tbody>
</table>
</div>
<div class="card-body">
<div class="d-md-flex flex-md-wrap">
<div class="pt-2 mb-3 wmin-md-400 ml-auto">
<h6 class="mb-3 text-left">Total Donation Amount</h6>
<div class="table-responsive">
<table class="table">
<tbody>
<tr>
<th class="text-left">Subtotal:</th>
<td class="text-right">Rs. XXXX</td>
</tr>
<tr>
<th class="text-left">Tax: <span class="font-weight-normal">(18%)</span></th>
<td class="text-right">Rs. XXX</td>
</tr>
<tr>
<th class="text-left">Total:</th>
<td class="text-right text-primary">
<h5 class="font-weight-semibold">Rs. XXXX</h5>
</td>
</tr>
</tbody>
</table>
</div>
<div class="text-right mt-3"> <button type="button" class="btn btn-primary"><b><i class="fa fa-paper-plane-o mr-1"></i></b>
Send invoice</button> </div>
</div>
</div>
</div>
<div class="card-footer"> <span class="text-muted">Join Us in the movement to create world a better place to live.</span> </div>
</div>
</div>
</div>
</div>
</body>
</html>