-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path3 First page landscape rest in potrait.html
150 lines (125 loc) · 4.05 KB
/
3 First page landscape rest in potrait.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
<apex:page renderAs="pdf" standardStylesheets="false" showHeader="false" applyHtmlTag="false">
<head>
<style>
@page: first {
size: landscape;
}
@page {
margin-top: 70px;
margin-left: 0px;
margin-right: 0px;
background-color: #EDEDED;
@top-left {
content: element(top-left-div);
}
@top-center {
content: element(top-center-div);
}
@top-right {
content: element(top-right-div);
}
@bottom-left {
content: element(bottom-left-div);
}
@bottom-center {
content: element(bottom-center-div);
}
@bottom-right {
content: element(bottom-right-div);
}
}
.top-left-div {
position: running(top-left-div);
background-color: #01a3d6;
color: white;
text-align: left;
border-bottom: 2px solid black;
padding: 17.5px;
}
.top-center-div {
position: running(top-center-div);
background-color: #01a3d6;
color: white;
text-align: center;
margin-left: -1px;
border-bottom: 2px solid black;
padding: 25px;
}
.top-right-div {
position: running(top-right-div);
background-color: #01a3d6;
text-align: right;
color: white;
margin-left: -1px;
border-bottom: 2px solid black;
padding: 25px;
}
.bottom-left-div {
position: running(bottom-left-div);
color: #666666;
text-align: left;
margin: 5px;
}
.bottom-center-div {
position: running(bottom-center-div);
color: #666666;
text-align: center;
margin: 5px;
}
.bottom-right-div {
position: running(bottom-right-div);
color: #666666;
text-align: right;
margin: 5px;
}
.pagenumber:before {
content: counter(page);
}
.pagecount:before {
content: counter(pages);
}
.content {
margin: 10px;
}
.pageFont {
font-family: Arial, Helvetica, sans-serif;
}
</style>
</head>
<body>
<!-- HEADER INFO BEGIN-->
<div class="top-left-div pageFont">
<!-- THE LOGO -->
<img src="{!URLFOR($Resource.cloudLogo)}" alt="Company Logo" height="30px" />
</div>
<div class="top-center-div pageFont">
TOP - CENTER
</div>
<div class="top-right-div pageFont">
<div>
TOP - RIGHT
</div>
</div>
<!-- HEADER INFO END-->
<!-- FOOTER INFO BEGIN-->
<div class="bottom-left-div pageFont">
BOTTOM - LEFT
</div>
<div class="bottom-center-div pageFont">
BOTTOM - CENTER
</div>
<div class="bottom-right-div pageFont">
<span class="pagenumber" /> |
<span class="pagecount" />
</div>
<!-- FOOTER INFO END-->
<div class="content pageFont">
THE CONTENT IN PAGE 1
</div>
<!-- NEW PAGE -->
<div style="page-break-after:always;" />
<div class="content pageFont">
THE CONTENT IN PAGE 2
</div>
</body>
</apex:page>