Acrobat User Community Forums

You are not logged in.     Log in to your AUC account.     Don't have an account? Sign up today

#1 2008-01-11 12:54:12

MartinPerry
Member
Registered: 2007-10-17
Posts: 0

Batch File Processing and Writing

I am attempting to write a batch file. I want the batch to look at a 5000 page document and specifically look at lines 4 and 5 of each individual page. I then want it to automatically insert bookmarks based on the information read. Also, it needs to omit any and all duplicates. Can this be done?


My Product Information:
Acrobat Pro 8.1 / Windows

Offline

 

#2 2008-01-14 17:16:04

thomp
Member

Registered: 2007-04-23
Posts: 756

Re: Batch File Processing and Writing

Since you are operating on a single PDF you don't need a batch sequence.  What you need is a folder level automation script.  But with a good knowledge of Acrobat JavaScript you can do this.

First, Text in a PDF is not organized in lines.  Each piece of text is place with X and Y coordinates.  But you can estimate the location of the lines you want to examine and then search for the text in the lines based on location.  You'll these two Acrobat JavaScript functions:

doc.getPageNthWord() and doc.getPageNthWordQuad()

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson

AcrobatUsers.com  >>  User Groups • News • Events • Articles • Blogs • How To • Resources • Member Log in