Options - Document Naming (SC)

Options - Document Naming (SC)

 

This tab provides options for adjusting the document names to the scanning scenario.

On the left-hand side, you’ll see a list of all options available for document naming depending on the current settings. On the right-hand side, you’ll see a list of options that have been chosen and defined by you for the current scanning profile.

Opened Document Naming-tab

image-20260409-0728371.png

 

Depending on your scanning scenario as well as some other settings, you may choose from the following options.

Option name

Type

Description

Possible Values

Text

Textbox

By adding Text-fields to the naming options, you’re able to add texts to the file names generated by KGS Scan.

e.g.: ScannedDocument_

Please note: These texts are static and do not change.

Strings

Index Value

Combobox

By adding Index Value-fields, you’re able to use defined index fields as file names (if you’ve defined index fields within the Indexing-tab).

e.g.:

  • 20200826

  • kgsuser

Please note: This option is only available when index fields are defined within the Indexing-tab.

All index fields defined in the Indexing-tab

Export Index

Combobox

This option will add consecutive numbering to the file name(s) generated by KGS Scan.

You may choose from three different options:

  • {0:D3} => Consecutive numbering with three digits
    e.g.: 037

  • {0:D4} => Consecutive numbering with four digits
    e.g.: 0042

  • {0:D5} => Consecutive numbering with five digits
    e.g.: 00001

{0:D3}

{0:D4}

{0:D5}

Unique ID

Tag

By adding a Unique ID to the naming options, KGS Scan will generate a GUID (Globally Unique Identifier) for every generated document.

e.g.: f9168c5e-ceb2-4faa-b6bf-329bf39fa1e4

Please note: This GUID follows the structure of DotNet-GUIDs.

 

Please note: By adding the same option multiple times and configuring its own configuration (like choosing from different defined index values), you’re able to define the name of the document according to your needs.

 

Prevent Document Merging

Option name

Type

Description

Possible Values

Regular Expression

Textfield

A regular expression for document naming rule that prevents merging of documents. The first capture group has to match for preventing rules.

<empty>

<valid regular expression>

Validator Test 1

Textfield

For validating the regular expression. Both fields should be filled for testing.

red: prevent merging of documents

green: merge of documents allowed

<any>

Validator Test 2

Textfield

For validating the regular expression. Both fields should be filled for testing.

red: prevent merging of documents

green: merge of documents allowed

<any>

Merging of documents can be done in the Thumbnail View by drag and drop pages from one document into another.

Depending on the document name or the value of an existing indexfield of the type “Import Filename”, it is possible to configure a regular expression to prevent merging of two documents that match the first capture group of the regular expression.

The default value of the field “regular expression” is empty. In that case, merge of documents is allowed without restriction.

An example would be:

Regular Expression:
^[^_]+_[^_]+_([^\.]+)\.pdf$

With two or more documents with this name scheme:

abc_123456789_111.pdf
abc_123456789A_111.pdf

Result: those documents can be merged as the expression's first capture group hits both names.

Example of preventing merging:

abc_123456789_111.pdf
abc_123456789A_112.pdf

Documents can't be merged as 111 and 112 do not match the first capture group in the regular expression.

Example mixed:

abc_123456789_111.pdf
abc_123456789A_112.pdf

abc_123456789B_111.pdf

The documents ending with 111 can be merged. But no page can be moved to the document ending with 112.

image-20260409-074643.png