Skip to main content

Items

Everything a document type reads and checks is an item. There are three kinds: Extracts, Modifiers and Validators. This page explains how they work together and how to use the Items section on the document type page. The details of each type are in the reference pages.

Extracts, Modifiers and Validators​

KindWhat it doesTypes
ExtractReads data from each PDF.PDF area (the text in an area of a page), File name, Combination (other items joined by a pattern). See Extracts.
ModifierChanges text: text in, text out.Remove text, Replace text, Keep the first characters, Keep the last characters. See Modifiers.
ValidatorChecks the text, or the PDF itself.Fixed value, Pattern, Date, One of a list, Lookup, Image, Page format, PDF/A and more. See Validators.

How they hook together​

To check one field, the three kinds form a chain. The Extract reads the box, each Modifier changes the text it is given, and the Validator checks the result:

How a field validation checks one field: the PDF area reads CLIENTEXAMPLE CLIENT, Remove text gives EXAMPLE CLIENT, and Fixed value checks that it is exactly EXAMPLE CLIENT

Such a chain, with its title, is a field validation. It is the usual way to check a field, and the guided setup makes one in three steps. See Field validation.

A field can have several Validators. Each one checks the same value, for example a Pattern and a Not empty check.

Some Validators need no Extract: an Image validator looks for a picture on the page, and PDF/A, Readable text, No Autodesk SHX text and Page format check the PDF as a whole.

The Items section​

The Items section with the CLIENT field validation: PDF area, Remove text and Fixed value blocks, passing on the template

The toolbar​

ButtonWhat it does
Field validationOpens the canvas editor in the guided field validation setup. See Field validation.
Image validationOpens the canvas editor to capture a logo or stamp. See Validators › Image.
GroupAdds an empty group, named in place.
AddAdds a single Extract, Modifier or Validator. See The Add menu.
Auto-extract title blockFinds the template's title block and makes a field validation per field. See Auto-extract title block.

Field validation, Image validation and Auto-extract title block need a template PDF.

The rows​

Each row is one field validation, group or single item. The columns are:

ColumnShows
NameThe title of the field validation or the name of the item. An item without a name is shown in grey by its type, for example "(PDF area)". Double-click the name to rename it.
Type"Field validation", "Group · N items", or the kind and type of a single item, such as "Validator · Page format".
BlocksThe chain of a field validation as small blocks that hook into each other: Extract in blue, Modifiers in amber, Validators in green. For a single item, a short description.
On templateThe result on the template: Passes or Fails. A field validation shows its worst check. For an Extract or Modifier, the text it gives. Hover for the reason.

When the document type has test files, On template becomes On files, with one square per file. See Test files.

The ⋯ menu at the end of a row has Rename, Move to…, Delete, and, for field and image validations, Edit on template. A group's menu also has Ungroup.

Chips on a row​

ChipMeaning
FilterThis Validator is the document type's filter. See Document types › The document filter.
Not checkedNo Validator reads this Extract or Modifier, so it is read but never checked. A field validation without any checks has it too. Add a check, or delete the item.

Expanding a row​

Click the arrow before the name (or the name) to expand a row.

A field validation expanded: the PDF area, Remove text and Fixed value cards, with Add check, Edit on template and Add to group

A field validation expands into cards, one per block:

  • the Extract card, with what it reads ("reads CLIENTEXAMPLE CLIENT");
  • each Modifier card, with what it gives ("gives EXAMPLE CLIENT");
  • each Validator card, with its result on the template.

What you can do there:

  • Click a card to open its editor under the cards. Change the settings and click Save or Cancel.
  • Hover a card for its actions: the round + on its corner inserts a Modifier after it, and the bin deletes it.
  • + Add check (the dashed card under the checks) adds another Validator, with the same one-click list as the guided setup.
  • Edit on template opens the canvas editor at the field's "Check the value" step.
  • Add to group adds another Extract, Modifier or Validator to the field.

A single item expands into its editor.

Blocks that are not connected​

If a Modifier or Validator in a group reads nothing in that group, it is listed under the cards as Not connected. Drag a Modifier onto a card to connect it after that card, or a Validator onto Add check to make it check that value.

The Add menu​

Add adds a single item that is not part of a field validation. The menu has three parts:

PartChoices
ExtractsExtract: PDF area (opens a dialog to draw the area), Extract: File name, Extract: Combination
ModifiersModifier: Keep the first characters, Modifier: Keep the last characters, Modifier: Replace text, Modifier: Remove text
ValidatorsGrouped by category, below

The Add menu with the Extract and Modifier choices and the first Validators under Text (basic)

Validator categoryTypes
Text (basic)Fixed value, Text contains, One of a list, Date, Matches filename, Empty, Not empty
Text (advanced)Pattern, Lookup
VisualImage
DocumentPDF/A, Readable text, No Autodesk SHX text, Page format

A new Validator opens its editor. In the editor, Checks picks the Extract or Modifier it reads. Type to search; items that no Validator reads yet are marked "not checked yet".

For most fields, the guided Field validation is quicker than building the chain by hand.

Groups​

Groups keep related items together, for example everything about the revision.

  • Group in the toolbar adds an empty group. Type its name.
  • Drag rows into it, or use Move to… in a row's ⋯ menu.
  • Ungroup in the group's ⋯ menu takes its items out and removes the group.
  • When you delete a group, choose Delete the group and everything in it, or Delete the group only; its items move out of it.

A field validation is a group made by the guided setup.

Reordering​

Drag a row by its handle to move it. Drop it on a group to put it inside. From the keyboard, use Move to… in the ⋯ menu. The order is also the order of the checks in reports.

In an expanded field validation, drag a Modifier card to change the order in which the Modifiers apply.

Deleting​

  • A Modifier is taken out of its chain. The blocks after it then read what it read, so the chain stays connected.
  • A Validator is removed.
  • An Extract asks first and names what reads it. Those blocks then read nothing and show up as not connected.
  • A group asks whether to delete its items too.

Required, optional and hidden checks​

Every Validator's editor has Applicability: Required (a failure fails the file; the default), Optional (listed, but never fails the file) or Hidden (not checked or listed, but can still be the document filter). See Validators › Required, optional and hidden checks. The On template column always shows the plain result, whatever the applicability.

In the example project

Open Doctypes › Text document. Each of CLIENT, PROJECT, REVISION and ORIGINATOR is a field validation: expand CLIENT to see its three cards. The row "A" is a single Page format validator with the Filter chip.