pub fn download_document<T: Transport>( client: &ApiClient<T>, document_id: u64, output_dir: &Path, original: bool, ) -> Result<PathBuf, AppError>