pdf-engine 1.0.0-beta.6

Unified PDF rendering engine — page rendering, text extraction, thumbnails.
Documentation
[package]
name = "pdf-engine"
version = "1.0.0-beta.6"
edition = "2021"
license-file = "LICENSE"
readme = "README.md"
description = "Unified PDF rendering engine — page rendering, text extraction, thumbnails."
repository = "https://github.com/pdfluent/examples"
homepage = "https://pdfluent.com"
documentation = "https://pdfluent.com/docs"

keywords = ["pdf", "rendering", "text-extraction", "forms"]
categories = ["rendering", "text-processing"]
[lib]
crate-type = ["rlib", "cdylib"]

[dependencies]
pdf-syntax = { path = "../pdf-syntax", version = "=0.5.3" }
pdf-interpret = { path = "../pdf-interpret", version = "=0.5.5" }
lopdf = { package = "pdfluent-lopdf", path = "../lopdf", default-features = false, version = "=0.39.3" }
pdf-render = { path = "../pdf-render", version = "=1.0.0-beta.6" }
pdf-forms = { package = "pdfluent-forms", path = "../pdf-forms", version = "=1.0.0-beta.7" }
pdf-xfa = { path = "../pdf-xfa", optional = true, version = "=1.0.0-beta.7" }
xfa-layout-engine = { path = "../xfa-layout-engine", optional = true, version = "=1.0.0-beta.5" }
formcalc-interpreter = { path = "../formcalc-interpreter", optional = true, version = "=1.0.0-beta.5" }
xfa-json = { path = "../xfa-json", optional = true, version = "=1.0.0-beta.5" }
thiserror = { workspace = true }
kurbo = "0.13.0"
rayon = { version = "1", optional = true }
ocrs = { version = "0.12", optional = true }
rten = { version = "0.24", optional = true }
dirs-sys = { version = "0.3", optional = true }
pdf-ocr = { workspace = true, optional = true, features = ["paddle"] }
reqwest = { workspace = true, optional = true }
base64 = { workspace = true, optional = true }
image = { workspace = true, optional = true }
serde = { workspace = true, optional = true }
serde_json = { workspace = true, optional = true }
hmac = { version = "0.12", optional = true }
sha2 = { version = "0.10", optional = true }
rsa = { version = "0.9", default-features = false, features = ["sha2"], optional = true }
pkcs8 = { version = "0.10", features = ["pem"], optional = true }
time = { version = "0.3", features = ["formatting", "macros"], optional = true }

[features]
default = []
parallel = ["dep:rayon"]
xfa = ["dep:pdf-xfa", "dep:xfa-layout-engine", "dep:formcalc-interpreter", "dep:xfa-json"]
ocr = ["dep:ocrs", "dep:rten", "dep:dirs-sys"]
ocr-mistral = ["dep:reqwest", "dep:base64", "dep:image", "dep:serde", "dep:serde_json"]
ocr-google = ["dep:reqwest", "dep:base64", "dep:image", "dep:serde", "dep:serde_json", "dep:rsa", "dep:pkcs8", "dep:sha2", "dep:time"]
ocr-aws = ["dep:reqwest", "dep:base64", "dep:image", "dep:serde", "dep:serde_json", "dep:hmac", "dep:sha2", "dep:time"]
ocr-azure = ["dep:reqwest", "dep:base64", "dep:image", "dep:serde", "dep:serde_json"]
ocr-cloud = ["ocr-mistral", "ocr-google", "ocr-aws", "ocr-azure"]
ocr-onnx = ["dep:pdf-ocr"]
full = ["parallel", "xfa", "ocr", "ocr-onnx", "ocr-cloud"]

[dev-dependencies]
image = { workspace = true }
lopdf = { workspace = true }

[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]