Skip to main content

Yaml FPDF Template

A simple helper to create templates for fpdf in yaml.

This library allows you to define a template using yaml. The template has a few sections:

docoptions

These contain the following settings: - format (default is A4) - title - orientation (default is portrait) - author - keyword and everything else, what fpdf offers as set_x value and has only one parameter

defaults

This contains the defaults for all elements. See elements for details. This section is mandatory in case you do not set all required parameter in the elements

templates

This section is optional and allows you to reuse specific formats.

elements

Besides the former sections everything else is interpreted as element for the document. The following types are supported:

  • image (required parameter: x, y, w, h, text)

  • box (required parameter: x, y, w, h, border, optional: background, bordercolor, style)

  • rect (required parameter, same as box)

  • text (required parameter: x, y, w, h, text, font, size, optional: style, align, foreground, border, bordercolor, fill, background, multiline)

HowTo

You can simply call add_page for each page you add. By default the values of the template are use, or the values you have set before calling add page. But you can set the value for each element in the add_page call.

Metadata

Release files for yafte 0.7.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for yafte 0.7.1
File Size Uploaded Provenance Actions
yafte-0.7.1.tar.gz 3.6 kB Without provenance Details for yafte-0.7.1.tar.gz

Release files / yafte-0.7.1.tar.gz

Download URL yafte-0.7.1.tar.gz
Size 3.6 kB
Tags Source
SHA-256 checksum
How to use checksums
12e520448e8561156f138140511fd39aabafbac1aa25d8ce3b5e39e66953e492
BLAKE2b-256 checksum
How to use checksums
c4976769263dd7a9ec94dcc06e1deb0bb026e004e58304108846b9ab05d01cb0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for yafte 0.7.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page