pdfni 0.2.0

Extract tables and Markdown from text-embedded PDFs, with a built-in pure-Rust PDF reader adapted from Mozilla pdf.js.
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
rust-version = "1.85"
name = "pdfni"
version = "0.2.0"
build = false
include = [
    "/src/**",
    "/examples/**",
    "/data/bcmaps/**",
    "/README.md",
    "/LICENSE",
    "/NOTICE",
    "!.DS_Store",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Extract tables and Markdown from text-embedded PDFs, with a built-in pure-Rust PDF reader adapted from Mozilla pdf.js."
readme = "README.md"
license = "Apache-2.0"
repository = "https://github.com/honononta-2/pdfni"

[features]
cmap-cns1 = []
cmap-gb1 = []
cmap-japan1 = []
cmap-korea1 = []
default = [
    "document",
    "cmap-gb1",
    "cmap-cns1",
    "cmap-japan1",
    "cmap-korea1",
]
document = ["reader"]
reader = [
    "text",
    "dep:flate2",
    "dep:aes",
    "dep:cbc",
    "dep:md-5",
    "dep:sha2",
]
text = []

[lib]
name = "pdfni"
crate-type = [
    "lib",
    "cdylib",
]
path = "src/lib.rs"

[[bin]]
name = "pdfni"
path = "src/bin/main.rs"
required-features = ["document"]

[[example]]
name = "reader_probe"
path = "examples/reader_probe.rs"
required-features = ["reader"]

[[example]]
name = "reader_smoke"
path = "examples/reader_smoke.rs"
required-features = ["reader"]

[[example]]
name = "text_probe"
path = "examples/text_probe.rs"
required-features = ["document"]

[dependencies.aes]
version = "0.8"
optional = true

[dependencies.anyhow]
version = "1.0.102"

[dependencies.cbc]
version = "0.1"
optional = true

[dependencies.flate2]
version = "1"
optional = true

[dependencies.md-5]
version = "0.10"
optional = true

[dependencies.serde]
version = "1"
features = ["derive"]

[dependencies.serde_json]
version = "1"
features = ["float_roundtrip"]

[dependencies.sha2]
version = "0.10"
optional = true

[dependencies.thiserror]
version = "2"

[target.'cfg(target_arch = "wasm32")'.dependencies.wasm-bindgen]
version = "0.2"

[profile.release]
lto = "fat"
codegen-units = 1