Skim , бесплатная программа для просмотра PDF, может быть вам интересна. Это сценарий и содержит команду AppleScript для извлечения текста из определенных страниц PDF. После загрузки Skim вы можете запустить этот скрипт:
tell application "Skim"
open (POSIX file "/path/to/PDF/document.pdf")
set the stuff to (get text for page 1 of document 1) as string --change 'page 1' to whatever page number you need
--if you want all the pages, just use 'every page'
end tell
say the stuff using "Fred" saving to file (((path to desktop) as string) & "audio.aiff")
Удачного кодирования! :)