diff --git a/Sources/ocr.swift b/Sources/ocr.swift index ed1d648..b3480f2 100644 --- a/Sources/ocr.swift +++ b/Sources/ocr.swift @@ -191,7 +191,7 @@ struct MacOSVisionOCR: ParsableCommand { } private func isImageFile(_ filePath: String) -> Bool { - let imageExtensions = ["jpg", "jpeg", "png", "webp"] + let imageExtensions = ["jpg", "jpeg", "png", "webp", "pdf"] return imageExtensions.contains((filePath as NSString).pathExtension.lowercased()) }