Skip to content

Instantly share code, notes, and snippets.

View nathandem's full-sized avatar

Nathan de Maestri nathandem

View GitHub Profile
{
"name": "BONO token",
"symbol": "BONO",
"description": "Token of the ONO protocol",
"image": "https://www.onocoy.com/favicon.ico"
}
@nathandem
nathandem / pdf.py
Last active February 7, 2022 08:23
Arbitrary header/footer integration in Weasyprint PDF pages
from weasyprint import HTML, CSS
class PdfGenerator:
"""
Generate a PDF out of a rendered template, with the possibility to integrate nicely
a header and a footer if provided.
Notes:
------