graphics/py-pypdfium2 5.13.0
Python bindings to the PDFium PDF rendering library
- Repository
- FreeBSD ports
- Maintainer
- [email protected]
- Last update
- Commit
6a1023719b- License
- APACHE20, BSD3CLAUSE, MIT
- Categories
- graphics, python
Description
pypdfium2 is a set of Python bindings to PDFium, the open-source PDF rendering engine developed by Google and used in Chromium.
It provides a comprehensive API for working with PDF files including:
- Rendering PDF pages to images (Pillow, NumPy arrays, or raw bytes)
- Text extraction with character-level metadata
- Table of contents access
- Form field handling
- PDF attachment access
- Page object model (paths, images, text)
NOTE: This port uses the PDFium shared library provided by graphics/pdfium.
Install
As a binary package — by origin, or by package name:
pkg install graphics/py-pypdfium2
pkg install py312-pypdfium2
From the ports tree:
cd /usr/ports/graphics/py-pypdfium2/ && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= py312-pypdfium2>0:graphics/py-pypdfium2
Packages
The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.
| Repository | aarch64 | amd64 | armv6 | armv7 | i386 |
|---|---|---|---|---|---|
| FreeBSD:14:latest | - | 5.13.0 | - | - | - |
| FreeBSD:14:quarterly | - | 5.13.0 | n/a | - | - |
| FreeBSD:15:latest | 5.13.0 | 5.13.0 | n/a | - | - |
| FreeBSD:15:quarterly | - | 5.13.0 | n/a | n/a | n/a |
| FreeBSD:16:latest | - | 5.13.0 | n/a | n/a | n/a |
| FreeBSD:16:quarterly | n/a | n/a | n/a | n/a | n/a |
Dependencies
As this port's Makefile names them.
Build 3
${PYTHON_PKGNAMEPREFIX}packaging>0: devel/py-packaging${PYTHON_PKGNAMEPREFIX}setuptools>0: devel/py-setuptools${PYTHON_PKGNAMEPREFIX}wheel>0: devel/py-wheel
Runtime 1
pdfium>=8066: graphics/pdfium
Test 3
${PYTHON_PKGNAMEPREFIX}numpy>0: math/py-numpy${PYTHON_PKGNAMEPREFIX}pillow>0: graphics/py-pillow${PYTHON_PKGNAMEPREFIX}tabulate>0: devel/py-tabulate
The full lists below include those, and their dependencies in turn.
All build dependencies 16
All run dependencies 18
Required by 25
- finance/py-openbb
- finance/py-openbb-federal-reserve
- finance/py-openbb-nasdaq
- finance/py-openbb-tmx
- graphics/py-olmocr
- graphics/py-pdfplumber
- misc/py-crewai
- misc/py-crewai-tools
- textproc/py-docling
- textproc/py-docling-agent
- textproc/py-docling-analysis-framework
- textproc/py-docling-cvat-tools
- textproc/py-docling-demo
- textproc/py-docling-enhanced-onnx
- textproc/py-docling-eval
- textproc/py-docling-extractor
- textproc/py-docling-glm-ocr
- textproc/py-docling-graph
- textproc/py-docling-haystack
- textproc/py-docling-hierarchical-pdf
- textproc/py-docling-langchain
- textproc/py-docling-litellm-picture-description
- textproc/py-docling-ocr-mistral
- textproc/py-docling-ocr-onnxtr
- textproc/py-docling-sdg
Configuration
No options to configure.
- USES
- python
- Service scripts
- none
Files
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| pypdfium2-team-pypdfium2-5.13.0_GH0.tar.gz | 643105 | c8d9a7eb69693dd858bd9c14bdbc59f35bcee13821e77ea2766a1d905501366d |