Automatische erstellung eines PDFs

This commit is contained in:
2026-06-23 00:23:40 +02:00
parent 7319b3db76
commit d7c3c0be63
3 changed files with 22 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
buch.pdf

8
build-pdf.sh Executable file
View File

@@ -0,0 +1,8 @@
#!/bin/sh
docker run --rm -v "$(pwd):/data" --user $(id -u):$(id -g) \
fpod/pandoc-weasyprint \
akt*/*.md \
--pdf-engine=weasyprint \
--css=/data/style.css \
-o /data/buch.pdf

13
style.css Normal file
View File

@@ -0,0 +1,13 @@
@page {
size: A5;
margin: 1.5cm;
}
body {
font-family: Arial, sans-serif;
font-size: 10pt;
line-height: 1.6;
}
h1 {
break-before: page;
}