Highlighted

Assign group of words to variable

New Here ,
Dec 23, 2019

Copy link to clipboard

Copied

What I want to do is simply highlight about 8 words to read into a variable.

Set acroPDPage = acroPageView.GetPage()
Set acroPDTextSel = acroPDPage.CreateWordHilite(acroHiList)
If acroPDTextSel Is Nothing Then
Debug.Print "Failed to CreateWordHilite."
End If
' ******* Set that as the current text selection and show it *******
Call acroAVDoc.SetTextSelection(acroPDTextSel)
Call acroAVDoc.ShowTextSelect

Topics

Edit and convert PDFs

Views

53

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Assign group of words to variable

New Here ,
Dec 23, 2019

Copy link to clipboard

Copied

What I want to do is simply highlight about 8 words to read into a variable.

Set acroPDPage = acroPageView.GetPage()
Set acroPDTextSel = acroPDPage.CreateWordHilite(acroHiList)
If acroPDTextSel Is Nothing Then
Debug.Print "Failed to CreateWordHilite."
End If
' ******* Set that as the current text selection and show it *******
Call acroAVDoc.SetTextSelection(acroPDTextSel)
Call acroAVDoc.ShowTextSelect

Topics

Edit and convert PDFs

Views

54

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Dec 23, 2019 0
Most Valuable Participant ,
Dec 23, 2019

Copy link to clipboard

Copied

You’ve said what you want to do, and you’ve showed some code, but what’s your question, please?

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Dec 23, 2019 0
New Here ,
Dec 24, 2019

Copy link to clipboard

Copied

How do you highlight a group of words, read them into a variable, save the results to a file or table?  There is an outline embedded in the PDF.  There are various names of tribes that are NOT in alphabetical order.  The order must be numberic, following the outline.  The numbers ("1. ", "2. ", etc.) will always be starting with the first character on a line.  I don't even know how to navigate to, much less read any particular line of a given page.  After the numbers are information pertaining to a certain tribe, ie. "Apache Tribe".

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Dec 24, 2019 0
Most Valuable Participant ,
Dec 24, 2019

Copy link to clipboard

Copied

See JavaScript getPageNthWordQuads. A lot of work. 

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Dec 24, 2019 1