[package]
name = "pdfluent"
version = "1.0.0-beta.5"
edition = "2021"
rust-version = "1.75"
authors = ["PDFluent Contributors <team@pdfluent.com>"]
license-file = "LICENSE"
repository = "https://github.com/pdfluent/examples"
homepage = "https://pdfluent.com"
documentation = "https://pdfluent.com/docs"
readme = "README.md"
description = "Pure-Rust PDF SDK with XFA, PDF/A, digital signatures, and WASM support."
keywords = ["pdf", "sdk", "document", "forms", "signatures"]
categories = ["text-processing", "rendering"]
[features]
default = ["signing", "pdfa", "redaction"]
async-tokio = ["dep:tokio"]
signing = []
pdfa = ["dep:pdf-compliance"]
redaction = []
ocr-tesseract = []
ocr-paddle = []
html-to-pdf = []
docx-export = []
xlsx-export = []
pptx-export = []
xfa-flatten = []
wasm = []
internal-legacy = []
tracing = ["dep:tracing"]
[dependencies]
pdf-engine = { path = "../pdf-engine", version = "=1.0.0-beta.6" }
lopdf = { package = "pdfluent-lopdf", path = "../lopdf", version = "=0.39.3", default-features = false }
pdf-manip = { path = "../pdf-manip", version = "=1.0.0-beta.5" }
pdf-sign = { package = "pdfluent-sign", path = "../pdf-sign", version = "=1.0.0-beta.7" }
pdf-redact = { path = "../pdf-redact", version = "=1.0.0-beta.5" }
pdf-compliance = { path = "../pdf-compliance", version = "=1.0.0-beta.7", optional = true }
tokio = { version = "1", features = ["rt", "fs"], optional = true }
tracing = { version = "0.1", optional = true }
serde = { workspace = true }
serde_json = { workspace = true }
sha2 = { workspace = true }
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
pdf-docx = { path = "../pdf-docx", version = "=1.0.0-beta.6" }
pdf-render = { path = "../pdf-render", version = "=1.0.0-beta.6" }
png = "0.17"
image = { version = "0.25", default-features = false, features = ["jpeg"] }
[target.'cfg(all(target_arch = "wasm32", target_os = "unknown"))'.dependencies]
getrandom = { version = "0.2", features = ["js"] }
[dev-dependencies]
lopdf = { package = "pdfluent-lopdf", path = "../lopdf", version = "=0.39.3", default-features = false }
criterion = { version = "0.5", default-features = false, features = ["cargo_bench_support"] }
[[bench]]
name = "facade"
harness = false
[lints.rust]
unsafe_code = "forbid"
missing_docs = "warn"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]