Data frames
A data frame is a reusable set of fields and checks, built once on an example PDF and imported by document types. A standard title block is the typical case: its layout and rules are the same on every drawing, only the values differ. Because a data frame is found on each PDF by its labels, it still works when the title block sits somewhere else on the page or is printed at another scale, for example on an A3 print of an A1 drawing. One document type with a data frame therefore checks drawings of every sheet size; there is no need for a document type per size.
This page covers building a data frame, its anchors and frame area, trying it on other PDFs, and importing it into document types.
When to use a data frame
Use a data frame when:
- the same title block appears on several document types, so you set its checks up once;
- the title block moves or changes size between drawings, for example on the A1, A2 and A3 sheets of one project. One document type with the frame then checks all of them. Do not make a document type per sheet size: that doubles the work for nothing.
A document type's own areas are positions on the page. They only work when the field is in the same place on every PDF. A data frame's areas move with the frame.
What a data frame holds
| Part | What it is |
|---|---|
| Example PDF | The PDF the frame is built on. |
| Cells | The frame's Extracts: the areas of its fields, with their Modifiers and Validators, set up like a document type's items. |
| Anchors | Texts that are always there and always in the same place within the frame, usually the printed labels such as CLIENT, SCALE or DATE. The frame is found on other PDFs by them. |
| Frame area | The extent of the frame on the example page. Without one, it is the box around the cells and anchors. |
| Versions | Named, locked copies of the frame, for document types that must not change when the frame does. |
Building a data frame
Data frames are listed on the project's Doctypes tab, below the document types, and in the sidebar under Doctypes › Data frames.
- Click New data frame › From an example PDF…, or drop a PDF on the Data frames list. The frame is named after the file. (Without an example makes an empty frame; add the example later with Add example PDF.)
- On the frame's page, click Auto-extract title block, or use Field validation to set up fields one by one. With Auto-extract title block, each field's label also becomes an anchor. See Auto-extract title block.
- Check the anchors at the bottom of the page.
- Try the frame on other PDFs with test files.
- Import it into the document types that use it.

The frame page is laid out like a document type page:
- The header has Save version, Project values (the Project values panel, to change variables, lookup tables and lists without leaving the page) and Open canvas editor.
- Details show the frame's preview (cropped to the frame), the description, Replace example PDF, Edit details, the example file and, for a multi-page PDF, the Example page.
- "Found on the example by N of N anchors" checks the frame against its own example. Fewer than all means some anchor is not where it was defined.
- Used by lists the document types that import the frame.
- Items work as on a document type page. A cell no frame Validator checks has the Not checked chip; document types using the frame may still check it.
- Versions and Anchors follow at the bottom.
Open Doctypes › Data frames › Title block. It has seven field validations (CLIENT, PROJECT, SCALE, DATE, JOB No., Originator and Role) and 13 anchors. The document type "Drawing" imports it.
Frame area and anchors
Anchors
The Anchors section lists every anchor with its text and any warning, and shows the frame with the anchors outlined in orange. Hover a row to highlight its anchor.
To add or remove anchors, click Edit anchors. The canvas editor opens with the Anchor tool (key A):
- click a text on the example to add it as an anchor;
- click an anchor to remove it;
- the side panel lists the anchors; click one to zoom to it.
The fields are hidden in this tool, so the labels are easy to click.
Good anchors:
- are printed on every drawing, in the same place within the title block;
- appear only once. An anchor whose text appears several times on the example is marked "Appears N times on the example, so it is a weaker anchor";
- do not vary. A label spelled differently on a PDF counts as a missing anchor (upper and lower case and spaces are ignored).
Placing the anchors
NodePDF finds the frame on a PDF by fitting its anchors to the texts on the page, and it counts the frame as found wherever at least 60 % of the anchors are found (the default). Two rules for placing anchors follow from this.
Spread the anchors across and down the title block. The frame's width and height on a PDF are measured between the anchors that are found. Anchors that all stand above each other in one column fix the height but say nothing about the width: on a wider title block the frame keeps the width it had on the example, and the cells keep their example width and place, so they no longer fit their boxes. Put anchors near the left and right edges and near the top and bottom of the frame, as far apart as the title block allows.
Use only the anchors the frame needs. More anchors are not safer. Because 60 % is enough, a frame with many anchors close together, such as the column headings of a revision table, can be found at another spot on the page that has only those texts, for example a schedule with the same headings. The one or two anchors far away that would tell the spots apart are outnumbered. Four to six anchors far apart, each printed once on the page, are better than twelve in one corner.
A good set of anchors is small, spread out in both directions, and limited to the texts the frame needs. When the frame is found at the wrong place on a PDF, remove anchors that cluster together rather than adding more.
Frame area
The Frame area tool (key R) in the frame's canvas editor sets the frame's extent: drag over the example page. The page around it is dimmed. Drag the edges or corners to change it. Clear frame area goes back to the box around the cells and anchors.
The frame page warns when a cell or anchor lies outside the frame area.
Trying a frame on other PDFs
Drop PDFs on the frame page's Test files tab (see Test files). Each file is searched for the frame on every page:
- A Found on files table above the Items says, per file, whether the frame was found, by how many anchors, and where.
- Every cell and check is shown per file, read where the frame was found.
- View shows the file in the canvas editor, with the cells drawn where the frame was found. They can't be edited there; Stop viewing returns to the example.

A file where the frame is not found fails every check of the frame.
Importing a frame into a document type
On the document type page, under Data frames, click Import data frame and choose the frame. Each frame can be imported once per document type.

Each imported frame is a card. Cards start minimised, showing the frame's name, whether it was found on the template, and its numbers of cells and validators. Click the arrow to expand a card:
| Part | What it does |
|---|---|
| Version | Latest follows every change to the frame. A saved version is "(locked)" and never changes. |
| Where it is | How the frame is placed on each PDF (below). |
| Status | Where the frame is on the template, for example "Found on page 1 · scale 1.00 · 13/13 anchors". |
| Cells | What each cell reads on the template. |
| Frame validators | The frame's checks with their results on the template. They are changed on the frame page. |
| Extension validators | Extra checks for this document type only, on the frame's cells or the document type's own items. |
| Remove (bin) | Removes the frame from this document type, with its extension validators. |
Placement
| Choice | What happens |
|---|---|
| Anywhere on page… | The frame is searched for by its anchors on the given Page of every PDF. It may be moved and scaled (from a quarter to four times its size). This is the default. |
| At a fixed spot | The frame is found once on the template, and that spot is used on every PDF without searching. Fix where found searches the template again. |
Use Anywhere on page… unless the frame is always in exactly the same place and searching gives trouble.
Versions
While document types use Latest, every change to the frame applies to them at once. To protect a document type from changes:
- On the frame page, click Save version and give it a Version name.
- In the document type's frame card, choose that version under Version.
The Versions table on the frame page shows each version, when it was saved, its contents and which document types are locked to it. A version can't be removed while a document type is locked to it.
Extension validators
Extension validators add checks for one document type to a shared frame. Keep the frame's own checks general, so that every document type that imports it can use them, and add the specific ones as extension validators. For example, the frame checks that JOB No. is filled in and is 5 digits; the document type for one project's drawings adds an extension validator that it is exactly that project's number, taken from a project variable. Add them in the expanded card. They read the frame's cells where the frame was found.
Limits
- A frame that is turned on the page is not found.
- Only the best match on the chosen page counts.
- A data frame can't be removed while a document type imports it.
Related pages
- Test files
- Auto-extract title block
- Failure reasons ("Data frame not found")
- Lesson 6: Data frames