Symptoms
PDFs are imported using the FlexiCapture Connect or Web Capture Station. In the project, the export of unknown documents is set up to export the files with the original file names using the <SourceFile> tag in the template, but the exported files have incorrect names.
Cause
The FlexiCapture Connect and Web Capture Station don't save the file name of the original file in the <SourceFile> tag.
Resolution
For documents with Document Definitions, the following workarounds are recommended:
- How to use the original file name in the name of the Export File if export runs using FlexiCapture Connect
- <SourceFile> tag content doesn't match the source file name when processing the documents using the Web Capture Station
The Unknown Documents don't have any Document Definitions, so consider the following workaround:
- Create a new Document Definition that will be matched with the documents that can not be matched with "real" Document Definitions:
- Choose the Semi-structured documents.
- There is no need to use any image for this Document Definition.
- Leave the Load FlexiLayout option unchecked.
- Choose the Semi-structured documents.
- In the Export profiles of the new Document Definition create an export to image files and set it up according to your needs. Choose the Errors are irrelevant for the export condition.
- Follow the steps described in the articles above to make the name of the images exported with this Document Definition be the same as the source file.
- Set the assembly for the created document definition:
- Open the Document Definition properties > Assembly tab.
- Set the maximum number of the Document Section to the desired number.
- Enable the key field equality rule and choose the created field that is storing the original file name. It should look like this:
- Open the Document Definition properties > Assembly tab.
- Make sure to turn on the Use first acceptable FlexiLayout option on the project's Document Definitions list and move the created Document Definition to the bottom of the list, so that the created Document Definition would match only with the documents that were not matched with other Document Definitions.
Comments
0 comments
Please sign in to leave a comment.