[package]
name = "pdf2md"
version = "0.1.0"
edition = "2024"
rust-version = "1.85"
description = "PDF → Markdown extractor with figure rasterization, table & banner detection. Built on pdfium-render."
license = "MIT"
authors = ["Martin Miksanik <miksanik@gmail.com>"]
readme = "README.md"
repository = "https://github.com/xmiksay/pdfparser"
homepage = "https://github.com/xmiksay/pdfparser"
documentation = "https://docs.rs/pdf2md"
keywords = ["pdf", "markdown", "pdfium", "extract", "converter"]
categories = ["text-processing", "parsing", "command-line-utilities"]
include = [
"src/**/*.rs",
"Cargo.toml",
"LICENSE",
"README.md",
"CHANGELOG.md",
]
[lib]
name = "pdf2md"
path = "src/lib.rs"
[[bin]]
name = "pdf2md"
path = "src/bin/pdf2md.rs"
required-features = ["cli"]
[features]
default = ["cli"]
cli = ["dep:clap"]
[dependencies]
pdfium-render = "0.9"
sha2 = "0.11"
hex = "0.4"
tracing = "0.1"
thiserror = "1"
tokio = { version = "1", features = ["rt", "macros"] }
image = { version = "0.25", default-features = false, features = ["png"] }
regex = "1"
clap = { version = "4", features = ["derive"], optional = true }
[dev-dependencies]
tokio = { version = "1", features = ["macros", "rt-multi-thread"] }
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]