- 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
This commit is contained in:
Jesús Pérex 2025-05-23 19:50:47 +01:00
parent a0b78e3c7e
commit 640ce8334c
3 changed files with 2 additions and 2 deletions

View File

@ -31,4 +31,3 @@ fn main() {
eprintln!("Error processing directory: {}", e); eprintln!("Error processing directory: {}", e);
} }
} }

View File

@ -2,6 +2,7 @@ use std::path::Path;
use std::process::Command; use std::process::Command;
use std::env; use std::env;
pub fn get_soffice_path() -> Result<String, String> { pub fn get_soffice_path() -> Result<String, String> {
// First try environment variable if set // First try environment variable if set
if let Ok(path) = env::var("LIBREOFFICE_PATH") { if let Ok(path) = env::var("LIBREOFFICE_PATH") {