These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Editing pdf content programmatically

dfxoreilly
Registered: Mar 12 2010
Posts: 4

I am developing an application to extract certain features from a PDF and programmatically edit those features according to prespecified algorithms. For example an API to extract the location of a particular image or piece of text (say upper left corner of text box) would be extremely useful).

My Product Information:
Acrobat Pro 10.0, Windows
try67
Expert
Registered: Oct 30 2008
Posts: 2398
You need to define what you mean by "certain features". Extracting the location of an image is not possible with JavaScript. However, you can get the location (in quad form) of a certain word.

- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com

dfxoreilly
Registered: Mar 12 2010
Posts: 4
Suppose a PDF contained a bar code and one wanted to change the color of the bar code from black to red programmatically.
try67
Expert
Registered: Oct 30 2008
Posts: 2398
Not with JavaScript.

- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com

gkaiseril
Online
Expert
Registered: Feb 23 2006
Posts: 4307
If you could make that bar code a from field, then JavaScript could perform the task.

George Kaiser