Validators
A Validator checks one thing about each PDF of a document type. Most Validators check the text of an Extract (after any Modifiers have changed it). The rest check the PDF itself, or look for an image.
The menus that add a Validator (Add ▾ in the Items section, Add to group, and Something else… in the guided field validation) list the types in four groups, always in this order:
| Group | Types |
|---|---|
| Text (basic) | Fixed value, Text contains, One of a list, Date, Matches filename, Empty, Not empty |
| Text (advanced) | Pattern, Lookup |
| Visual | Image |
| Document | PDF/A, Readable text, No Autodesk SHX text, Page format |
Which Validator to use
The text Validators check the text of a field, after its Modifiers. The visual and document Validators read no field: they look at the page or the PDF itself.
Text (basic)
| Use | When the field… | Example |
|---|---|---|
| Fixed value | must be one exact text (upper and lower case ignored). | CLIENT is "EXAMPLE CLIENT" |
| Text contains | must contain a text somewhere. | The title contains "PLAN" |
| One of a list | must be one of a set of values. | Role is A, B, C or D |
| Date | must be a real calendar date, in a given format. | DATE is 22/10/2026 |
| Matches filename | must equal the file name. | The drawing number equals the file name |
| Empty / Not empty | must be blank, or must be filled in. | CHECKED must be filled in |
Text (advanced)
| Use | When the field… | Example |
|---|---|---|
| Pattern | must have a certain form. | REVISION is "P" + 2 digits |
| Lookup | must agree with a register or table, looked up by another field. | The title agrees with the drawing register, looked up by drawing number |
Visual
| Use | When the page… | Example |
|---|---|---|
| Image | must show a picture captured from the template, at the same size. | The company logo in the title block |
Document
| Use | When the PDF… | Example |
|---|---|---|
| Page format | must have a given sheet size, or must not. | Every page is A3; or, as a document filter, the first page is not A4 |
| PDF/A | must declare PDF/A conformance. | Archive deliveries |
| Readable text | must contain real text, not only a scan or lines. | Rejecting scanned reports |
| No Autodesk SHX text | must not contain text that AutoCAD drew as lines. | Contractors must plot with TrueType fonts |
Overview
| Type | Group | Reads an Extract | Quick check | Reason when it fails |
|---|---|---|---|---|
| Fixed value | Text (basic) | Yes | Exactly "…" | Doesn't match |
| Text contains | Text (basic) | Yes | – | Doesn't match |
| One of a list | Text (basic) | Yes | One of a list… | Doesn't match |
| Date | Text (basic) | Yes | A date | Doesn't match |
| Matches filename | Text (basic) | Yes | Same as the file name | Doesn't match |
| Empty | Text (basic) | Yes | – | Doesn't match |
| Not empty | Text (basic) | Yes | Not empty | Extract empty |
| Pattern | Text (advanced) | Yes | Looks like … | Doesn't match |
| Lookup | Text (advanced) | Yes (two) | Found in a lookup table… | Doesn't match |
| Image | Visual | No | Own guided setup | Image not found |
| PDF/A | Document | No | – | PDF property |
| Readable text | Document | No | – | PDF property |
| No Autodesk SHX text | Document | No | – | PDF property |
| Page format | Document | No | – | PDF property |
- Quick check means the type is offered as a one-click check in the guided field validation's step "What should it contain?", under + Add check on a field validation, and as a column of the Auto-extract title block popup. Every other type is under Something else….
- Reason when it fails is the short label shown in the report's Reason column.
Every detail message a check can give, per type, is listed in Failure reasons.
Settings every Validator has
| Field | What it does |
|---|---|
| Name (optional) | The name shown in reports. When empty, the Validator is shown by its group's name (for example the field's title), or else by its type. |
| Applicability | Required, Optional or Hidden. See Required, optional and hidden checks. |
| Checks | The Extract or Modifier whose text is checked. Type to find one by name. Options are grouped as "In this group", "Other items" and "Data frame cells", and those no Validator reads yet are marked "not checked yet". Inside a field validation this picker is not shown: the Validator checks the value at the end of the field's chain. |
Below the fields, the editor shows the live result on the template, for example: On the template: passes — Equals "EXAMPLE CLIENT" (read "EXAMPLE CLIENT"). Save, Cancel and Delete are at the bottom.
Text (basic)
Fixed value
Checks that the text equals a value exactly, ignoring upper and lower case.
- Settings: Checks; Expected value, as Text or Project variable ("Compared without regard to upper/lower case.").
- Example: the CLIENT field must read
EXAMPLE CLIENT. A drawing that readsExample Clientpasses; one that readsEXAMPLE CLIENT LTDfails.
The data frame "Title block" checks CLIENT with the Fixed value EXAMPLE CLIENT, and Originator with NHX.
Text contains
Checks that a value appears anywhere in the text, ignoring upper and lower case.
- Settings: Checks; Text to find, as Text or Project variable ("Upper/lower case is ignored."). An empty Text to find always fails, so the check never passes by accident.
- Example: a drawing title must mention
PLAN.GROUND FLOOR CEILING PLANpasses;SECTION A-Afails.
One of a list
Checks that the text is one of the options of a project list, such as discipline or role codes.
- Settings: Checks; List (a project list; New list… creates one on the spot). Lists are edited on Project › Lists or in the Project values panel.
- Matching: upper and lower case are ignored, and spaces at the ends of the text and of each option are ignored. Spaces inside the text must match.
- Example: Role must be one of the list "Role" (A, B, C, D).
Bandbpass;Efails withNot in list "Role" (4 options).
Date
Checks that the text is a real calendar date. 2022-02-30 fails; 2024-02-29 passes. The whole text, with spaces at the ends removed, must be the date.
- Settings: Checks; Date format:
- Any common date format: the common formats are tried in turn, and the details name the one that matched.
- A common format: YYYY-MM-DD, YYYYMMDD, YYYY/MM/DD, DD.MM.YYYY, DD/MM/YYYY, DD-MM-YYYY, MM/DD/YYYY, D MMMM YYYY, D MMM YYYY, MMMM D, YYYY, YY-MM-DD, DD.MM.YY. Day-first formats are tried before MM/DD/YYYY, so
01/04/2022reads as 1 April. - Custom…, written in the Custom format field with these tokens: YYYY (2022) or YY (22); MM (04) or M (4 or 04); MMM (Apr) or MMMM (April); DD (01) or D (1 or 01). A space matches one or more spaces; any other character must appear as it is. A format needs a year, a month and a day.
- Month names may be English or Swedish, in full or as 3 letters, in any case.
- Example: DATE with the format DD/MM/YYYY.
15/03/2026passes;2026-03-15and31/02/2026fail withNot a date in the format DD/MM/YYYY.
Matches filename
Checks that the text equals the PDF's file name.
- Settings: Checks only ("Passes when the text equals the PDF's file name (".pdf" is ignored; upper/lower case matters).").
- Matching: upper and lower case matter. The first
.pdfis removed from both the text and the file name before they are compared. Only a lower-case.pdfis removed, so a file saved as.PDFkeeps its extension and does not match a text without it. - Example: the drawing number field reads
NDXTEST-NHX-B1-00-DR-A-200100. The fileNDXTEST-NHX-B1-00-DR-A-200100.pdfpasses;NDXTEST-NHX-B1-00-DR-A-200100_P02.pdffails.
Empty
Checks that the Extract reads nothing. Spaces and line breaks alone count as nothing.
- Settings: Checks only.
- Example: a "Superseded by" box must be blank on current drawings.
Not empty
Checks that the Extract reads something. Spaces and line breaks alone count as nothing.
- Settings: Checks only.
- Example: a "Checked by" box must be filled in, whatever it says.
Text (advanced)
Pattern
Checks that the text has a given form, such as P followed by two digits.
- Settings: Checks; the pattern, with a Simple / Regex switch.
- Simple: a row of building blocks that must match the whole text, in order. Text blocks ignore upper and lower case.
- Regex: a Regular expression, typed as Text or taken from a Project variable. It may match anywhere in the text (use
^…$for the whole text), and upper and lower case matter. An empty expression passes; a new Simple pattern without blocks fails. - From examples… builds the blocks from example values. Save as pattern… keeps the pattern as a project saved pattern. When the Extract reads something on the template, a suggested pattern is shown with Use this pattern. Clear pattern empties the row.
Building blocks (Simple mode):
| Block | Settings | Matches |
|---|---|---|
| Text | the text | that text, ignoring upper/lower case |
| Number | minimum and maximum count | that many digits 0–9 |
| Letters | minimum and maximum count; case (any, upper, lower) | that many letters, accented letters included |
| Variable | a project variable | the variable's current value, ignoring upper/lower case |
| Any characters | minimum and maximum (empty maximum: no limit) | any characters |
| One of | options, one per line | any one of the options, ignoring upper/lower case |
| List | a project list | any one of the list's current options, ignoring upper/lower case |
| Saved pattern | a project saved pattern | what the saved pattern matches now (linked) |
| Or | alternatives, each with its own blocks | any one of the alternatives. An empty alternative matches nothing, which makes the block optional. |
- Example: REVISION must be
"P" + 2 digits.P01andp01pass;P1,P001andC01fail.
The data frame "Title block" checks SCALE with the pattern 1 digit + ":" + 3 digits + " @ A" + 1 digit (1:200 @ A3 passes; 1:100 @ A3FFF fails), and JOB No. with 5 digits.
Lookup
Looks a value up in a lookup table (from an Excel or CSV file, or typed in) and compares another value against what it finds. Only the first sheet of the table is used.
-
Settings:
- Looks up: the Extract whose text is searched for in the table (the key). It must match a cell exactly, including upper and lower case.
- Lookup table: pick one, or Create a lookup table… or Import a lookup table….
- Look up by: Row or Columns.
- Row: finds the first row with a cell equal to the key. Passes when the compared text is also in that row (upper/lower case ignored).
- Columns: finds the key in Find it in column (the whole column, header included). Passes when the cell on that row in Compare with column equals the compared text exactly (upper/lower case matter).
- Compares with: the Extract whose text must be found. Inside a field validation this is the field's value.
-
Example: a drawing register lists drawing numbers in column A and titles in column B. Look up the drawing number in column A and compare the drawing title with column B.
Visual
Image
Checks that a picture captured from the template, such as a logo, stamp or symbol, appears on a page of each PDF. It needs no Extract.
Setting it up: click Image validation in the Items toolbar (in the canvas editor, the tool I). The canvas editor opens in the step Pick the image. Drag over the picture on the template, with as little white space as possible, give it a Title such as "Logo", check the settings and the result in the side panel, and click Done. The image validation becomes an item of its own in the Items section; Edit on template in its ⋯ menu opens these settings again.

