Document types
A document type describes one kind of document the project expects, such as a drawing with a certain title block, or an A4 report. It says which PDFs belong to it and what to check on them. This page covers the document type page: the template PDF, the details, the document filter and the warnings. What to check is set up in its Items.
What a document type is
Each document type has:
| Part | What it is |
|---|---|
| Template PDF | A sample PDF of this kind. You set up the checks on it and see straight away whether they pass on it. |
| Details | The name, a description and tags. |
| Document filter | Decides which PDFs in a report are checked as this document type. |
| Items | The Extracts, Modifiers and Validators: what is read and checked on each PDF. See Items. |
| Data frames | Ready-made sets of checks, such as a standard title block, that the document type imports. See Data frames. |
Creating a document type
On the project's Doctypes tab:
| Button | What it does |
|---|---|
| Upload PDFs | Creates one document type per PDF, named after the file, with the PDF as its template. You can also drop PDFs anywhere on the list. |
| New document type | Creates a document type without a template PDF. The page opens with the name ready to type, and you upload the template later. |
| New group | Adds a group to sort document types into, for example "Drawings" and "Reports". |
Each document type is one row: a thumbnail of its template, the name, the description, and a line with the template file, its pages and how many Extracts and Validators it has. The ⋯ menu on a row has Edit details, Move to… and Delete. Drag a row by its handle to reorder it, or drop it under a group to put it in that group. The ⋯ menu of a group has Add PDFs here, New document type here, Rename, Move to… and Remove group. Removing a group keeps the document types in it.
A new document type is named after its template file, for example "NDXTEST-NHX-B1-00-DR-A-200100_P02_A3_landscape". Rename it with Edit details, for example to "Drawing".
The document type page
Click a document type's name on the Doctypes tab, or in the sidebar, to open its page. From top to bottom it has:
- The header: the name, a warnings button when there are warnings, Project values (a side panel to edit the project's variables, lookup tables and lists without leaving the page; see Project values) and Open canvas editor (see Canvas editor).
- Details: the template preview, the description and tags, and the template file.
- Document filter.
- Items.
- Data frames.
At the bottom left is the Test files tab. See Test files.

Open Doctypes › Text document to see a document type with its own field validations. Open Drawing to see one that has almost no items of its own and imports the "Title block" data frame instead.
The template PDF
The details show the template as "Template: file name (page 1 of N)".
- Upload template PDF (or Replace template PDF) next to Edit details chooses a new PDF. You can also drop a PDF on the preview, or use the small button in the preview's corner.
- When the document type already has areas, NodePDF asks first, in Replace the template PDF?. The areas keep their positions on the page, so check them on the new template afterwards, for example in the canvas editor.
- The checks' results on the template ("On template") and the preview update by themselves.
Areas are stored as a position on the page relative to its size. The same area therefore works on other sheet sizes of the same layout, but not on a different layout. For title blocks that move or change scale between drawings, use a data frame.
Pages
An area belongs to one page of the PDF being checked. The page an area is drawn on is the page it reads on every checked PDF. For a multi-page template, choose the page in the canvas editor with its page switcher. A checked PDF that does not have that page reads an empty text there.
Details
Click Edit details to change, in place:
| Field | Use |
|---|---|
| Name | The name in the lists, the reports and the Excel export. |
| Description | What this document type is and when it is used. |
| Tags | Short labels to group and find document types. |
Click Save or Cancel when done.
The document filter
When a report runs, NodePDF decides for each PDF which document types it belongs to. The Document filter section shows how this document type decides, and whether the template itself is recognised, for example "The template is recognised: Validator "A4": Page 1 is A4."
Click Edit filter to change it. There are two ways to filter.
By file name
By file name compares the PDF's file name with a pattern, built from the same blocks as a Pattern validator. See Validators › Pattern.
- The blocks must match the whole file name, with or without ".pdf".
"Drawing-" + 2 digitsmatches "Drawing-01.pdf", but not "Drawing-001.pdf". - A new document type starts with one block, "1+ characters", which matches every file name.
- Try a file name tests the pattern on a name you type, and the editor shows whether the template's file name matches.
- In Regex mode, the regular expression may match anywhere in the name; an empty one matches every PDF.
By validator
By validator uses one of the document type's Validators: a PDF belongs to the document type when that Validator passes on it. This is useful when the file name says little, for example:
- a Page format validator "A4" for reports and "Not A4" for drawings;
- a Fixed value on a "document kind" field.
Choose the Validator under Filter validator. A filter validator is usually Hidden, so it does not show up in reports as a pass. If yours is not, the editor offers Make hidden. A hidden Validator is not checked in reports, but still works as the filter. In the Items section, the filter validator has a Filter chip.
If the filter validator is deleted, the document type goes back to its file name pattern.
"Drawing" uses the hidden Page format validator "Not A4" as its filter, and "Text document" uses "A4". So every A4 PDF is checked as a text document and every other PDF as a drawing, whatever the file is called.
Which documents get which type
- A PDF belongs to every document type whose filter matches it. That can be several document types, or none.
- A PDF that matches no document type is listed in the report as No document type. It is not counted as passed.
- A run can be limited to some document types. See Running reports.
When you drop test files on a document type, the Document filter row shows a square per file under Matched files, so you can see at once which files the filter recognises. See Test files.
Configuration warnings
When something in the setup needs attention, the header shows a button such as 2 warnings. Click it to see the list, Configuration warnings.
| Warning | What it means |
|---|---|
| The filter validator no longer exists | No PDF will be recognised as this document type. |
| The file name pattern can't be used | The pattern has a problem, such as a missing project variable, so no PDF will be recognised. |
| The file name pattern is empty | Every PDF will be treated as this document type. |
| The file name pattern has no blocks | No PDF will be recognised. |
| The file name pattern matches every PDF | The document type will run on all PDFs. This is the case for a new document type, until you change the filter. |
| No validators are configured | Nothing will be checked for this document type. |
| A validator fails on the template PDF | Usually a sign that the check is set up wrongly, because the template should normally pass. |
| The filter validator is not hidden | It will show up in reports as a pass on every file. |
A new document type shows two warnings: no validators, and a file name pattern that matches every PDF.

Deleting a document type
On the Doctypes tab, open the ⋯ menu of the document type and choose Delete. Reports already made keep their results.