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.1.0.tar.gz (32.0 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.1.0-py3-none-win_amd64.whl (8.1 MB view details)

Uploaded Python 3Windows x86-64

folio_pdf-0.1.0-py3-none-manylinux_2_28_x86_64.whl (8.1 MB view details)

Uploaded Python 3manylinux: glibc 2.28+ x86-64

folio_pdf-0.1.0-py3-none-manylinux_2_28_aarch64.whl (7.4 MB view details)

Uploaded Python 3manylinux: glibc 2.28+ ARM64

folio_pdf-0.1.0-py3-none-macosx_11_0_x86_64.whl (4.5 MB view details)

Uploaded Python 3macOS 11.0+ x86-64

folio_pdf-0.1.0-py3-none-macosx_11_0_arm64.whl (4.2 MB view details)

Uploaded Python 3macOS 11.0+ ARM64

folio_pdf-0.1.0-py3-none-any.whl (32.1 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: folio_pdf-0.1.0.tar.gz
  • Upload date:
  • Size: 32.0 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.1.0.tar.gz
Algorithm Hash digest
SHA256 3e138538cb54ac5e7aeb3576a0e4e85efbe389cf67bc7ac8c5a622d4b37b78dd
MD5 6cf8869a2dcd7fc701320f44fbd599f9
BLAKE2b-256 da2871bad5be331d5166774f06a35329647a98c5ff1275c95fe490db1ee3ff74

See more details on using hashes here.

File details

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

File metadata

  • Download URL: folio_pdf-0.1.0-py3-none-win_amd64.whl
  • Upload date:
  • Size: 8.1 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.1.0-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 9170397f360c0f537af604be9de94b785c0f575097d045d1dca6b90f989b7d02
MD5 8745404f85e22909ade61a9fe5fead47
BLAKE2b-256 77e227b4b2ddb77e64a0348205528fe16ae417859b8baf59cd9f835938244d26

See more details on using hashes here.

File details

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

File metadata

  • Download URL: folio_pdf-0.1.0-py3-none-manylinux_2_28_x86_64.whl
  • Upload date:
  • Size: 8.1 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.1.0-py3-none-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 3fb39059cdb5f515b096a5a6fcc9e08b834d415d361d74e651374d65769a793c
MD5 0213709d12985ffc64eeeac1e021d13e
BLAKE2b-256 f56d1ed7ce205a57a2fbc7c26222b29bd498e5aab8d6ae76ee44baeb6739a0b9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: folio_pdf-0.1.0-py3-none-manylinux_2_28_aarch64.whl
  • Upload date:
  • Size: 7.4 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.1.0-py3-none-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 1fcc7c6edf052d398066c575fc2dcce4abb70211734b028ef7c17ed352734870
MD5 b5980d8ba5637f643b3222e09ffd6d4b
BLAKE2b-256 9874fa7f372d4deb089e465bb011287cfaecb9504ca942496f94142b0fe4bdf5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: folio_pdf-0.1.0-py3-none-macosx_11_0_x86_64.whl
  • Upload date:
  • Size: 4.5 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.1.0-py3-none-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 5480535bdd87add404ba2555e01617f69c0a2b3ef0279a72f16aa869c54c5908
MD5 5509195fee096c556ec6e4b68806b776
BLAKE2b-256 3d9bed1d982bd7d9116aeb9c37a5eaab899c4a54c26a7af32cdb1b6c77f979ba

See more details on using hashes here.

File details

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

File metadata

  • Download URL: folio_pdf-0.1.0-py3-none-macosx_11_0_arm64.whl
  • Upload date:
  • Size: 4.2 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.1.0-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6fb85228029ba93a1af5c03036fe9589010734232d13ef8ea42b1b5963d6df50
MD5 09ec180eddd2cb2521302139f14ae801
BLAKE2b-256 87e5926b92a56d31b32caaf15b248e108292dc5d0aec22304b078be81e6e2443

See more details on using hashes here.

File details

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

File metadata

  • Download URL: folio_pdf-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 32.1 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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0a5114967192f61baa816b245fa9dcb2cbbcd989225695ac5aacea8b4bc2abcc
MD5 df21fb0341386c04fec1e1ca2af791d0
BLAKE2b-256 c306d07b37a304d98a99a32325bd4afe7e489b0ba6f06955fe5dc32c252d1511

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.0 This release

7 files

0.0.3

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