I based the pandoc stuff on a blog post[1] I found. I've generated 4 receipts for the contributions in `statements/statement_2019-04-17_2019-06-03.pdf`. [1] https://medium.com/@martin_betz/generate-pdf-invoices-from-markdown-using-pandoc-5cb3fe84ba3amaster
parent
d34714012f
commit
90db2499d0
@ -1,3 +1,18 @@ |
||||
# fund |
||||
# Fund |
||||
|
||||
Records and documentation for the CoTech fund |
||||
Records and documentation for the CoTech fund |
||||
|
||||
## Generating receipts |
||||
|
||||
Install `pandoc` and `wkhtmltopdf` using, for example homebrew on OS X |
||||
|
||||
``` |
||||
brew install pandoc |
||||
brew install Caskroom/cask/wkhtmltopdf |
||||
``` |
||||
|
||||
Then in `receipts/` create a markdown file from an existing one, and run, for example |
||||
|
||||
``` |
||||
pandoc -t html5 agile_collective_2019-2020.md -o agile_collective_2019-2020.pdf --css style.css |
||||
``` |
||||
|
@ -0,0 +1,40 @@ |
||||
--- |
||||
papersize: a4 |
||||
margin-left: 20mm |
||||
margin-right: 25mm |
||||
margin-top: 10mm |
||||
margin-bottom: 20mm |
||||
... |
||||
|
||||
{ width=30mm } |
||||
|
||||
<pre> |
||||
Agile Collective Ltd |
||||
The Old Music Hall |
||||
106 - 108 Cowley Road |
||||
Oxford |
||||
England |
||||
OX4 1JE |
||||
</pre> |
||||
|
||||
13th June 2019 |
||||
|
||||
# Receipt: CoTech Fund Contribution |
||||
## Receipt number: 00004 |
||||
|
||||
Dear Agile Collective, |
||||
|
||||
Thank you for your company's subscription to the CoTech fund for the period May 2019 to May 2020. On the 22nd May 2019 we received your contribution of |
||||
|
||||
**£572.00** |
||||
|
||||
Thank you for your contribution. |
||||
|
||||
Kind regards, |
||||
|
||||
{ width=33.8mm } |
||||
|
||||
(Chris Lowis, Treasurer) |
||||
|
||||
Chris Lowis | treasurer@coops.tech |
||||
|
Binary file not shown.
@ -0,0 +1,40 @@ |
||||
--- |
||||
papersize: a4 |
||||
margin-left: 20mm |
||||
margin-right: 25mm |
||||
margin-top: 10mm |
||||
margin-bottom: 20mm |
||||
... |
||||
|
||||
{ width=30mm } |
||||
|
||||
<pre> |
||||
Animorph Ltd |
||||
Tower House |
||||
Space4 |
||||
149 Fonthill Road |
||||
London |
||||
England |
||||
N4 3HF |
||||
</pre> |
||||
|
||||
13th June 2019 |
||||
|
||||
# Receipt: CoTech Fund Contribution |
||||
## Receipt number: 00001 |
||||
|
||||
Dear Animorph, |
||||
|
||||
Thank you for your company's subscription to the CoTech fund for the period May 2019 to May 2020. On the 8th May 2019 we received your contribution of |
||||
|
||||
**£208.00** |
||||
|
||||
Thank you for your contribution. |
||||
|
||||
Kind regards, |
||||
|
||||
{ width=33.8mm } |
||||
|
||||
(Chris Lowis, Treasurer) |
||||
|
||||
Chris Lowis | treasurer@coops.tech |
Binary file not shown.
@ -0,0 +1,41 @@ |
||||
--- |
||||
papersize: a4 |
||||
margin-left: 20mm |
||||
margin-right: 25mm |
||||
margin-top: 10mm |
||||
margin-bottom: 20mm |
||||
... |
||||
|
||||
{ width=30mm } |
||||
|
||||
<pre> |
||||
Go Free Range Ltd |
||||
Lytchett House |
||||
13 Freeland Park |
||||
Wareham Road |
||||
Lytchett Matravers |
||||
Poole |
||||
Dorset |
||||
BH16 6FA |
||||
</pre> |
||||
|
||||
13th June 2019 |
||||
|
||||
# Receipt: CoTech Fund Contribution |
||||
## Receipt number: 00002 |
||||
|
||||
Dear Go Free Range, |
||||
|
||||
Thank you for your company's subscription to the CoTech fund for the period May 2019 to May 2020. On the 8th May 2019 we received your contribution of |
||||
|
||||
**£208.00** |
||||
|
||||
Thank you for your contribution. |
||||
|
||||
Kind regards, |
||||
|
||||
{ width=33.8mm } |
||||
|
||||
(Chris Lowis, Treasurer) |
||||
|
||||
Chris Lowis | treasurer@coops.tech |
Binary file not shown.
After Width: | Height: | Size: 5.6 KiB |
After Width: | Height: | Size: 30 KiB |
@ -0,0 +1,37 @@ |
||||
--- |
||||
papersize: a4 |
||||
margin-left: 20mm |
||||
margin-right: 25mm |
||||
margin-top: 10mm |
||||
margin-bottom: 20mm |
||||
... |
||||
|
||||
{ width=30mm } |
||||
|
||||
<pre> |
||||
Principle Six LLP |
||||
198 Old Ford Road |
||||
London |
||||
E2 9PT |
||||
</pre> |
||||
|
||||
13th June 2019 |
||||
|
||||
# Receipt: CoTech Fund Contribution |
||||
## Receipt number: 00003 |
||||
|
||||
Dear Principle Six, |
||||
|
||||
Thank you for your company's subscription to the CoTech fund for the period May 2019 to May 2020. On the 9th May 2019 we received your contribution of |
||||
|
||||
**£104.00** |
||||
|
||||
Thank you for your contribution. |
||||
|
||||
Kind regards, |
||||
|
||||
{ width=33.8mm } |
||||
|
||||
(Chris Lowis, Treasurer) |
||||
|
||||
Chris Lowis | treasurer@coops.tech |
Binary file not shown.
@ -0,0 +1,101 @@ |
||||
@charset "utf-8"; |
||||
|
||||
body { |
||||
font-size: 10.5pt; |
||||
font-family: "Avenir Next", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif; |
||||
hyphens: auto; |
||||
height: 270mm; /* 297 - 10 (top) - 20 (bottom) */ |
||||
line-height: 140%; |
||||
margin: 0; |
||||
padding: 0; |
||||
} |
||||
|
||||
code { |
||||
font-family: "Source Sans Code", Courier New, Courier, monospace; |
||||
margin-left: 1pt; |
||||
} |
||||
|
||||
a { |
||||
color: black; |
||||
margin-left: 1pt; |
||||
} |
||||
|
||||
table { |
||||
width: 100%; |
||||
} |
||||
|
||||
table:nth-of-type(3) { |
||||
border: 1px solid black; |
||||
padding: 5pt; |
||||
} |
||||
|
||||
table:nth-of-type(3) td:nth-of-type(2) { |
||||
text-align: center; |
||||
} |
||||
|
||||
h1 { |
||||
font-size: 13pt; |
||||
margin-top: 6pt; |
||||
margin-bottom: 0; |
||||
} |
||||
|
||||
h2 { |
||||
font-size: 10.5pt; |
||||
font-weight: normal; |
||||
margin-top: 0; |
||||
margin-bottom: 20pt; |
||||
} |
||||
|
||||
p { |
||||
width: 100%; |
||||
} |
||||
|
||||
p:first-of-type { |
||||
font-size: 9pt; |
||||
word-spacing: 1pt; |
||||
} |
||||
|
||||
/*p:first-of-type::after { |
||||
content: "\2014"; |
||||
position: absolute; |
||||
top: 89mm; / 99mm - 10mm top / |
||||
right: 0mm; |
||||
|
||||
}*/ |
||||
|
||||
p:nth-of-type(2) { |
||||
margin-top: 20mm; |
||||
} |
||||
|
||||
p:nth-of-type(3) { |
||||
text-align: left; |
||||
} |
||||
|
||||
p:nth-last-of-type(3) { |
||||
margin-top: 10mm; |
||||
} |
||||
|
||||
p:last-of-type { |
||||
text-align: justify; |
||||
font-size: 9pt; |
||||
position: absolute; |
||||
bottom: 2mm; |
||||
margin-bottom: 0; |
||||
padding-bottom: 0; |
||||
/* word-spacing: 1pt; */ |
||||
color: #444; |
||||
} |
||||
|
||||
hr { |
||||
border: 1px solid #eee; |
||||
} |
||||
|
||||
hr:last-of-type { |
||||
position: absolute; |
||||
bottom: 14mm; |
||||
width: 100%; |
||||
} |
||||
|
||||
figure { |
||||
margin: 0; |
||||
} |
Loading…
Reference in new issue