> ## Documentation Index
> Fetch the complete documentation index at: https://docs.abbyy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Document and batch separation

> Configure how Scanning Station names and splits batches and documents during scanning.

You can configure batch and document separation in two places:

* **For a batch type** — when creating the batch type with the [Batch Type Wizard](/vantage/documentation/scanning-station/interface/batch-type-wizard), or later on the **Batch Options** tab of the [Batch Type Properties](/vantage/documentation/scanning-station/interface/batch-type-properties-dbox) dialog box.
* **For individual batches** — on the **Batch Options** tab of the [Options](/vantage/documentation/scanning-station/interface/options-dialog-box) dialog box.

## Batch separation

### Batch naming scheme

Click **Naming Scheme...** to open the **Batch Name** dialog box and define the template used for new batch names.

A batch name can combine static text with dynamic tokens. Tokens appear in the rule wrapped in angle brackets (`<>`); any plain text outside the brackets is used as-is. Available tokens:

* Current time
* Current date
* Batch type
* Automatic numbering — by default, uses unique batch identifiers. An identifier isn't reused even if the batch it was assigned to is deleted.
* Registration parameters

**Example:** `Batch_<Time>` names each new batch with the prefix `Batch_` followed by the current time.

### When to create a new batch

Use the **Create new batch** option to choose when Scanning Station starts a new batch during scanning:

| Option                              | Behavior                                        |
| :---------------------------------- | :---------------------------------------------- |
| **Never**                           | All images go into one batch.                   |
| **Each time scanning is initiated** | A new batch is created each time a scan starts. |
| **Every n pages**                   | Each batch contains *n* pages.                  |

## Document separation

### Document naming scheme

Click **Naming Scheme...** to open the **Document Name** dialog box and define the template used for new document names. The structure is the same as for batches: tokens in angle brackets, static text outside.

Available tokens:

* Current time
* Current date
* Barcode value
* Automatic numbering
* Batch name

**Example:** `Document_<Time>` names each new document with the prefix `Document_` followed by the current time.

### When to create a new document

Use the **Create new document** option to choose when Scanning Station starts a new document during scanning:

* **Never** — all scanned images stay in the batch; no new documents are created.
* **Every n pages** — each document contains *n* pages.
* **For images separated by...** — a new document is created whenever a separator is detected:
  * **Blank pages** — configure detection parameters in the [Empty Page Detection](/vantage/documentation/scanning-station/interface/empty-page-detection) dialog box (click **Options...**).
  * **Barcodes** — configure in the **Barcode Options** dialog box (click **Options...**). Specify the barcode type and value, or use one of these catch-alls:
    * **Any type** — creates a new document on any supported barcode.
    * **Any type (except post barcodes)** — same as **Any type** but skips postal barcodes, which speeds up detection because postal barcodes aren't scanned.

Barcode values accept regular-expression syntax: `*` matches any string of characters; `?` matches any single character.

<Note>
  **QR Code**, **Aztec**, **DataMatrix**, and **Code 39 without asterisk** must be specified explicitly. They aren't detected when **Any type** or **Any type (except post barcodes)** is selected.
</Note>

### Delete separation pages

Select **Delete separation pages** to remove the blank pages or barcode pages that were used as separators.

## Related topics

* [Empty Page Detection settings dialog box](/vantage/documentation/scanning-station/interface/empty-page-detection)
* [Working with batches, documents, and pages](/vantage/documentation/scanning-station/operator/working-with-batches)
* [Batch Type Properties dialog box](/vantage/documentation/scanning-station/interface/batch-type-properties-dbox)
* [Supported barcode types](/vantage/documentation/scanning-station/appendix/supported-barcode-types)
* [Interface](/vantage/documentation/scanning-station/interface/interface)
