File: test-helloworld.html

package info (click to toggle)
xhtml2pdf 0.2.17%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 5,412 kB
  • sloc: python: 12,740; makefile: 247; xml: 24
file content (35 lines) | stat: -rw-r--r-- 797 bytes parent folder | download | duplicates (2)
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
<html>
<head>
    <title>HTML to PDF conversion example</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <style type="text/css">
    td, th {
        padding: 0.5em;
    }
    </style>
</head>
<body>
<p>Hello <strong style="color: #f00;">Wörld</strong>
<hr>
<table border="1" style="background-color: #eee;">
    <tr>
        <td>Amount</td>
        <td>Description</td>
        <td>Total</td>
    </tr>
    <tr>
        <td>1</td>
        <td>Good weather</td>
        <td>0 EUR</td>
    </tr>
    <tr>
        <td>2</td>
        <td>More sub</td>
        <td>0 EUR</td>
    </tr>
    <tr style="font-weight: bold; background-color: green; color: white;">
        <td colspan="2" align="right">Sum</td>
        <td>0 EUR</td>
    </tr>
</table>
</body></html>