[package]
edition = "2024"
rust-version = "1.89"
name = "office2pdf"
version = "0.3.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Convert DOCX, XLSX, and PPTX files to PDF using pure Rust"
readme = "README.md"
keywords = [
"pdf",
"docx",
"xlsx",
"pptx",
"converter",
]
categories = ["text-processing"]
license = "Apache-2.0"
repository = "https://github.com/developer0hye/office2pdf"
[features]
wasm = ["wasm-bindgen"]
[lib]
name = "office2pdf"
path = "src/lib.rs"
[[example]]
name = "custom_options"
path = "examples/custom_options.rs"
[[example]]
name = "from_bytes"
path = "examples/from_bytes.rs"
[[example]]
name = "simple_convert"
path = "examples/simple_convert.rs"
[[test]]
name = "docx_fixtures"
path = "tests/docx_fixtures.rs"
[[test]]
name = "perf_validation"
path = "tests/perf_validation.rs"
[[test]]
name = "pptx_fixtures"
path = "tests/pptx_fixtures.rs"
[[test]]
name = "xlsx_fixtures"
path = "tests/xlsx_fixtures.rs"
[[bench]]
name = "conversion"
path = "benches/conversion.rs"
harness = false
[dependencies.comemo]
version = "0.5"
[dependencies.docx-rs]
version = "0.4"
[dependencies.quick-xml]
version = "0.38"
[dependencies.serde]
version = "1"
[dependencies.serde_json]
version = "1"
[dependencies.thiserror]
version = "2"
[dependencies.typst]
version = "0.14"
[dependencies.typst-kit]
version = "0.14"
features = [
"fonts",
"embed-fonts",
]
default-features = false
[dependencies.typst-pdf]
version = "0.14"
[dependencies.umya-spreadsheet]
version = "2"
[dependencies.wasm-bindgen]
version = "0.2"
optional = true
[dependencies.zip]
version = "0.6"
features = ["deflate"]
default-features = false
[dev-dependencies.criterion]
version = "0.5"
features = ["html_reports"]
[dev-dependencies.paste]
version = "1"
[target.'cfg(target_arch = "wasm32")'.dependencies.getrandom]
version = "0.3"
features = ["wasm_js"]
[target.'cfg(target_arch = "wasm32")'.dependencies.getrandom_02]
version = "0.2"
features = ["js"]
package = "getrandom"
[target.'cfg(target_arch = "wasm32")'.dev-dependencies.wasm-bindgen-test]
version = "0.3"