Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

JavaScript in Acrobat Save As Found Text

Status
Not open for further replies.

dpoag

Programmer
Nov 11, 2021
2
US
I work with pdfs on a daily basis that contain the text OCA/<12 character text>. I'm hoping to obtain Acrobat Javascript code that will copy the 12 character text that follows OCA/ and "Save As" the found 12 character text + the word "MISC" (i.e. X--XXXXXXXXX MISC). I should mention the 12 characters always include the two hyphens in space 2 and 3 from the left (not sure if that matters) and OCA/ is never in the same area of the page however will always be found on the first page. I've learned from other forums that this possibly involves using the getPageNthWord method and folder level javascript files stored in the Acrobat JavaScript folder. Your script is highly appreciated. Example image attached. Thank you in advance. Link
 
Please disregard. This has been posted elsewhere. Thank you.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top