Hello Julien,
you might take a look at Skim, which is pretty scriptable.
It doesn’t support grep (as far as I see), but you can extract the text from the PDF, search with grep in the text (e.g. using TextWrangler or BBEdit) and then search in the PDF file for the found chunk using Skim. You might be able to color the result, but I didn’t test that.
Cheers,
Thomas
> Am 04.03.2017 um 00:52 schrieb Shane Stanley <email@hidden>:
>
> On 3 Mar 2017, at 11:20 pm, Julien Battist <email@hidden> wrote:
>>
>> Before I dive dieper in this I would like to know the best approach to grab data from a pdf file.(with eg. Acrobat Pro)
>>
>> Intention is to grab 2 regular expressions:
>
> Acrobat Pro scripting does not support that directly. You would probably have to extract all text, search on that, then use the found values in a literal search.
>
>> Then color the hits in the pdf file and save the pdf file to identify whether the regular _expression_ has been found (manual visible check later).
>
> I suspect you are going to be out of luck there, too, short of using GUI scripting. Acrobat's scriptability is rather limited.
>
> --
> Shane Stanley <email@hidden>
> <
www.macosxautomation.com/applescript/apps/>, <latenightsw.com>
>
>
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> AppleScript-Users mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
> Archives:
http://lists.apple.com/archives/applescript-users
>
> This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives:
http://lists.apple.com/archives/applescript-users
This email sent to email@hidden