Previous | Next | (P-PDF) Beginners
Topic: automatic editing of title, subject
Conf: (P-PDF) Beginners, Msg: 43749
From: orthlieb
Date: 5/29/2002 03:53 PM
You'll have to use Acrobat 5.0, batch, and JavaScript.
The JavaScript would identify the appropriate words and extract them using
doc.getPageNthWord:
var cTitle = "";
var cSubject = "";
// Assume the subject/title keywords are on the first page.
// Loop through all words on this page.
for (var i = 0; i < this.getPageNumWords(0); i++) {
var w = this.getPageNthWord(0, i);
// Hard part would be identifying the words and stringing them together
properly.
// Not sure how you would do this?
if (something)
cTitle += " " + w;
else (somethingelse)
cSubject += " " + w;
}
You would then put them in the title/subject:
this.info.title = cTitle;
this.info.subject = cSubject;
Carl 8^)
---
Carl Orthlieb
Sr. Engineering Manager, Acrobat Desktop
Adobe Systems Incorporated
http://www.adobe.com/products/acrobat
orthlieb@adobe.com