Common PDF problems
A PDF can look perfect on screen and still read wrong. What you see is drawn on the page; what NodePDF reads is the text the PDF stores, in pieces called text items. Usually the two agree. When a check fails on a drawing that looks correct, the cause is often in how the PDF stores its text. This page lists the common problems, how to recognise each, and what to do about it.
Seeing what a PDF really holds
| Where | What it shows |
|---|---|
| The report's Extracted Text | What the check read. Compare it with what the PDF shows. |
| Review view, Text items layer | Every text item outlined, so you see where each piece of text starts and ends. |
| Review view, hovering a text | The item's exact text, with Copy text. It also says when the text is AutoCAD SHX text or Printed twice. |
| Review view, Text problems layer and the colour key | AutoCAD SHX text in violet and text printed twice in magenta, with their counts on the page. |
| Review view, Document tab | Whether the PDF has readable text, and how much AutoCAD SHX text it has. |
| Canvas editor, a field selected | The field's text items highlighted on the template. Hover one to see it on its own. |
| The area dialog | The text items on the page outlined, and the ones the area reads highlighted. |
| Test files | What each field reads on other PDFs than the template. |
| Any PDF reader | Try to select the text, or search for it with Ctrl+F. Text you can see but not select or find is not stored as text. |
Which problem is it?
| What you see in the report | Likely cause |
|---|---|
| "The extract is empty", although the value is on the PDF | Text drawn as lines, a scan, or one item for several fields that the area holds only a small part of |
The value twice, such as EXAMPLE CLIENTEXAMPLE CLIENT | Text printed twice |
| Text from the neighbouring columns or fields | Text merged into one item |
Words run together, such as APPROVEDBY, or characters missing at the start or end | Text split into several items |
Fixed characters bunched together, such as +-+123 123 123 123 | Form text mixed with filled-in text |
| The right pieces in the wrong order | Text stored out of order |
| The file is Unreadable | PDFs that cannot be opened |
Text drawn as lines
What it is. The text is drawn as lines and curves that look like letters, not stored as text. There are two kinds:
- AutoCAD SHX text. AutoCAD draws text in its SHX fonts as lines. When it plots with comments, it adds an "AutoCAD SHX Text" comment over each text, which holds the text.
- Text converted to outlines. Some programs and print settings ("text as graphics", "convert text to outlines" or "to curves") turn every letter into a shape. Nothing holds the text.
How to recognise it.
- In a PDF reader, the text can't be selected or found with Ctrl+F.
- In the Review view, the text has no outline in the Text items layer. SHX text with comments is outlined in violet in the Text problems layer and counted in the colour key; hovering it says AutoCAD SHX text.
- Checks that read it fail with "The extract is empty".
What to do.
- For SHX text with comments, switch on Allow AutoCAD SHX text in the project's settings. Extracts then read the comments. See Projects › Allow AutoCAD SHX text.
- To require real text from contractors, add the No Autodesk SHX text Validator. It fails on any PDF with SHX text, whatever the setting.
- Text converted to outlines can't be read. Ask for the PDF again with real text: TrueType fonts in CAD, and text kept as text in the export or print settings.
See Extracts › AutoCAD SHX text and Lesson 7: Difficult PDFs.
Scanned PDFs
What it is. The page is one picture, for example a scan of a printed drawing. It holds no text at all.
How to recognise it. The Review view says the PDF has no readable text, and the Text items layer outlines nothing. Every Extract reads nothing.
What to do.
- Add the Readable text Validator, so that a scan fails with
The PDF has no readable textand is told apart from a field that is really empty. - Ask for the original PDF. Text recognition (OCR) in a PDF program adds text that NodePDF can read, but it misreads look-alike characters such as O and 0, small grey labels and stamps, so it is not reliable for exact checks.
Text printed twice
What it is. The PDF holds a text twice, exactly on top of itself, for example from a plot that writes each field twice. You see it once.
How to recognise it. The check fails with the reason Text printed twice, and the Extracted Text has the value twice: EXAMPLE CLIENTEXAMPLE CLIENT. In the Review view the text is outlined in magenta, and hovering it says Printed twice.
A variant is "fake bold": the same text printed a second time slightly offset, to look bold. It is not flagged as printed twice, but it reads twice all the same, so the check fails with an ordinary reason such as "Doesn't match". Hover the text in the Review view with Text items on: there are two outlines, slightly apart.
What to do. Have the PDF produced again without the doubled text. Changing the check does not help: NodePDF fails every check that reads such an area, whatever the check says. See Extracts › Text printed twice.
Text merged into one item
What it is. One text item holds text that looks like several separate texts, spread out with spaces. For example, a revision table whose row 22/10/26 P02 AB CD FIRST ISSUE is one item across five columns, or a label and its value in one item, such as REV: P02.
How to recognise it. In the Review view, with Text items on, one outline runs across several columns or fields. Hover it to see the whole text. What the checks read then depends on the area:
- An area over one column holds only a small part of the item. With Overlap that part is usually far below the Min. overlap, and with Contain the item is never completely inside, so the area reads nothing: "The extract is empty".
- An area that holds enough of the item reads all of it, the other columns included, because a text item is always read whole. See Extracts › Extract modes.
What to do.
- Draw the area over the whole item, so that it reads the whole row, and cut out the part you want with Modifiers. When the columns are padded with spaces to fixed widths, Keep the first N characters and Keep the last N characters, one after the other, give a single column. Remove text takes out a label, such as
REV:. - Or check the whole row at once with a Pattern in Regex mode, for example
^\d{2}/\d{2}/\d{2}\s+P\d{2}\sfor a date followed by a revision. - Clicking the item to remove it from a value (Remove from value) removes all of it, label and value together. Type the label with Remove text… instead.
- For a data frame, don't use a label that shares its item with a value as an anchor: the anchor's text then includes the value, which changes from drawing to drawing.
- If the field can't be checked this way, ask for the PDF to be produced with each cell as its own text.
Text split into several items
What it is. A text that looks like one piece is stored in several, for example the label "APPROVED BY" as "APPROVED" and "BY", or a value with one item per character.
How to recognise it. In the Review view, with Text items on, one word or label has several outlines; hovering shows only a part. In the report, the effects are:
- Words run together. An area joins its items without spaces, and the gap between two items is not a stored space, so "APPROVED" and "BY" read
APPROVEDBY. See Extracts › Text rules. - Pieces in the wrong order, when the PDF stores them out of order.
- Characters missing at the edges. With one item per character, Overlap decides for each character on its own, so characters on the edge of the area can drop out:
EXAMPLE CLIEN.
What to do.
- Write labels to remove, and expected values, the way NodePDF reads them: Remove text
APPROVEDBY, notAPPROVED BY. The guided setup's step Check the value shows the text as the checks see it. - When you remove a split label by clicking it (Remove from value), click each of its pieces.
- For pieces in the wrong order, set the Extract's Reading order to Top to bottom priority. See Extracts › Reading orders.
- For characters lost at the edges, draw the area with some margin around the value.
- Data frame anchors are not affected: an anchor is also found when its label is split into pieces close together on one line, ignoring upper and lower case and spaces.
Form text mixed with filled-in text
What it is. Some documents are made from a form whose fixed characters, such as the + and - of a chainage, are printed with the form, and the values are filled in on top afterwards as one text item, spaced so that they fall between the fixed characters. On the page you see 123+123-123+123. The PDF holds the items +, - and + from the form, and one item 123 123 123 123 with the values.
How to recognise it. The Extracted Text has the fixed characters bunched together, apart from the values, for example +-+123 123 123 123. In the Review view, with Text items on, one outline runs across all the values and the fixed characters have outlines of their own; hovering the values shows 123 123 123 123.
Why the reading order does not help. A text item is always read whole, so no reading order can put the fixed characters back between the values inside one item. The reading order only decides whether the fixed characters come before or after the values. (When each value is an item of its own, Left to right priority can put them in place; see the example in Extracts › Reading orders.)
What to do. The fixed characters come from the form and are the same on every document, so check the values on their own:
- Look at what the template reads, in the step Check the value or in the canvas editor, and note where the fixed characters end up.
- Remove them with a Remove text Modifier, for example
+-+. - Check what is left with a Pattern. The number of spaces between the values can differ from document to document, so use Regex mode with
\s+between the values, for example^\d{3}\s+\d{3}\s+\d{3}\s+\d{3}$.
If the values must be checked together with the fixed characters, write a pattern for the text as it reads, for example ^\+-\+\d{3}\s+\d{3}\s+\d{3}\s+\d{3}$.
Text stored out of order
What it is. The PDF stores a field's items in another order than they are read, for example the second line of a drawing title before the first. A raised character, such as the "2" of "m²", can also sit outside its line.
How to recognise it. The Extracted Text has the right pieces in the wrong order. The area dialog shows the text in the Extract's reading order.
What to do. Change the Extract's Reading order: Top to bottom priority for text on several lines, Left to right priority for values in columns or a raised character. See Extracts › Reading orders.
PDFs that cannot be opened
What it is. A damaged file, a password-protected file, or a file that is not really a PDF.
How to recognise it. The file is listed as Unreadable in the report, with the reason in the Excel Note: Couldn't read this PDF: <error>.
What to do. Open the file in a PDF reader to see what is wrong, and ask for it again without a password. See Failure reasons.
What to ask for when a PDF must be produced again
When you send a PDF back, these points cover the problems on this page:
- Real text, not text drawn as lines: TrueType fonts in CAD, or SHX text plotted with comments, and no "text as graphics" or "convert to outlines" setting.
- Each text once, not printed twice or offset to look bold.
- The original PDF from the program that made it, not a scan.
- Each field or cell as its own text, where the PDF is made from a form or table.
- No password.