Skip to content

Instantly share code, notes, and snippets.

View leeeandroo's full-sized avatar
👀

Leandro leeeandroo

👀
View GitHub Profile
@leeeandroo
leeeandroo / weasyprint_complex_headers.py
Created January 7, 2018 09:42 — forked from pikhovkin/weasyprint_complex_headers.py
Repeat on each page of complex headers (eg, tables) except the first page
# coding: utf-8
from weasyprint import HTML, CSS
def get_page_body(boxes):
for box in boxes:
if box.element_tag == 'body':
return box