[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
+2
View File
@@ -17,6 +17,7 @@ mod pages;
mod reader;
mod redact;
mod security;
mod word;
pub use compress::{CompressPreset, Compressed, EMAIL_TARGET, compress};
pub use edit::*;
@@ -27,6 +28,7 @@ pub use pages::*;
pub use reader::*;
pub use redact::{RedactOptions, Redacted, Redaction, redact};
pub use security::{is_encrypted, protect, unlock};
pub use word::{WordOptions, WordResult, to_word};
/// lopdf loading with the caps Pictor uses everywhere (a stream may decompress to at most 256 MiB).
pub(crate) fn lopdf_load(bytes: &[u8], password: Option<&str>) -> Result<lopdf::Document, PdfError> {