Add duplex PDF build targets with pdftk page interleaving

- Add pdftk-java to Docker image for PDF page manipulation
- Extend generate_backside() to repeat back content num_pages times so
  front and back PDFs have matching page counts for pdftk shuffle
- Add build-duplex and build-blanko-duplex Makefile targets that combine
  front and back PDFs with alternating pages (front1, back1, front2, back2)
- Document duplex targets in README

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Peter Adam
2026-05-05 16:16:20 +02:00
parent f811c3fd80
commit ca995a1c1f
4 changed files with 51 additions and 7 deletions
+9
View File
@@ -67,6 +67,15 @@ Führt folgende Schritte aus:
3. Erzeugt `brevetkarte-rueckseite.tex` (Rückseite mit Kontrollpunkten aus event.yml)
4. Kompiliert beide .tex-Dateien zu PDFs
### Duplex-PDF erzeugen
```bash
make build-duplex # personalisierte Karten
make build-blanko-duplex # Blanko-Karten
```
Erzeugt ein einzelnes PDF mit abwechselnden Vorder- und Rückseiten für den direkten Duplexdruck: Seite 1 Vorderseite, Seite 2 Rückseite, Seite 3 nächste Vorderseite, usw. Erfordert kein manuelles Zusammenführen zweier Dateien.
### Blanko-Karten erzeugen und bauen
```bash