--- title: "doc:BarcodeDocument (Preprocessor)" slug: "doc-barcode-document" updated: 2026-04-29T08:42:02Z published: 2026-04-29T08:42:02Z canonical: "docs.lobstersoftware.com/doc-barcode-document" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.lobstersoftware.com/llms.txt > Use this file to discover all available pages before exploring further. # doc:BarcodeDocument (Preprocessor) *See also*: [Barcode detection](/v1/docs/en/doc-document-barcodes), [Importing documents](/v1/docs/en/doc-document-import), [Document import by profile](/v1/docs/en/doc-document-import-profile) The `BarcodeDocument` preprocessor enables [Barcode detection](/v1/docs/en/doc-document-barcodes) for [Documents](/v1/docs/en/doc-document) during [Import](/v1/docs/en/orchestration-integration-import). It contains a subnode `template` resembling the template structure of the document object. By this structure, the input data – such as content, name and type of the document to be imported – can be assigned via mapping (see also [Document import by profile](/v1/docs/en/doc-document-import-profile)). The preprocessor generates a single or multiple document objects depending on the assignments for the template and the evaluation of the document content, taking into account the parameters for [Barcode detection](/v1/docs/en/doc-document-barcodes). When importing these documents, the mechanisms described under [Assigning documents](/v1/docs/en/doc-documents-assign) take effect, considering the data obtained from the [Barcode detection](/v1/docs/en/doc-document-barcodes). The following structure can be merged directly into the import structure from the template `preProcessor:BarcodeDocument` (see [Orchestration templates](/v1/docs/en/orchestration-integration-templates)): ![images/download/attachments/58596996/image2020-10-1_22-10-19-version-1-modificationdate-1601583020184-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image2020-10-1_22-10-19-version-1-modificationdate-1601583020184-api-v2.png) | Parameter | Type | Meaning | Content (*fixed* value/example) | | --- | --- | --- | --- | | `xsi:type ` | String attribute | Type of preprocessor. | `doc:BarcodeDocument` | | `splitDocument` | Boolean attribute | The "Split document?" flag (see [Barcode detection](/v1/docs/en/doc-document-barcodes)); determines whether partial documents are created per barcode. | `true / false ` | | `skipBarcodePage` | Boolean attribute | The "Skip barcode page?" flag (see [Barcode detection](/v1/docs/en/doc-document-barcodes)); determines whether the barcode page in the document part is skipped. | `true / false` | | `template` | Document structure | Represents the data structure of a document object (for mapping and other assignments). | See [Document import by profile](/v1/docs/en/doc-document-import-profile) | | `barcodeFilters` | Subnode | Enumeration of all relevant barcode filters (see [Barcode detection](/v1/docs/en/doc-document-barcodes)) to define "accepted" barcodes. | See [Document import by profile](/v1/docs/en/doc-document-import-profile) | | `barcodePattern` | Text element | Definition of a "Barcode pattern", which defines an interpretation scheme for recognized barcodes (see [Barcode detection](/v1/docs/en/doc-document-barcodes)). | See [Document import by profile](/v1/docs/en/doc-document-import-profile) | Example: The following [Batch import](/v1/docs/en/core-batch-import) imports the document identified by the `template`, whose content in the `documentContent` was replaced with the text "base64-String" here. The `template` also specifies the "UPLOAD" document type and determines that an attempt should be made to establish a reference to a manifest entity via the "Manifest" [Reference type](/v1/docs/en/base-reference-type). The basis for the reference should be a barcode which, according to the only `filter`, should correspond to the format of CODE_128 and the content of a given regular expression (`regex`). ```xml                                       ```