Files
VA-Control-for-linux/va/my_pyfpdf/pyfpdf-1.7.2/tutorial/tuto2.py
T
maikandClaude Opus 4.8 a7c93fa266 Erster Commit: nativer Linux-Port aus macOS-Bytecode
Läuft die Voice Acoustic VA-Remotecontrol (AllDSP AllControl) nativ unter Linux
auf echtem wxGTK 3.0 — ohne Wine und ohne dekompilierten App-Code. Ausgeführt wird
das unveränderte Python-2.7-Bytecode aus dem macOS-.app; C-Extensions (wxGTK/numpy/
scipy/PortAudio) kommen nativ aus Debian stretch.

Enthält: va/ (Original-.pyc + pure-Python-Libs + Assets + launch.py mit den drei
Linux-Fixes), Dockerfile/run.sh/entrypoint.sh, reference/ (dekompilierter Quellcode
zum Debuggen) und README/STATUS. img.cache (378 MB, regenerierbar) ist per
.gitignore ausgeschlossen.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-08-20 19:57:01 +02:00

33 lines
693 B
Python

from fpdf import FPDF
class PDF(FPDF):
def header(self):
# Logo
self.image('logo_pb.png',10,8,33)
# Arial bold 15
self.set_font('Arial','B',15)
# Move to the right
self.cell(80)
# Title
self.cell(30,10,'Title',1,0,'C')
# Line break
self.ln(20)
# Page footer
def footer(self):
# Position at 1.5 cm from bottom
self.set_y(-15)
# Arial italic 8
self.set_font('Arial','I',8)
# Page number
self.cell(0,10,'Page '+str(self.page_no())+'/{nb}',0,0,'C')
# Instanciation of inherited class
pdf=PDF()
pdf.alias_nb_pages()
pdf.add_page()
pdf.set_font('Times','',12)
for i in range(1,41):
pdf.cell(0,10,'Printing line number '+str(i),0,1)
pdf.output('tuto2.pdf','F')