Extracting value from pdf and changing file name

Get help with installation and running here.

Moderators: DataMystic Support, Moderators, DataMystic Support, Moderators, DataMystic Support, Moderators

Post Reply
tacobell1234
Posts: 1
Joined: Sun Nov 25, 2007 3:57 am

Extracting value from pdf and changing file name

Post by tacobell1234 »

Hello,

I am trying to extract a value from a pdf file and to rename the pdf file with that value. Could you tell me what is wrong with my current filter?
The search filter successfully finds the value, but I can't seem to pass it to the filename.
Thanks.

---
Input : pdf file
|--Convert PDF documents to text
|
|--EasyPattern [['MR'][6 characters]] with []
| | [ ] Match case
| | [ ] Whole words only
| | [ ] Case sensitive replace
| | [ ] Prompt on replace
| | [ ] Skip prompt if identical
| | [ ] First only
| | [ ] Extract matches
| | Maximum text buffer size 4096
| |
| +--Capture to variable @myfile
|
|--Restrict to file name
| |
| +--Replace [BPE] with [@myfile]
| [ ] Match case
| [ ] Whole words only
| [ ] Case sensitive replace
| [ ] Prompt on replace
| [ ] Skip prompt if identical
| [ ] First only
| [ ] Extract matches
|
+--Output to file(s)
[ ] Only update date on changed files
[ ] Append mode
[ ] Change extension to: .txt
[ ] Open output file
Only output modified files Backup mode
User avatar
DataMystic Support
Site Admin
Posts: 2227
Joined: Mon Jun 30, 2003 12:32 pm
Location: Melbourne, Australia
Contact:

Re: Extracting value from pdf and changing file name

Post by DataMystic Support »

From the help file:

The output filename is set before the file contents are processed, so while it is possible to uppercase or search/replace inside the filename, it's not possible to import an external value into it. The reason for this is that the output file so far (ie temp file) MUST be placed in the correct folder (and/or on the correct output drive/device) rather than the system having to move or copy it afterwards with ensuing problems of access rights and disk space.
Post Reply