Extracting value from pdf and changing file name

Get help with installation and running here.

Moderators: DataMystic Support, Moderators

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

Extracting value from pdf and changing file name

Postby tacobell1234 » Tue Jul 08, 2008 7:59 pm

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: 2138
Joined: Mon Jun 30, 2003 12:32 pm
Location: Melbourne, Australia
Contact:

Re: Extracting value from pdf and changing file name

Postby DataMystic Support » Thu Jul 10, 2008 1:15 pm

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.
Regards,

Simon Carter, http://DataMystic.com/forums/index.php
http://PredictBGL.com - Insulin dose calculator for Type 1 diabetes
http://DownloadPipe.com - 250,000 free software downloads
http://DetachPipe.com - send huge email attachments


Return to “TextPipe Tips and Tricks, Questions and Support”

Who is online

Users browsing this forum: No registered users and 6 guests