[package]
name = "pdf-interpret"
version = "0.5.4"
description = "A crate for interpreting PDF files."
edition = "2024"
authors = ["Laurenz Stampfl <laurenz.stampfl@gmail.com>"]
repository = "https://github.com/pdfluent/examples"
homepage = "https://pdfluent.com"
documentation = "https://pdfluent.com/docs"
license = "Apache-2.0 OR MIT"
readme = "README.md"

[dependencies]
pdf-font = { path = "../pdf-font", version = "=1.0.0-beta.3" }
pdf-syntax = { path = "../pdf-syntax", features = ["std", "images"], version = "=0.5.2" }
kurbo = "0.13.0"
smallvec = "1"
log = "0.4"
moxcms = "0.7.11"
phf = { version = "0.13.1", features = ["macros"] }
skrifa = "0.40.0"
ttf-parser = { workspace = true }
yoke = { version = "0.8", features = ["derive"] }
siphasher = "1"
bitflags = "2.10"
rustc-hash = "2"

[dev-dependencies]
image = { version = "0.25", default-features = false, features = ["png"] }

[features]
default = ["embed-fonts", "embed-cmaps"]
# Embed a light-weight set of fonts (around 240KB) that can be used as a substitute for the 14 PDF standard fonts.
embed-fonts = []
# Embed the 61 predefined cmaps into the binary. Adds about ~250KB of brotli-encoded data.
embed-cmaps = ["pdf-font/embed-cmaps"]

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