// OCR the first page of a PDF with Apple's Vision framework. swift ocr_page1.swift file.pdf import Foundation import PDFKit import Vision import AppKit let url = URL(fileURLWithPath: CommandLine.arguments[1]) guard let doc = PDFDocument(url: url) else { exit(1) } for i in 0..