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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

folio_pdf-0.0.3.tar.gz (30.6 MB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

folio_pdf-0.0.3-py3-none-win_amd64.whl (7.7 MB view details)

Uploaded Python 3Windows x86-64

folio_pdf-0.0.3-py3-none-manylinux_2_28_x86_64.whl (7.8 MB view details)

Uploaded Python 3manylinux: glibc 2.28+ x86-64

folio_pdf-0.0.3-py3-none-manylinux_2_28_aarch64.whl (7.1 MB view details)

Uploaded Python 3manylinux: glibc 2.28+ ARM64

folio_pdf-0.0.3-py3-none-macosx_11_0_x86_64.whl (4.3 MB view details)

Uploaded Python 3macOS 11.0+ x86-64

folio_pdf-0.0.3-py3-none-macosx_11_0_arm64.whl (4.0 MB view details)

Uploaded Python 3macOS 11.0+ ARM64

folio_pdf-0.0.3-py3-none-any.whl (30.6 MB view details)

Uploaded Python 3

File details

Details for the file folio_pdf-0.0.3.tar.gz.

File metadata

  • Download URL: folio_pdf-0.0.3.tar.gz
  • Upload date:
  • Size: 30.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.12.7 {"installer":{"name":"uv","version":"0.12.7","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}

File hashes

Hashes for folio_pdf-0.0.3.tar.gz
Algorithm Hash digest
SHA256 fe30c39f9b489b3da1ba90e99e2a71a26de2174729a7a48691dda8a0785968fd
MD5 ca6aeebc680c96e6a14fec27774404dd
BLAKE2b-256 481be0efc1a748e9f29eb3256c164d4e06e8e92a0669d90e4fae4dcc1e5a30ed

See more details on using hashes here.

File details

Details for the file folio_pdf-0.0.3-py3-none-win_amd64.whl.

File metadata

  • Download URL: folio_pdf-0.0.3-py3-none-win_amd64.whl
  • Upload date:
  • Size: 7.7 MB
  • Tags: Python 3, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.12.7 {"installer":{"name":"uv","version":"0.12.7","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}

File hashes

Hashes for folio_pdf-0.0.3-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 3abad73fb68ad70139a1721c8dfcf2497f3a856f643c851a0c530b27525232c3
MD5 88da7f5ced760541df26a455aa9a6a86
BLAKE2b-256 bfd4eb19a39e2f44fd17f3ac37cc758d0f98a988ce0264d0c1b5ccdf7f745d97

See more details on using hashes here.

File details

Details for the file folio_pdf-0.0.3-py3-none-manylinux_2_28_x86_64.whl.

File metadata

  • Download URL: folio_pdf-0.0.3-py3-none-manylinux_2_28_x86_64.whl
  • Upload date:
  • Size: 7.8 MB
  • Tags: Python 3, manylinux: glibc 2.28+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.12.7 {"installer":{"name":"uv","version":"0.12.7","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}

File hashes

Hashes for folio_pdf-0.0.3-py3-none-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 e451351ae9fdfa8b582cc3baa012b90f885b99d3826bb279aee35811e7b93cf9
MD5 958df84bf57c5923e3981bac6e2bb64d
BLAKE2b-256 0cf4dcb1ae0ddd7cf4c8206a9c0a9908d1b839919ceac67e9b85268da5e95ec7

See more details on using hashes here.

File details

Details for the file folio_pdf-0.0.3-py3-none-manylinux_2_28_aarch64.whl.

File metadata

  • Download URL: folio_pdf-0.0.3-py3-none-manylinux_2_28_aarch64.whl
  • Upload date:
  • Size: 7.1 MB
  • Tags: Python 3, manylinux: glibc 2.28+ ARM64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.12.7 {"installer":{"name":"uv","version":"0.12.7","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}

File hashes

Hashes for folio_pdf-0.0.3-py3-none-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 f379bdb6968f5f864464f2cb3c12e95763a333bbd83e3c8578b1fad794a937fa
MD5 a4311d1bcc177227de8c0c15386c7959
BLAKE2b-256 df6af15b83dbc5b0fbca0bc5ebbd5b007635abb963ee077802935de0aa9f2647

See more details on using hashes here.

File details

Details for the file folio_pdf-0.0.3-py3-none-macosx_11_0_x86_64.whl.

File metadata

  • Download URL: folio_pdf-0.0.3-py3-none-macosx_11_0_x86_64.whl
  • Upload date:
  • Size: 4.3 MB
  • Tags: Python 3, macOS 11.0+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.12.7 {"installer":{"name":"uv","version":"0.12.7","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}

File hashes

Hashes for folio_pdf-0.0.3-py3-none-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 6904cdb6e71692619e70157f21c927e180e95f67ea43bdc75d1b239ab196fdf0
MD5 98a68bcccdebb444e89b38764b8b3b75
BLAKE2b-256 9d9d3d67d985a187c5ae364ed5e7826a2bbb43cb7697ed46a9780e2afca68679

See more details on using hashes here.

File details

Details for the file folio_pdf-0.0.3-py3-none-macosx_11_0_arm64.whl.

File metadata

  • Download URL: folio_pdf-0.0.3-py3-none-macosx_11_0_arm64.whl
  • Upload date:
  • Size: 4.0 MB
  • Tags: Python 3, macOS 11.0+ ARM64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.12.7 {"installer":{"name":"uv","version":"0.12.7","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}

File hashes

Hashes for folio_pdf-0.0.3-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1934aff999f9a9a270fec9ae95232cbf9f1c243eb893de4c297f1558448f08d4
MD5 6ecfed7cdb0b6ec1744113c707dc4c6a
BLAKE2b-256 51a19a5344af360d24e8d45259e49912999e63fca8db9acf0debd84a6593a2ee

See more details on using hashes here.

File details

Details for the file folio_pdf-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: folio_pdf-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 30.6 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.12.7 {"installer":{"name":"uv","version":"0.12.7","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}

File hashes

Hashes for folio_pdf-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 a02be4d00fb7bc2669e3d5bd4c444ccd569933fd3eebe56fb179e5bea0e5f3ae
MD5 a29f4bb6c8fe9240006261bff5378228
BLAKE2b-256 747e90e6c5472a80fd171bfccad8cef08b989bab0b1dab30ad88ce9a661e7cdc

See more details on using hashes here.

Release history Release notifications | RSS feed

0.1.0

7 files

This release

0.0.3 This release

7 files

0.0.2

6 files

0.0.1

2 files

0.0.0

2 files

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