Page 1 of 1

Extracting value from pdf and changing file name

Posted: Tue Jul 08, 2008 7:59 pm
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

Re: Extracting value from pdf and changing file name

Posted: Thu Jul 10, 2008 1:15 pm
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.