Skip to main content

Folio PDF

Downloads Downloads Downloads

A Python PDF library powered by bindings to the Go-based Folio PDF library. It provides features such as a layout engine, HTML-to-PDF rendering, forms, digital signatures, barcodes, and PDF/A support.

Folio PDF is currently under active development, so some functionality may not yet work as expected and APIs may change over time. Suggestions and bug reports are welcome at folio-pdf issues.

Installation

With uv

uv add folio-pdf

With pip

pip install folio-pdf

Usage

Building a pdf from scratch

from folio_pdf import Document, Font
from folio_pdf.enums import StandardPDFFonts, PageSizes

doc = (
    Document.new_with_size(PageSizes.A4)
      .title("PDF Document Example")
      .watermark("Made with Folio PDF")
)

page = doc.add_page()
font = Font(StandardPDFFonts.HELVETICA_BOLD)
page.add_text("I love folio pdf", font, 14, 100, 100)
doc.save("result.pdf")

Generating a pdf from html

from folio_pdf import html_to_pdf

html = '''
<h1 style="color: red;">Hello, world!</h1>
'''
html_to_pdf(html, "result.pdf")
# see generated result.pdf the generated pdf

Metadata

Release files for folio-pdf 0.2.0

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

Source distribution (sdist)

Source distribution for folio-pdf 0.2.0
File Size Uploaded Provenance
folio_pdf-0.2.0.tar.gz 33.2 MB Without provenance Details

Built distributions (wheels)

Table of built distributions (wheels) for folio-pdf 0.2.0
File
folio_pdf-0.2.0-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details
folio_pdf-0.2.0-py3-none-manylinux_2_28_x86_64.whl Python 3 none Linux glibc 2.28+ x86-64 Details
folio_pdf-0.2.0-py3-none-manylinux_2_28_aarch64.whl Python 3 none Linux glibc 2.28+ ARM64 Details
folio_pdf-0.2.0-py3-none-macosx_11_0_x86_64.whl Python 3 none macOS 11.0+ x86-64 Details
folio_pdf-0.2.0-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details
folio_pdf-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 100.1 MB

Release files / folio_pdf-0.2.0.tar.gz

Download URL folio_pdf-0.2.0.tar.gz
Size 33.2 MB
Tags Source
SHA-256 checksum
How to use checksums
0a9bba2c87abfe1be11e50a6eae73074b5d33317e0b5a928f963f1774451c2d0
BLAKE2b-256 checksum
How to use checksums
8673cf89964108267b80c5b3e662031fcad977a77c192eaaa6ecdc38ce775fc2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Arch Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / folio_pdf-0.2.0-py3-none-win_amd64.whl

Download URL folio_pdf-0.2.0-py3-none-win_amd64.whl
Size 8.4 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
72ff49046161461b15510dd58f03cc0601ef6a007f52732bcc0956419dae66a7
BLAKE2b-256 checksum
How to use checksums
fb3a6f7a31f959904a2ece531a0cdad481eaaa2d6b1c734ecbdc1fbbf2b2c326
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Arch Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / folio_pdf-0.2.0-py3-none-manylinux_2_28_x86_64.whl

Download URL folio_pdf-0.2.0-py3-none-manylinux_2_28_x86_64.whl
Size 8.4 MB
Tags Linux glibc 2.28+ x86-64 Python 3
SHA-256 checksum
How to use checksums
58e174ce7148df0aefd02ce75b11482255a315465f1e0d59b7401e804e8e6a3b
BLAKE2b-256 checksum
How to use checksums
a12c2e6d3a8cb32237554aed777cb2ef217ab5c027941283946120451f0ff542
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Arch Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / folio_pdf-0.2.0-py3-none-manylinux_2_28_aarch64.whl

Download URL folio_pdf-0.2.0-py3-none-manylinux_2_28_aarch64.whl
Size 7.7 MB
Tags Linux glibc 2.28+ ARM64 Python 3
SHA-256 checksum
How to use checksums
54f0f1ecde77ed5d4548dda535924a03061a803f2ec8fef417f9cbe9cb1fb720
BLAKE2b-256 checksum
How to use checksums
9eea712c827d91182ba814d54c2d56d46ef86844add2492ca8200a4d3d8077e0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Arch Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / folio_pdf-0.2.0-py3-none-macosx_11_0_x86_64.whl

Download URL folio_pdf-0.2.0-py3-none-macosx_11_0_x86_64.whl
Size 4.7 MB
Tags Python 3 macOS 11.0+ x86-64
SHA-256 checksum
How to use checksums
158f63882a2cfdb6ac7b47776e1f37f97afa0f41044d28bd06ecdd85bbce4e1f
BLAKE2b-256 checksum
How to use checksums
a2094d884a2adee26052b3224542cbaf110e8f009cbb1aa5333461d1497ddd5f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Arch Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / folio_pdf-0.2.0-py3-none-macosx_11_0_arm64.whl

Download URL folio_pdf-0.2.0-py3-none-macosx_11_0_arm64.whl
Size 4.4 MB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
2579fe00029e0beddd6a177a070604dab7596016e7000b1aa95126da85cd3b79
BLAKE2b-256 checksum
How to use checksums
de142c0c215710ebf2d779e4059efe8f794758057b60aa92e1fcd8edafaba1df
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Arch Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / folio_pdf-0.2.0-py3-none-any.whl

Download URL folio_pdf-0.2.0-py3-none-any.whl
Size 33.3 MB
Tags Python 3
SHA-256 checksum
How to use checksums
fdef58e0c7e8495223fcff236bcd8516395973ad0ec5cf88fd509baf46d94542
BLAKE2b-256 checksum
How to use checksums
31d6252846574dfe8a90c577cc076729581d4a3525b884a28e842696155cfc69
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Arch Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for folio-pdf 0.2.0

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