document_pdf.html 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>{{ document.title }}</title>
  6. <style>
  7. @page {
  8. size: A4;
  9. margin: 2cm;
  10. /* Adds content to the bottom-right of each page */
  11. @bottom-right {
  12. content: "Page " counter(page) " of " counter(pages);
  13. font-size: 10pt;
  14. }
  15. }
  16. body {
  17. font-family: "Helvetica", sans-serif;
  18. font-size: 12pt;
  19. line-height: 1.6;
  20. }
  21. h1, h2, h3, h4 {
  22. font-family: "Times New Roman", serif;
  23. color: #005595; /* Siemens-like blue */
  24. }
  25. h1 {
  26. font-size: 28pt;
  27. text-align: center;
  28. margin-bottom: 2cm;
  29. }
  30. h2 {
  31. font-size: 18pt;
  32. border-bottom: 2px solid #009999; /* Siemens-like teal */
  33. padding-bottom: 5px;
  34. margin-top: 1.5cm;
  35. }
  36. p {
  37. text-align: justify;
  38. }
  39. </style>
  40. </head>
  41. <body>
  42. <h1>{{ document.title }}</h1>
  43. <h2>Introduction</h2>
  44. <p>{{ document.introduction|safe }}</p>
  45. <h2>Main Body</h2>
  46. <p>{{ document.main_body|safe }}</p>
  47. <h2>Conclusion</h2>
  48. <p>{{ document.conclusion|safe }}</p>
  49. </body>
  50. </html>