How is it possible to parse a filename within ABBYY FC 11 such that part of the filename can be used as a metadata field? For example, suppose the file was called "179989 - MSKU8598475 -7015598.pdf" (without the quotes), and you needed to pull in the first 6 digits or whatever is there before the first "-".
Parse Filename
Was this article helpful?
0 out of 0 found this helpful
Comments
3 comments
Hi,
If you are importing files using hotfolder, you need to create new Service field called "ImageSource". In Data Source tab, choose source "Image source". Afterwards, create new rule something like:
string imageSource = Context.Field("ImageSource").Text;
imageSource = imageSource.Split('-', [0]);
Happy coding.
Best regards,
Vladimir
Hello Vladimir, can you please expand or point us in the right direction on on how we can create the new service field called "ImageSource?" We currently have several hot folders in Project Setup station -> Project -> Image Import Profiles.
Also, where is this "Data Source tab" that you mention.
Including some screenshots would be great.
Thank you.
Hi,
You can create Service field in Document definition. Right click in Fields pane -> Create Field -> Service Field.
Best regards,
Vladimir
Please sign in to leave a comment.