Every failed check in a report has two descriptions:
- Reason: a short, fixed label for the kind of failure, such as "Doesn't match". It is the Reason column of the Excel export's Results sheet, so failures can be filtered and counted by it in Excel. The report page shows the same column.
- Details: what happened for that one check, such as
Expected "EXAMPLE CLIENT". It is the Details column. The Extracted Text column in Excel (Text checked on the report page) shows what the check read.
Passed checks have no reason. Reports made with an earlier version of NodePDF may have failures without a reason.
Reason kinds
| Reason | Caused by | What to do |
|---|
| Data frame not found | The check belongs to a data frame, and the frame was looked for on the PDF and not found (its fixed texts, the anchors, were not on the page). All checks of that frame fail with this reason. | Open the file in the Review view. If the title block is a different one, the file may belong to another document type. If it is the right title block, check on the data frame page that every anchor is a text that appears on every drawing, and try the frame on the file as a test file. |
| Data frame missing | The data frame the document type imports, or the version it is locked to, no longer exists in the project. | On the document type page, under Data frames, remove the import and import the frame again. |
| Text printed twice | An area the check reads has the same text printed twice on top of itself. The check fails whatever it says on its own. | Have the PDF produced again without the doubled text. See Extracts › Text printed twice. |
| Could not be checked | Something the check needed was not available while the report ran. | Run the report again. If it happens again, report it to your administrator with the file. |
| Extract empty | A Not empty check found nothing in its area. | Open the file in the Review view. If the field is blank, the drawing needs correcting. If the field is filled in but outside the area, adjust the area (or use a data frame). |
| Check not set up | Reserved for checks that miss a setting. Not given yet: such failures currently show as "Doesn't match". | Open the Validator and complete its settings. |
| Doesn't match | The text does not meet the check: Fixed value, Text contains, Empty, Pattern, One of a list, Date, Matches filename or Lookup. Also used, for now, for an empty Extract, a key missing from a lookup table, and set-up problems (see below). | Compare Text checked with Details. If the drawing is wrong, correct it. If the text is right but read differently (a label left in, two lines run together), adjust the Extract or add a Modifier. If the rule is too strict, adjust the Validator. |
| Not in lookup table | Reserved for a key that is not in the lookup table. Not given yet: such failures currently show as "Doesn't match". | Add the value to the lookup table, or correct it on the drawing. |
| Image not found | An Image check did not find its image with the required similarity, or could not look for it. | Read the similarity in Details. A low score means the image is missing or different. A score just under the threshold may mean a slightly different version of the logo: lower the Match threshold a little. Check that the image is inside the search area and printed at the same size. |
| PDF property | A property of the PDF itself: PDF/A, Readable text, No Autodesk SHX text or Page format. | Produce the PDF again with the right settings: PDF/A export, text instead of a scan, TrueType fonts or SHX comments, the right sheet size. |
Result labels
| Shown as | In Excel (Status, Fails File) | Meaning |
|---|
| Pass | PASS, No | The check passed. |
| Fail | FAIL, Yes | A required check failed. The file fails. |
| Fail (optional) | FAIL, No | An optional check failed. The file does not fail. |
| Fail (excluded) | FAIL, Yes | Shown on the report page only, when its reason has been set aside there. The Excel export always counts every failure. |
Detail messages
Messages are quoted as NodePDF writes them. Parts in angle brackets stand for values that differ per check:
| Placeholder | Stands for |
|---|
<value> | The expected value, or the value of the project variable used. |
<text> | The text the check read. |
<name>, <list> | The name of a project variable, list, saved pattern, data frame or Extract. |
<pattern> | A Pattern in words (Simple mode, such as "P" + 2 digits) or the regular expression (Regex mode). |
<format> | A date format such as DD/MM/YYYY. |
<key> | The text a Lookup looked up. |
<n>, <pages> | A number, or a list of page numbers. |
<score>, <threshold> | An image similarity (1.00 = identical), and the Match threshold it must reach. |
<level> | A PDF/A conformance level, such as B. |
<details> | The check's own details, as listed below. |
Messages added by the report
These wrap or replace a check's own message.
| Details | Reason | Meaning |
|---|
Data frame "<name>": not found on page <n> | Data frame not found | The frame's anchors were not found on that page. |
The data frame no longer exists | Data frame missing | The imported frame was removed from the project. |
Version of data frame "<name>" no longer exists | Data frame missing | The frame version the document type is locked to was removed. |
Text printed twice in "<name>": "<text>" (<details>) | Text printed twice | The Extract named reads doubled text. The check's own details follow in brackets. |
Could not be checked: <details> | Could not be checked | The check could not finish, for example Could not be checked: Loading…. |
Every text check
These can appear for any Validator that reads an Extract.
| Details | Meaning |
|---|
No extract selected | The Validator's Checks field is empty, usually because the Extract it read was deleted. |
The extract is empty | The Extract read nothing. Empty and Not empty treat this as their normal result. |
The project variable it compares with no longer exists | The value comes from a project variable that was deleted. |
Project variable "<name>" has no value | The value comes from a project variable without a value. |
Fixed value
| Details | Result |
|---|
Equals "<value>" | Pass |
Expected "<value>" | Fail: the text is different. |
Text contains
| Details | Result |
|---|
Contains "<value>" | Pass |
Doesn't contain "<value>" | Fail |
No text to look for | Fail: Text to find is empty. |
One of a list
| Details | Result |
|---|
Is "<text>" in list "<list>" | Pass |
Not in list "<list>" (<n> options) | Fail. With one option: (1 option). |
No list selected | Fail: no list chosen. |
The list it checks against no longer exists | Fail: the list was deleted. |
List "<list>" has no options | Fail: the list is empty. |
Date
| Details | Result |
|---|
Is a date (<format>) | Pass. With Any common date format, names the format found. |
Not a date | Fail (any common date format). |
Not a date in the format <format> | Fail (a chosen format). |
"<format>" is not a valid date format | Fail: the custom format lacks a year, month or day. |
Matches filename
| Details | Result |
|---|
Equals the file name | Pass |
File name is "<name>" | Fail. Shows the full file name, for example File name is "NDXTEST-NHX-B1-00-DR-A-200100_P02.pdf". |
Empty
| Details | Result |
|---|
The extract is empty | Pass |
Expected nothing, read "<text>" | Fail |
Not empty
| Details | Result |
|---|
The extract reads something | Pass |
The extract is empty | Fail (reason: Extract empty) |
Pattern
| Details | Result |
|---|
Matches <pattern> | Pass, for example Matches "P" + 2 digits. |
Doesn't match <pattern> | Fail, for example Doesn't match 1 digit + ":" + 3 digits + " @ A" + 1 digit. |
Doesn't match (empty pattern) | Fail: the pattern has no blocks yet. |
"<pattern>" is not a valid pattern | Fail: the regular expression (Regex mode) is invalid. |
A Simple pattern with a problem in one of its blocks fails with that problem:
| Details | Fix |
|---|
A number block has a maximum below its minimum | Correct the block's counts. |
A letters block has a maximum below its minimum | Correct the block's counts. |
An 'any characters' block has a maximum below its minimum | Correct the block's counts. |
A 'one of' block has no options | Add options, one per line. |
An 'or' block has no alternatives | Add an alternative, or remove the block. |
An 'or' block has no blocks yet | Add blocks to at least one alternative. |
A variable block refers to a project variable that no longer exists | Choose another variable. |
Project variable "<name>" has no value | Give the variable a value. |
A list block has no list chosen | Choose a list. |
A list block refers to a list that no longer exists | Choose another list. |
List "<name>" has no options | Add options to the list. |
A saved pattern block has no pattern chosen | Choose a saved pattern. |
A saved pattern block refers to a pattern that no longer exists | Choose another saved pattern. |
Saved pattern "<name>" is not a valid regular expression | Correct the saved pattern. |
A regular expression refers to a project variable that no longer exists | A saved pattern's regular expression uses a deleted variable: correct the saved pattern. |
Saved pattern "<name>" contains itself | A saved pattern uses itself, directly or through another one: remove that block. |
Saved patterns are nested too deeply | Saved patterns use each other more than 10 levels deep: simplify them. |
Lookup
| Details | Result |
|---|
Found in the row of "<key>" | Pass (Row) |
Matches "<value>" | Pass (Columns) |
Not in the row of "<key>" | Fail (Row): the key was found, but the compared text is not in its row. |
Expected "<value>" | Fail (Columns): the key was found, and the table expects this value. |
"<key>" not found in the lookup table | Fail (Row): no row contains the key. |
"<key>" not found in the lookup column | Fail (Columns): the key is not in Find it in column. |
No extract to look up selected | Fail: Looks up is empty. |
No lookup table selected | Fail: Lookup table is empty. |
Extract to look up: the extract is empty | Fail: the key's Extract read nothing. |
Lookup columns are not set | Fail: a column is missing. |
The lookup table is not available in this browser | Fail: the table's file is not in this browser. Import the table again on Project › Lookup tables. |
The lookup table has no sheets | Fail: the table is empty. |
Image
| Details | Result |
|---|
Found the image anywhere on page <n> (similarity <score>, needs <threshold>) | Pass. With In an area of page N: Found the image in an area of page <n> (…). A rotated match adds , rotated <n>°. |
Image not found anywhere on page <n> (best similarity <score>, needs <threshold>) | Fail: the closest match is below the threshold. With an area: Image not found in an area of page <n> (…). |
No image captured yet | Fail: capture the image from the template. |
The PDF has no page <n> | Fail: the PDF is shorter than the page searched. |
The image is larger than the area it is looked for in | Fail: enlarge the search area. |
The captured image is blank | Fail: capture the image again. |
The captured image is not available in this browser | Fail: capture the image again, or import the project again. |
The image's background could not be ignored | Fail: turn off Ignore the busy background behind the image, or capture again. |
The image could not be looked for | Fail: the search did not run. A technical message may follow after a colon. |
All Image failures have the reason Image not found.
PDF/A
| Details | Result |
|---|
PDF/A conformance <level> | Pass, for example PDF/A conformance B. |
The PDF declares no PDF/A conformance | Fail |
PDF/A conformance is <level> | Fail: a level other than the required one. |
Readable text
| Details | Result |
|---|
The PDF has readable text | Pass |
The PDF has at least <n> readable text items | Pass, with a Minimum text items. |
The PDF has <n> readable text items, fewer than <n> | Fail: some text, but less than the minimum (the second number), for example The PDF has 12 readable text items, fewer than 40. |
The PDF has no readable text | Fail: for example a scan. |
The PDF has no readable text: its text is AutoCAD SHX text (<n> texts), drawn as lines | Fail: the only text is SHX text. |
No Autodesk SHX text
| Details | Result |
|---|
The PDF has no AutoCAD SHX text | Pass |
The PDF has AutoCAD SHX text: <n> texts on pages <pages> | Fail, for example The PDF has AutoCAD SHX text: 12 texts on pages 1, 3 or … 1 text on page 2. |
Page format
| Details | Result |
|---|
Pages 1 and 2 are A1, page 3 is A3FF | Pass (Any of these): the pages and their formats. |
Page 1 is 841 × 594 mm (A1 landscape), not A4 | Pass (None of these). |
Page 2 is 420 × 297 mm (A3 landscape), not A1 or A3FF | Fail (Any of these): a page is not one of the chosen formats. |
Pages 1 and 3 are A4 (210 × 297 mm) | Fail (None of these): pages are one of the excluded formats. |
Page 1 is portrait, not landscape | Fail: wrong orientation. |
Pages 1, 3, 5, 7, 9 and 2 more are 210 × 297 mm (A4 portrait), not A1 | Fail: long page lists are shortened. |
The PDF has no page 5 (3 pages) | Fail: a page in Pages to check is past the end of the PDF. |
No formats chosen | Fail: tick at least one format. |
No pages chosen | Fail: enter pages to check. |
The PDF has no pages | Fail |
Several problems are joined with ; .
Files without results
Some files in a report have no checks at all. The Files tab shows them with their own result:
| Result (Files tab) | Excel Outcome | Meaning | What to do |
|---|
| No document type | NO DOCUMENT TYPE | No document type's filter matched the file, so nothing was checked. | Check the file name against the document types' file name patterns, or the filter Validator's result (for example the page size). The file may be of a kind the project does not check. |
| Unreadable | UNREADABLE | The PDF could not be opened. The Excel Note says why: Couldn't read this PDF: <error>. | Open the file in a PDF reader. Damaged files, password-protected files and files that are not real PDFs cannot be read. |
A file can also belong to several document types; it is then checked once for each.
How the document filter decides
The document filter of each document type decides which files belong to it. Its result is shown on the document type page under Document filter (Matched files) and for each test file, as "Matched: …" or "Not matched: …" followed by one of these:
| Message | Meaning |
|---|
The file name matches the pattern | File name filter: the file belongs to the document type. |
The file name doesn't match the pattern | File name filter: it does not. |
The file name pattern can't be used: <problem> | The pattern has a problem (for example an invalid regular expression or a missing variable). It matches no file. |
Validator "<name>": <details> | Filter by Validator: the Validator's own details, for example Validator "Not A4": Page 1 is 841 × 594 mm (A1 landscape), not A4. |
The filter validator no longer exists | The filter Validator was deleted. No file matches. |
In the test files pop-out, a file the filter does not match is marked "not matched by the document filter". It is still checked there, because you added it on purpose; in a report it would not be.
Both document types filter by a hidden Page format Validator: "Drawing" takes every PDF whose first page is not A4, "Text document" every PDF whose page 1 is A4. A readable PDF therefore always gets one of the two.
What the Reason column does not yet separate
Some failures are currently filed under Doesn't match although they are something else. The Details column tells them apart:
| Details | Really means |
|---|
The extract is empty | The Extract read nothing (an empty field, an area in the wrong place, or text the PDF doesn't store as readable text; see Common PDF problems). Only Not empty files this under Extract empty. |
"<key>" not found in the lookup table, "<key>" not found in the lookup column | The key is missing from the lookup table. |
No extract selected, No list selected, No lookup table selected, Lookup columns are not set, a Pattern block problem, a missing or empty project variable | The check is not fully set up. |
Likewise, a set-up problem of a Document or Image check is filed under PDF property or Image not found (for example No formats chosen, No image captured yet).
When a report has many "Doesn't match" failures, filter the Excel export's Results sheet on Reason = "Doesn't match" and sort the Details column to see which of these they are.
Related pages