Data From Field and PDF Files

isenhowe
Posts: 7
Joined: Mon Feb 20, 2006 2:49 pm

Data From Field and PDF Files

Post by isenhowe »

I'm trying to use the "Data From Field" feature to replace garbage titles in some of our PDF documents that are indexed.

My config is as follows:
Search: Layout 1
Replace: Some Text
Meta: [blank]
Field: Title
Which Field: Title


I have two questions.

1. This doesn't appear to work with PDF documents. Am I doing something wrong or is this not supported?

2. If it is supported, how can I then replace the Title of the PDF with something like the first few words of the beginning paragraph of the document?
User avatar
mark
Site Admin
Posts: 5519
Joined: Tue Apr 25, 2000 6:56 pm

Data From Field and PDF Files

Post by mark »

It should work. But it appears that a side effect of plugin split can break it for some files. Setting Plugin split Depth to -1 should fix it.
isenhowe
Posts: 7
Joined: Mon Feb 20, 2006 2:49 pm

Data From Field and PDF Files

Post by isenhowe »

That did fix it. Thanks.

As for the replace string, is there any way I can reference another field (e.g. replace the title with contents of the description)?
User avatar
mark
Site Admin
Posts: 5519
Joined: Tue Apr 25, 2000 6:56 pm

Data From Field and PDF Files

Post by mark »

Set "Field" to Description and "Which Field" to Title.
isenhowe
Posts: 7
Joined: Mon Feb 20, 2006 2:49 pm

Data From Field and PDF Files

Post by isenhowe »

Yes, but then the Description is the area searched.

I'd like to search Title for the string "Layout 1", then if found, replace the Title with the contents of the Description.

I was just wondering if there was some variable reference to Description that I could include within the Replace field.
User avatar
mark
Site Admin
Posts: 5519
Joined: Tue Apr 25, 2000 6:56 pm

Data From Field and PDF Files

Post by mark »

Sorry, no. An interesting idea though.