pdfboss-cli 1.2.0

PDF command line: PDF to text, Markdown and PNG, image extraction, PDF creation, and the json/hex/q/tui explorer
[package]
name = "pdfboss-cli"
description = "PDF command line: PDF to text, Markdown and PNG, image extraction, PDF creation, and the json/hex/q/tui explorer"
version.workspace = true
edition.workspace = true
license.workspace = true
repository.workspace = true
readme.workspace = true
keywords = ["pdf", "cli", "pdf-to-text", "pdf-to-png", "markdown"]
categories = ["command-line-utilities", "text-processing"]

[dependencies]
pdfboss-core = { workspace = true }
pdfboss-text = { workspace = true }
pdfboss-output = { workspace = true }
pdfboss-render = { workspace = true }
pdfboss-aio = { workspace = true, features = ["http"] }
pdfboss-tui = { workspace = true }
pdfboss-write = { workspace = true }
pdfboss-markdown = { workspace = true }
clap = { version = "4", features = ["derive"] }
serde = { version = "1", features = ["derive"] }
serde_json = { version = "1", features = ["preserve_order"] }
toml = "0.8"
base64 = "0.22"
tokio = { version = "1", features = ["rt", "net", "time"] }
futures-core = "0.3"
jaq-core = "2"
jaq-std = "2"
jaq-json = { version = "1", features = ["serde_json"] }

[dev-dependencies]
pdfboss-testkit = { path = "../pdfboss-testkit" }
png = "0.18"

[features]
# Bundled substitute faces are on by default: `cargo install pdfboss-cli`
# must yield a binary whose `render`/`tui` can draw text for PDFs with
# non-embedded fonts out of the box (~4 MB of OFL faces; opt out with
# --no-default-features).
default = ["substitute-fonts", "predefined-cmaps"]
# Passthrough so the feature is spelled `substitute-fonts` here too, without
# the caller needing the non-obvious `pdfboss-render/substitute-fonts`.
substitute-fonts = ["pdfboss-render/substitute-fonts"]
# The predefined CJK CMap set (ISO 32000 Table 118, ~830 KB) is on by
# default so `pdfboss text` reads Shift-JIS/EUC/Big5/GBK/UHC-coded Type0
# fonts out of the box; opt out with --no-default-features.
predefined-cmaps = ["pdfboss-core/predefined-cmaps"]

[[bin]]
name = "pdfboss"
path = "src/main.rs"