-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpdf.html
More file actions
103 lines (95 loc) · 1.77 KB
/
pdf.html
File metadata and controls
103 lines (95 loc) · 1.77 KB
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
<html>
<head>
<style>
html,body{
margin: 0;
padding: 0;
color: #1b1919
}
.pdf-page{
background-size: 100% auto;
margin: auto;
margin: 0px;
width: 610px;
/* background: red; */
height: 790px;
position: relative;
font-family: sans-serif;
text-align: center;
}
.container{
/* sum of top height bottom must be <=790 */
/* margin: 50px; */
top: 150px;
left: 50;
right: 50px;
height:540px;
position: absolute;
text-align: left;
}
.image{
max-width:100%;
max-height:100%
}
table {
border-collapse: collapse;
width: 100%;
font-size: 12px
}
table, th{
border: 1px solid #1b1919;
}
th{
text-align: left;
font-weight: normal;
}
th,td{
padding: 2px 4px;
border-left: 1px solid #1b1919;
}
.number{
text-align: right;
}
</style>
</head>
<body>
<div class="pdf-page">
<!-- Letter header link -->
<img src="image src" alt="" class="image">
<div class="container">
<div class="" style="height:120px;" >
</div>
<table>
<tr>
<th width="15%">ID</th>
<th width="40%">Description</th>
<th class="number" width="15%">Unit Price</th>
<th class="number" width="15%">Qty</th>
<th class="number" width="15%">Amount</th>
</tr>
<tr>
<td>Peter</td>
<td>Griffin</td>
<td class="number">$100</td>
<td class="number">$100</td>
<td class="number">$100</td>
</tr>
<tr>
<td>Peter</td>
<td>Griffin</td>
<td class="number">$100</td>
<td class="number">$100</td>
<td class="number">$100</td>
</tr>
<tr>
<td>Peter</td>
<td>Griffin</td>
<td class="number">$100</td>
<td class="number">$100</td>
<td class="number">$100</td>
</tr>
</table>
</div>
</div>
</body>
</html>