- Settings:
- Captured image: the picture, the page it came from and its size in pixels. Capture again lets you drag again; on a multi-page template, Template page chooses the page.
- Where to look: Anywhere on page N searches the whole page. In an area of page N searches only an area (Edit area redraws it), which is faster and avoids matching a similar picture elsewhere on the page. After the first capture, the area is set around the image.
- Match threshold: how similar the best match must be, from 0.50 to 1 (1 = identical). The default is 0.80; the same artwork usually scores above 0.95. Lower it carefully and try your test files first: at a low threshold, a different logo can pass.
- Also find rotated copies (slower): also finds the picture when it is turned on the page.
- Ignore the busy background behind the image: for a symbol drawn over a map or photo, such as a north arrow. Only the picture's flat-coloured shapes, and lines and text in the same colour, are compared. When the captured picture has a busy background, the editor suggests this with an Ignore background button.
- What passes: the page is drawn at the same scale as the captured picture, so the picture may be anywhere in the search area, but it must appear at the same size as on the template. A drawing printed at another sheet size, where the logo is smaller or larger, does not match. The check passes when the best match scores at least the threshold: "Found the image in an area of page 1 (similarity 0.97, needs 0.80)". Otherwise it fails with "Image not found … (best similarity 0.41, needs 0.80)". A blank capture, a search area smaller than the picture, or a PDF without that page also fail, with a reason that says so. See Failure reasons › Image.
- In a data frame, the picture moves with the frame: when a title block is found at another place or scale, the frame's image validators are searched for there, at the right size. See Data frames.
- Report images: with Extract images on in a report, the report keeps a picture of where the image was found, or where it came closest. See Running reports.
- The first image search downloads an image-matching component (about 10 MB). Later searches are quicker.
- Example: the company logo must be in the top-left corner of page 1.
Document
PDF/A
Checks the PDF/A conformance level the PDF declares in its metadata. It does not test whether the file really meets PDF/A.
- Settings: Required conformance: A (accessible), B (basic) or A or B (the default).
- Example: a document register requires archive-ready PDFs: A or B.
Readable text
Checks that the PDF contains machine-readable text, not only scanned images or lines. AutoCAD SHX text does not count.
- Settings: Minimum text items (optional; "Optional. Empty: any readable text passes."). A text item is a piece of text the PDF places as one, such as a word or a line. With a minimum, all pages together must reach it.
- Example: reject scanned reports: Readable text with a minimum of 40.
No Autodesk SHX text
Fails when the PDF has AutoCAD SHX text: text that AutoCAD drew as lines in an SHX font, with "AutoCAD SHX Text" comments holding the text. Only SHX text plotted with those comments can be found (AutoCAD 2016 and later add them).
- Settings: none.
- The project setting Allow AutoCAD SHX text does not change this check. See Extracts › AutoCAD SHX text.
Page format
Checks the sheet size of the PDF's pages against standard formats.
- Settings:
-
Pages must be: Any of these or None of these.
-
Formats, in three groups that can be ticked as a whole:
Group Formats (short × long side, mm) A series (ISO 216) A0 841×1189, A1 594×841, A2 420×594, A3 297×420, A4 210×297, A5 148×210, A6 105×148 Extended (Trafikverket) A1F 594×1189, A3F 297×594, A3FF 297×841, A3FFF 297×1189 Elongated (ISO 5457) A3×3 420×891, A3×4 420×1189, A4×3 297×630, A4×4 297×841, A4×5 297×1051 -
Orientation: Either, Portrait or Landscape. A format matches in either orientation unless one is chosen. A square page fits both.
-
Tolerance: how many millimetres each side may differ. The default is 3 mm.
-
Pages to check: Every page, First page, or Pages with a list such as
1, 3-5.
-
- Page size is the page as shown on screen, with the page's rotation applied. A3FF and A4×4 are the same size.
Page format is used as a hidden document filter. "Drawing" has None of these A4 on the first page (named "Not A4"); "Text document" has Any of these A4 on page 1 (named "A4"). Each PDF therefore goes to exactly one of the two document types.
Required, optional and hidden checks
Every Validator has an Applicability:
| Applicability | Shown in the editor as | In a report |
|---|---|---|
| Required | "Checked; a failure is reported." | The result as checked. A failure fails the file. |
| Optional | "Shown in reports for information, never fails." | Listed. A failure shows as "Fail (optional)" and does not fail the file. |
| Hidden | "Not checked or shown in reports. Can still be used as the document filter." | Not listed. |
- The On template column on the document type page always shows the check's own result, whatever its applicability.
- A Validator used as the document filter decides which PDFs belong to the document type, whatever its applicability. It is usually Hidden, so that it does not appear in reports. It carries the Filter chip in the Items section.
Upper and lower case
| Validator | Upper/lower case |
|---|---|
| Fixed value | ignored |
| Text contains | ignored |
| One of a list | ignored (spaces at the ends also ignored) |
| Date | month names ignored |
| Matches filename | matters |
| Pattern, Simple mode | ignored by Text, Variable, One of, List and Saved pattern blocks; Letters blocks follow their case setting |
| Pattern, Regex mode | matters |
| Lookup, the key (Looks up) | matters (must match a cell exactly) |
| Lookup, Row: the compared text | ignored |
| Lookup, Columns: the compared text | matters |
| Empty, Not empty | not applicable |
Modifiers (Remove text, Replace text) also match upper and lower case exactly. See Modifiers.
Project values in Validators
A Validator can compare against a value that belongs to the project instead of a value typed into the Validator: a project variable, a list, a saved pattern or a lookup table. The check stays as it is; the value is changed in one place, and every check that uses it follows. That is what lets a project follow its phases: a status field that must read "DRAFT" during design and "ACCEPTED" after approval is one Fixed value check against a variable, not a check that is edited at every phase.
| Project value | Where a Validator uses it | Managed on |
|---|---|---|
| Project variable | Fixed value's Expected value; Text contains' Text to find; a Pattern's Regular expression (Regex mode); the Variable block of a Simple pattern. Switch the field from Text to Project variable and pick one. | Project › Project variables, or the Project values panel |
| List | One of a list's List; the List block of a Simple pattern. | Project › Lists, or the Project values panel |
| Saved pattern | The Saved pattern block of a Simple pattern. Save as pattern… in a pattern editor saves the current pattern as one. | Project › Saved patterns |
| Lookup table | Lookup's Lookup table. | Project › Lookup tables, or the Project values panel |
Every picker ends with New … to create the value on the spot, and its helper text shows the value's current content.
- The value is taken when the check runs, so changing it changes every Validator that uses it.
- Before a run, Check the values for this report lets you change any of the four kinds for that report only, or save the change to the project. A run configuration can fix the values, or leave some for the user to fill in. See Project values › Changing values before a run.
- A report records the values it ran with, so changing a value later does not change old reports.
- A variable without a value makes the check fail with
Project variable "<name>" has no value. - Deleting a variable turns its uses into fixed text with its last value, so the Validators keep checking the same thing. Deleting a list or a saved pattern names the checks that use it first; they fail until they get another. A lookup table cannot be removed while a Lookup uses it.
What each kind holds and how to edit it is in Project values.
Extracts without a Validator
An Extract or Modifier that no Validator reads is read but never checked. NodePDF marks it so that it is not forgotten:
- the Items section shows a Not checked chip on its row ("No validator reads this yet, so it is read but never checked");
- the canvas editor's side panel shows Not checked yet under a field validation without checks;
- the Checks picker marks such items "not checked yet".
The marker goes away as soon as a Validator reads the item. On a data frame page the tooltip adds that document types importing the frame may still check the cell.
Empty text
An Extract that reads no text makes every text Validator fail with The extract is empty, whatever the check. There is one exception: Empty and Not empty check exactly that, so for them an empty text is a normal pass or failure.
- In the report, an empty Extract is filed under Doesn't match for most types (and under Extract empty only for Not empty). Read the Details column to tell it apart from a real mismatch. See Failure reasons.
- A page that the PDF does not have reads as empty. A check on page 2 of a one-page PDF therefore fails with
The extract is empty.
Related pages
- Field validation: setting up a check on a field step by step.
- Extracts and Modifiers: what a Validator reads.
- Failure reasons: every detail message, and what to do about it.