Advertisement
Koelion

Untitled

Mar 27th, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.20 KB | None | 0 0
  1. <html>
  2. <head>
  3. <meta charset="UTF-8">
  4. <title>PDF Diploma</title>
  5.  
  6. <style type="text/css">
  7. @font-face {
  8. font-family: 'Oswald';
  9. src: url('Diploma/assets/fonts/OSWALD_0.ttf');
  10. font-weight: 400;
  11. }
  12.  
  13. @font-face {
  14. font-family: 'Oswald';
  15. src: url('Diploma/assets/fonts/OSWALD-DEMIBOLD.ttf');
  16. font-weight: 700;
  17. }
  18.  
  19. @font-face {
  20. font-family: 'Oswald';
  21. src: url('Diploma/assets/fonts/OSWALD-LIGHT.ttf');
  22. font-weight: 200;
  23. }
  24.  
  25. body {
  26. background: rgb(204, 204, 204);
  27. }
  28.  
  29. .color {
  30. color: {{PrimaryColor}};
  31. }
  32.  
  33. page {
  34. width: 21cm;
  35. height: 29.7cm;
  36. font-family: 'Oswald', sans-serif;
  37. font-weight: 400;
  38. background-color: white;
  39. display: block;
  40. margin: 0 auto;
  41. margin-bottom: 0.5cm;
  42. position: relative;
  43. box-shadow: 0 0 0.5cm rgba(0, 0, 0, 0.5);
  44. }
  45.  
  46. .background-image{
  47. width: 21cm;
  48. height: 29.7cm;
  49. z-index: -1;
  50. }
  51.  
  52. .title {
  53. font-size: 2cm;
  54. width: 100%;
  55. position: absolute;
  56. top: 2.5cm;
  57. left: 0cm;
  58. text-align: center;
  59. }
  60.  
  61. .company {
  62. font-size: 0.7cm;
  63. width: 100%;
  64. position: absolute;
  65. top: 5cm;
  66. left: 0cm;
  67. text-align: center;
  68. }
  69.  
  70. .company img {
  71. vertical-align: middle;
  72. width: 4cm;
  73. }
  74.  
  75. .pupil {
  76. width: 65%;
  77. margin: 0 17.5%;
  78. position: absolute;
  79. top: 8.3cm;
  80. left: 0cm;
  81. text-align: center;
  82. font-size: 1.5cm;
  83. font-weight: 700;
  84. border-bottom: 3px solid {{PrimaryColor}};
  85. }
  86.  
  87. .description {
  88. width: 65%;
  89. margin: 0 17.5%;
  90. position: absolute;
  91. top: 10.5cm;
  92. left: 0cm;
  93. text-align: left;
  94. font-size: 0.4cm;
  95. font-weight: 400;
  96. }
  97.  
  98. .description .row {
  99. width: 80%;
  100. margin: 0 10%;
  101. padding-top: 0.4cm;
  102. }
  103.  
  104. .description .row .col {
  105. width: 39.5%;
  106. padding: 0 5%;
  107. text-align: left;
  108. float: left;
  109. }
  110.  
  111. .description .row .col:first-child {
  112. border-right: 1px dotted {{PrimaryColor}};
  113. }
  114.  
  115. .sign {
  116. width: 30%;
  117. position: absolute;
  118. bottom: 3cm;
  119. left: 4cm;
  120. text-align: center;
  121. font-size: 0.35cm;
  122. font-weight: 200;
  123. }
  124.  
  125. .sign .dotted-line {
  126. width: 100%;
  127. height: 1px;
  128. border-top: 1px dotted black;
  129. margin: 2cm 0 0.4cm 0;
  130. }
  131.  
  132. .main-border {
  133. position: absolute;
  134. width: 89%;
  135. height: 92%;
  136. top: 4%;
  137. left: 5.5%;
  138. border: 1px dotted {{PrimaryColor}};
  139. }
  140.  
  141. @media print {
  142. body, page {
  143. margin: 0;
  144. box-shadow: 0;
  145. }
  146. }
  147. </style>
  148. </head>
  149. <body>
  150. <page>
  151.  
  152. <div class="main-border"></div>
  153.  
  154. <div>
  155. <svg class="background-image" viewBox="0 0 592 840" stroke-dasharray="none" shape-rendering="auto" xmlns="http://www.w3.org/2000/svg" font-family="Dialog" text-rendering="auto" fill-opacity="1" contentScriptType="text/ecmascript" color-interpolation="auto" color-rendering="auto" preserveAspectRatio="xMidYMid meet" font-size="12" fill="black" xmlns:xlink="http://www.w3.org/1999/xlink" stroke="black" image-rendering="auto" stroke-miterlimit="10" zoomAndPan="magnify" version="1.0" stroke-linecap="square" stroke-linejoin="miter" contentStyleType="text/css" font-style="normal" stroke-width="1" stroke-dashoffset="0" font-weight="normal" stroke-opacity="1">
  156. <!--Generated by the Batik Graphics2D SVG Generator-->
  157. <defs id="genericDefs" />
  158. <g>
  159. <defs id="defs1">
  160. <clipPath clipPathUnits="userSpaceOnUse" id="clipPath1">
  161. <path d="M0 0 L595 0 L595 841 L0 841 L0 0 Z" />
  162. </clipPath>
  163. </defs>
  164. <g fill="{{PrimaryColor}}" text-rendering="geometricPrecision" stroke-miterlimit="4" stroke-width="2" stroke="{{PrimaryColor}}" image-rendering="optimizeQuality">
  165. <path fill="none" d="M89.7952 49.2992 L89.7952 88.9052 L89.7952 89.9052 L88.7952 89.9052 L49.1892 89.9052 L49.1892 752.2052 L88.7952 752.2052 L89.7952 752.2052 L89.7952 753.2052 L89.7952 792.8112 L505.4802 792.8112 L505.4802 753.2052 L505.4802 752.2052 L506.4802 752.2052 L546.0862 752.2052 L546.0862 89.9052 L506.4802 89.9052 L505.4802 89.9052 L505.4802 88.9052 L505.4802 49.2992 L89.7952 49.2992 Z" clip-path="url(#clipPath1)" />
  166. <path fill="none" d="M69.077 109.812 L111.24 109.812 L111.24 67.649 L69.077 67.649 L69.077 109.812" clip-path="url(#clipPath1)" />
  167. <path fill="none" d="M69.077 774.461 L111.24 774.461 L111.24 732.298 L69.077 732.298 L69.077 774.461" clip-path="url(#clipPath1)" />
  168. <path fill="none" d="M484.036 109.812 L526.199 109.812 L526.199 67.649 L484.036 67.649 L484.036 109.812" clip-path="url(#clipPath1)" />
  169. <path fill="none" d="M484.036 774.461 L526.199 774.461 L526.199 732.298 L484.036 732.298 L484.036 774.461" clip-path="url(#clipPath1)" />
  170. <path d="M152.0747 103.2418 L146.4527 108.8638 L152.0747 114.4868 L157.6967 108.8638 Z" clip-path="url(#clipPath1)" stroke="none" />
  171. <path d="M446.2683 103.2418 L440.6463 108.8638 L446.2683 114.4868 L451.8903 108.8638 Z" clip-path="url(#clipPath1)" stroke="none" />
  172. </g>
  173. </g>
  174. </svg>
  175. </div>
  176.  
  177. <div class="title color">CERTIFIKAT</div>
  178.  
  179. <div class="company color">
  180. <img src="{{CompanyLogoPath}}"> {{CompanyName}}
  181. </div>
  182.  
  183. <div class="pupil">{{PupilFirstName}} {{PupilLastName}}</div>
  184.  
  185. <div class="description">
  186. <p>Has performed <b>{{CompanyName}}</b> course <b>{{EducationName}}</b>.</p>
  187. <p>The course has contained the following areas:</p>
  188.  
  189. <div class="row">
  190. <div class="col">
  191. <p>
  192. <b>Section name</b><br>
  193. - Chapter name<br>
  194. - Chapter name<br>
  195. </p>
  196.  
  197. <p>
  198. <b>Section name</b><br>
  199. - Chapter name<br>
  200. - Chapter name<br>
  201. </p>
  202. </div>
  203. <div class="col">
  204. <p>
  205. <b>Section name</b><br>
  206. - Chapter name<br>
  207. - Chapter name<br>
  208. </p>
  209.  
  210. <p>
  211. <b>Section name</b><br>
  212. - Chapter name<br>
  213. - Chapter name<br>
  214. </p>
  215. </div>
  216. </div>
  217. </div>
  218.  
  219. <div class="sign">
  220. <p>{{CityName}} {{FinishDate}}</p>
  221. <div class="dotted-line"></div>
  222. <p>
  223. {{ContactPersonFirstName}} {{ContactPersonLastName}}<br>
  224. {{CompanyName}}
  225. </p>
  226. </div>
  227. </page>
  228. </body>
  229. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement