[pdf] Word: PDF to .docx (headings, paragraphs, tables, images, OCR text for scans); worker ops compress, to_word, page_png

This commit is contained in:
2026-11-17 00:18:20 +01:00
parent a400ff88a6
commit fcc9840fdc
9 changed files with 1481 additions and 788 deletions
Generated
+67
View File
@@ -321,6 +321,22 @@ dependencies = [
"crypto-common",
]
[[package]]
name = "docx-rs"
version = "0.4.22"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7fdf00e8af6d0b3e92d4bbf9b76f773d8b84ea80f310324ad16cbdc2e653e02c"
dependencies = [
"base64",
"crc32fast",
"quick-xml",
"serde",
"serde_json",
"smallvec",
"thiserror",
"zip",
]
[[package]]
name = "ecb"
version = "0.2.1"
@@ -833,6 +849,7 @@ dependencies = [
name = "pictor-pdf"
version = "0.1.0"
dependencies = [
"docx-rs",
"flate2",
"getrandom",
"image",
@@ -841,7 +858,9 @@ dependencies = [
"pictor-meta",
"serde",
"serde_json",
"tempfile",
"thiserror",
"zip",
]
[[package]]
@@ -982,6 +1001,16 @@ version = "2.0.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a993555f31e5a609f617c12db6250dedcac1b0a85076912c436e6fc9b2c8e6a3"
[[package]]
name = "quick-xml"
version = "0.41.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e660451e55124f798a69a5af3f49ccfbefbd41910eefd25caf2393e1f3473ec1"
dependencies = [
"encoding_rs",
"memchr",
]
[[package]]
name = "quote"
version = "1.0.47"
@@ -1161,6 +1190,12 @@ version = "0.4.12"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0c790de23124f9ab44544d7ac05d60440adc586479ce501c1d6d7da3cd8c9cf5"
[[package]]
name = "smallvec"
version = "1.16.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "149309498a5f7334b12ddae0cad8aba81ce785fe91755068867e017cf98fee46"
[[package]]
name = "stringprep"
version = "0.1.5"
@@ -1286,6 +1321,12 @@ dependencies = [
"winnow",
]
[[package]]
name = "typed-path"
version = "0.12.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "54ec2755506471f54baf5e4bb5499d8e510cc1caf271270e778a736bd2d7336c"
[[package]]
name = "typenum"
version = "1.20.1"
@@ -1577,6 +1618,20 @@ dependencies = [
"syn 2.0.119",
]
[[package]]
name = "zip"
version = "8.6.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2d04a6b5381502aa6087c94c669499eb1602eb9c5e8198e534de571f7154809b"
dependencies = [
"crc32fast",
"flate2",
"indexmap",
"memchr",
"typed-path",
"zopfli",
]
[[package]]
name = "zlib-rs"
version = "0.6.8"
@@ -1589,6 +1644,18 @@ version = "1.0.23"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "29666d0abbfad1e3dc4dcf6144730dd3a3ab225bbbdac83319345b1b44ccfc1b"
[[package]]
name = "zopfli"
version = "0.8.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "aaf7fc5d30c28483d93805c4a5e12b05bbb52407fa67c5f8bd552374cd01fb11"
dependencies = [
"bumpalo",
"crc32fast",
"log",
"simd-adler32",
]
[[package]]
name = "zune-core"
version = "0.5.3"