org.pdf.core ============ .. py:module:: org.pdf.core Classes ------- .. autoapisummary:: org.pdf.core.OrgPdf Module Contents --------------- .. py:class:: OrgPdf(*args: Any, **kwargs: Any) Bases: :py:obj:`onegov.pdf.Pdf` A PDF document. .. py:attribute:: locale :type: str .. py:attribute:: translations :type: dict[str, gettext.GNUTranslations] .. py:method:: translate(text: str) -> str Translates the given string. .. py:method:: h1(title: str) -> None Translated H1. .. py:method:: h2(title: str) -> None Translated H2. .. py:method:: h3(title: str) -> None Translated H3. .. py:method:: page_fn_header_and_footer(canvas: reportlab.pdfgen.canvas.Canvas, doc: onegov.pdf.templates.Template) -> None :staticmethod: .. py:property:: page_fn :type: collections.abc.Callable[[reportlab.pdfgen.canvas.Canvas, onegov.pdf.templates.Template], None] .. py:property:: page_fn_later :type: collections.abc.Callable[[reportlab.pdfgen.canvas.Canvas, onegov.pdf.templates.Template], None] .. py:method:: table(data: collections.abc.Sequence[collections.abc.Sequence[str | reportlab.platypus.Paragraph]], columns: Literal['even'] | collections.abc.Sequence[float | None] | None, style: reportlab.platypus.tables.TableStyle | collections.abc.Iterable[reportlab.platypus.tables._TableCommand] | None = None, ratios: Literal[False] = False, border: bool = True, first_bold: bool = True) -> None table(data: collections.abc.Sequence[collections.abc.Sequence[str | reportlab.platypus.Paragraph]], columns: Literal['even'] | list[float] | None, style: reportlab.platypus.tables.TableStyle | collections.abc.Iterable[reportlab.platypus.tables._TableCommand] | None = None, *, ratios: Literal[True], border: bool = True, first_bold: bool = True) -> None table(data: collections.abc.Sequence[collections.abc.Sequence[str | reportlab.platypus.Paragraph]], columns: Literal['even'] | list[float] | None, style: reportlab.platypus.tables.TableStyle | collections.abc.Iterable[reportlab.platypus.tables._TableCommand] | None, ratios: Literal[True], border: bool = True, first_bold: bool = True) -> None table(data: collections.abc.Sequence[collections.abc.Sequence[str | reportlab.platypus.Paragraph]], columns: Literal['even'] | collections.abc.Sequence[float | None] | None, style: reportlab.platypus.tables.TableStyle | collections.abc.Iterable[reportlab.platypus.tables._TableCommand] | None = None, ratios: bool = False, border: bool = True, first_bold: bool = True) -> None Adds a table where every cell is wrapped in a paragraph so that the cells are wrappable. .. py:method:: p_markup(text: str, style: reportlab.lib.styles.PropertySet | None = None) -> None