Applescript Summarize Command - how to process PDF files?

I’m stuck in applescript…I’m putting together an applescript that reads a set of PDF files in a folder and returns each PDf file summarized using the applescript summarize command.

Can’t seem to wrap my head around the logic needed…Any help is much appreciated!

Last I checked, AppleScript’s ‘Summarize’ only works for text type files. That’s what it says in the Standard Additions dictionary.
The Shell’s ‘textutil -convert’ won’t be much help with pdf’s either since it’s currently limited to files of type txt, html, rtf, rtfd, doc, docx, wordml, odt, or webarchive.

Thanks, that explains why I’m stuck - I turned to automator for this one and worked it out by exporting pdf to text first (automator acrtion), and the add applescript box to summarize the txt - the combination of automator and applescript did the trick.