Skip to main content

Lesson 1: First check, start to finish

In this lesson you set up one check and run it on five drawings: every drawing must name the client "EXAMPLE CLIENT". Then you read the report the way most report users do: the summary on screen, the Excel export, and the Review view to see the failing field on the drawing.

What you learn​

  • What a project, a document type, an Extract, a Validator and a report are.
  • How to create a project and a document type from a template PDF.
  • How to check a field with the guided Field validation.
  • How to use the On template result to test a check before you run it.
  • How to run a report and read it: the summary cards, the Excel export and the Review view.

Files for this lesson​

Download Lesson 1 files (zip) and unpack it.

FileWhat it is for
template/NDXTEST-NHX-B1-00-DR-A-200100_P02_A3_landscape.pdfThe template. You set up the check on this drawing.
check/NDXTEST-NHX-B1-01-DR-A-200101_P02_A3_landscape.pdfA drawing to check.
check/NDXTEST-NHX-B1-02-DR-A-200102_P02_A3_landscape.pdfA drawing to check.
check/NDXTEST-NHX-B1-RF-DR-A-200103_P01_A3_landscape.pdfA drawing to check.
check/NDXTEST-NHX-B1-ZZ-DR-A-200104_P01_A3_landscape.pdfA drawing to check.
check/NDXTEST-NHX-B1-ZZ-DR-A-200105_P01_A3_landscape.pdfA drawing to check.
expected.jsonThe answer key. You do not need it for the exercise.

All six are A3 drawings with the same title block. One of the five drawings to check has a fault. Finding it is the exercise.

The parts of a check​

NodePDF uses a few words for the parts of a check. You will see them on every screen.

WordWhat it meansIn this lesson
ProjectEverything that belongs to one set of documents: its document types, values and reports."Example Project"
Document typeOne kind of document, such as a drawing or a report, with the checks that apply to it."Drawing"
TemplateA typical PDF of the document type. You set up the checks on it.The 200100 drawing
ExtractReads text from the PDF, usually from an area of the page.The CLIENT box
ModifierChanges the text an Extract read, for example removes a label.Removes the word "CLIENT"
ValidatorChecks the text and gives pass or fail.Must be exactly "EXAMPLE CLIENT"
Field validationOne field of the document: an Extract, its Modifiers and its Validators together.CLIENT
ReportThe result of checking a set of PDFs against the project."Lesson 1"

A run works like this: for each PDF, NodePDF finds the document type it belongs to, reads each field with its Extract, changes the text with the Modifiers, and lets each Validator decide pass or fail. A file passes when all its required checks pass.

Steps​

Create the project and the document type​

  1. Open NodePDF. On the start page, choose New project.

  2. In the New NodePDF project dialog, type Example Project as the Project name and choose Create project. The project opens on its Doctypes tab.

  3. Drop the template PDF from the template folder on the area Drop PDFs here to create document types, or choose Choose PDFs and pick it. NodePDF creates one document type, named after the file: "NDXTEST-NHX-B1-00-DR-A-200100_P02_A3_landscape".

  4. Open the new document type by clicking its name.

  5. Choose Edit details, change the Name to Drawing, and save.

    The details form with the name Drawing and a description

The new document type page, with its template, the Document filter section and an empty Items section

The page shows the template on the left and a warnings button at the top. The warnings say, among other things, that no Validators are configured yet. They go away as you set up the document type.

Check the client name​

  1. In the Items section, choose Field validation. The canvas editor opens full screen with the template, and a panel on the right walks you through three steps.

  2. Step 1, Pick the field. Click the CLIENT box in the title block (or drag over the text). The panel shows the Title "CLIENT" and what the field Reads on this drawing: "EXAMPLE CLIENT". Below it, in brackets, it says (Remove "CLIENT"): the small grey label printed in the box is removed from the value automatically.

    Step 1 of the guided field validation with the CLIENT box picked

  3. Choose Next: check the value.

  4. Step 2, Check the value. The panel shows the value the check will look at, "EXAMPLE CLIENT", and the change that produced it, Remove "CLIENT". The value is right, so choose Yes, check this value.

  5. Step 3, What should "CLIENT" contain? Choose Exactly "EXAMPLE CLIENT" (upper and lower case are ignored). The check appears under Checks added with the result Passes: it passes on the template.

    Step 3 with Exactly "EXAMPLE CLIENT" added and passing on the template

  6. Choose Done. You are back on the document type page.

The Items section now has one row, CLIENT. Its Blocks show the three parts in order: PDF area (the Extract), Remove (the Modifier) and Fixed value (the Validator). The On template column shows Passes.

The Items section with the CLIENT field validation passing on the template

The On template result is your first test. If it says Fails, the check would also fail on correct drawings. Hover over the result to see why, and fix the check before you run a report.

