Skip to main content
Participant
February 27, 2023
Question

How to find the XY position a Specific Word on PDF Page

  • February 27, 2023
  • 1 reply
  • 1814 views

Dear All,

I use Acrobat Pro for my purpose. I use a small VBA Macro to split a merged pdf document. there is a word/Number (Eg. Invoice Numbers) in a specific place on every split file. I hope to use this word/Number as the file name. 

 

so,  please explain how to find the XY position in a Specific Word on PDF Page using Exel VBA.

 

Thanks,

 

Priyantha.

This topic has been closed for replies.

1 reply

try67
Community Expert
Community Expert
February 27, 2023

JavaScript has a method that returns the location of each word, but it uses something called quads to define that are.

Read the documentation of getPageNthWordQuads for more details.

Participant
February 27, 2023

Sorry, I am not have an idea of JavaScript.

try67
Community Expert
Community Expert
February 27, 2023

I'm not sure there's a native VBA command for this, so you should starting learning it...