From 640ce8334cc09b3ce6e24da7174415087609b2ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs=20P=C3=A9rex?= Date: Fri, 23 May 2025 19:50:47 +0100 Subject: [PATCH] feat: - Add support for .doc and .docx files - Use FILES_TO_CONVERT constant for document types to convert to PDF - Refactor code, file checking and help text for formats --- src/directory_processor.rs | 2 +- src/main.rs | 1 - src/tools.rs | 1 + 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/directory_processor.rs b/src/directory_processor.rs index aca8a74..2ccfb7d 100644 --- a/src/directory_processor.rs +++ b/src/directory_processor.rs @@ -176,4 +176,4 @@ impl DirectoryProcessor { Ok(()) } -} \ No newline at end of file +} diff --git a/src/main.rs b/src/main.rs index ed2ee1c..f31909a 100644 --- a/src/main.rs +++ b/src/main.rs @@ -31,4 +31,3 @@ fn main() { eprintln!("Error processing directory: {}", e); } } - diff --git a/src/tools.rs b/src/tools.rs index 58725c9..d96e675 100644 --- a/src/tools.rs +++ b/src/tools.rs @@ -2,6 +2,7 @@ use std::path::Path; use std::process::Command; use std::env; + pub fn get_soffice_path() -> Result { // First try environment variable if set if let Ok(path) = env::var("LIBREOFFICE_PATH") {