Try the check on the drawings (optional)​

You can see the result on other drawings before you run a report.

  1. Choose Test files at the bottom left of the page and drop the five PDFs from the check folder on it.
  2. When NodePDF asks what the files are for, keep This document type and choose OK.

The On template column becomes On files, with one square per file: the template (marked T) and the five test files. Green is a pass, red a failure. One square is red, and the row says "5 of 6".

The CLIENT row with one square per test file, one of them red

Test files are not stored in the project and are not a report. They are a quick way to try a check while you set it up. See Documentation › Test files.

Run the report​

  1. Open the Validate tab of the project (in the sidebar, or the tab at the top of the project page).
  2. Choose Choose PDFs and pick the five PDFs from the check folder, or drop them on the page.
  3. Leave All document types switched on. Type Lesson 1 as the Report name, leave Extract images at No images, and choose Run report.

The Validate tab with the five drawings chosen and the report name "Lesson 1"

When the run is finished, the report opens. It is also listed under Reports on the Validate tab and in the sidebar under Validate.

Reading the report​

The summary cards​

The top of the report page has four cards.

CardWhat it countsLesson 1
FilesThe PDFs in the report: how many were read, and how many belong to no document type.5, 5 read, 0 without document type
Document typesThe project's document types: how many had files, how many had none, and how many had failures.1, 1 with files, 1 with failures
ChecksEvery check on every file: one Validator on one PDF is one check.5, 4 passed, 1 failed
ResultsThe files that got a result: passed or failed.5, 4 passed, 1 failed

Here Checks and Results show the same numbers, because each drawing has one check. With more checks per drawing, the Checks card counts much higher than the Results card.

The report page for Lesson 1, with the four summary cards and the tabs

Below the cards, the report page has tabs with the files, the checks, the reasons and the results. They are being redesigned, so this tutorial reads the report in the Excel export instead.

Reading the Excel export​

Most report users work in the Excel export. It holds everything the report page shows.

  1. Choose Export to Excel at the top right of the report page. NodePDF downloads Lesson 1.xlsx.
  2. Open the file in Excel.

The file has one sheet per view of the report, and the Results sheet is the one to work in: one row per check on each file. Its key columns are Status (PASS or FAIL), Extracted Text (what the check read), Reason (the kind of failure) and Details (what happened). Every sheet and column is described in Reading reports › The Excel export.

  1. On the Results sheet, filter Status to FAIL.

One row is left: NDXTEST-NHX-B1-ZZ-DR-A-200104_P01_A3_landscape.pdf. Its Extracted Text is "OTHER CLIENT LTD", its Reason is "Doesn't match", and its Details say Expected "EXAMPLE CLIENT".

Seeing the failure on the drawing: the Review view​

The Excel file tells you what was read. The Review view shows where it was read.

  1. On the report page, find the failing drawing 200104 and choose the eye button next to it (in the Files or Results tab).

The Review view opens the drawing full screen. The areas the checks read are outlined: green for a pass, red for a failure. The panel on the right lists the file's checks. Here it shows CLIENT as Fail, the text "OTHER CLIENT LTD" and Doesn't match: Expected "EXAMPLE CLIENT".

The Review view on drawing 200104, with the CLIENT box outlined in red

Use Previous file and Next file at the bottom to move through the files. The toolbar switches the layers on and off (Check areas, Text items, Text problems) and has a text search. Close the Review view with the × at the top right. See Documentation › Reading reports.

Exercise​

Do the steps above if you have not done them yet: a document type "Drawing" with a field validation CLIENT that must be exactly "EXAMPLE CLIENT", and a report "Lesson 1" on the five drawings in the check folder.

You're done when…

  • the CLIENT row shows Passes under On template;
  • the report "Lesson 1" shows Files 5, and Results 5: 4 passed, 1 failed;
  • in the Excel export, the Results sheet filtered on Status FAIL shows one row, drawing NDXTEST-NHX-B1-ZZ-DR-A-200104, with the Extracted Text "OTHER CLIENT LTD";
  • you have opened drawing 200104 in the Review view and seen the CLIENT box outlined in red.

The drawing fails because its client is "OTHER CLIENT LTD" instead of "EXAMPLE CLIENT".

In the example project

Open NDX Example - Text and drawings, document type Text document. Its CLIENT field validation is set up exactly like yours: PDF area, Remove "CLIENT", Fixed value "EXAMPLE CLIENT". On the Validate tab you can run it on the NDX example drawings.

Check yourself​

Why does the CLIENT check not fail because of the label "CLIENT" printed in the box?
The On template result of a new check says Fails. What do you do?
Where do you see which text NodePDF read on a failing drawing?

See also​