pub fn validate_pdf(val: &str) -> Result<PathBuf>