agency.pdf
Classes
A standard PDF of an agency. |
|
A PDF with the CI of the canton of ZG. |
|
A PDF with the CI of the canton of AR. |
|
Consult the styleguide from 2021. |
Module Contents
- class agency.pdf.AgencyPdfDefault(*args: Any, toc_levels: int = 3, created: str = '', logo: str | None = None, link_color: str | None = None, underline_links: bool = False, underline_width: float | str = 0.5, **kwargs: Any)[source]
Bases:
onegov.pdf.Pdf
A standard PDF of an agency.
- classmethod from_agencies(agencies: Iterable[ExtendedAgency], title: str, toc: bool, exclude: Collection[str], page_break_on_level: int = 1, link_color: str | None = None, underline_links: bool = False) io.BytesIO [source]
Create an index PDF from a collection of notices.
- class agency.pdf.AgencyPdfZg(*args: Any, **kwargs: Any)[source]
Bases:
AgencyPdfDefault
A PDF with the CI of the canton of ZG.
A footer with the title and print date on the left and the page numbers on the right.
- class agency.pdf.AgencyPdfAr(*args: Any, **kwargs: Any)[source]
Bases:
AgencyPdfDefault
A PDF with the CI of the canton of AR.
A footer with the print date on the left and the page numbers on the right.
A header with the logo, a footer with the print date and page numbers.
A header with the title and author, a footer with the print date and page numbers.
- class agency.pdf.AgencyPdfBs(*args: Any, **kwargs: Any)[source]
Bases:
AgencyPdfDefault
Consult the styleguide from 2021.
Page Settings are on page 25:
Logo position to page margins, left most visual part of the logo: - indent 10mm left - 10mm beneath top - Format A4: The Baslerstab must be 10mm high, total is 17.5mm with the |
p. 24 - Font Arial - Footer: Arial pt, start approx 12mm beneath bottom margin - Regular text Arial 11p
- static page_fn_header(canvas: reportlab.pdfgen.canvas.Canvas, doc: onegov.pdf.templates.Template) None [source]
A header with the logo, a footer with the print date and page numbers.