Skip to main content

Shape Selection Wizard

Screenshot: Shape Selection Wizard window

What it does

The Shape Selection Wizard helps you build shape selection expressions without having to write them manually.

The wizard is available only in Select Shapes and Select Shapes by Reference nodes.

Based on the currently selected shapes in the Document View, the wizard displays their properties and allows you to create filter expressions by selecting properties, operators, and optional tolerance values. The generated expression can then be inserted directly into the Filter Expression of the selected node.

Use it for

  • Quickly creating shape selection expressions. 
  • Selecting shapes based on their properties. 
  • Avoiding manual expression syntax. 
  • Exploring available shape properties and operators. 
  • Creating more robust selections by applying tolerance values.

How to use it

  1. Open a PDF document.
  2. Select one or more shapes in the Document view.
  3. Add a Select Shapes node or Select Shapes by Reference node to your template. Ensure the node is selected in the template.
  4. In the Node Properties task pane, click the Shape Selection Wizard button Screenshot: Shape Selection Wizard button, identified by a magic wand icon below the Filter Expression field.

    Screenshot:The Node Properties task pane for a Select Shapes node. The Shape Selection Wizard button, identified by a magic wand icon and located below the Filter Expression field, is highlighted with a red border.

Note: Shape selection required

The Shape Selection Wizard opens only when one or more shapes are selected in the Document View.

Wizard layout

The Shape Selection Wizard organizes available properties into the following expandable categories:

  • Shape
  • Position
  • Size
  • Text
  • Color
  • Path

The properties available within these categories are largely the same as those shown in the Shape Properties task pane. For detailed information about individual properties, refer to the article Task pane "Shape Properties".

For each property, the wizard provides the following controls:

Working with shape property values

The wizard automatically populates the shape property values based on the currently selected shape or shapes.

Single shape selection

When a single shape is selected, the wizard displays the exact property values of that shape.

Multiple shape selection

When multiple shapes are selected, the displayed values depend on the selected shapes:

  • If all selected shapes have the same value for a property, that value is shown.
  • If the selected shapes have different values, the wizard displays a range or sequence of values.

Available shape property values and operators

The shape property values shown in the wizard depend on the types of shapes selected. For example:

  • Text-related values are available for text shapes.
  • Path-related values are available for path shapes.
  • Image-specific values are available for image shapes.

The available operators depend on the property's data type and whether the property contains a single value, a range, or a sequence.

Using tolerance modes and values

For numeric integer properties, you can define a tolerance. Tolerances help compensate for small variations that commonly occur between PDF documents, making shape matching more robust.

Tip: PDF coordinates and measurements are rarely exact. They often contain many decimal places, while the values displayed in the user interface are rounded. In addition, the same shape can have slightly different coordinates across different PDF documents. To make shape selections more reliable, it is recommended to use a small tolerance value whenever possible.

The Tolerance Mode drop-down provides different ways to apply the specified Tolerance Value. The default mode depends on the selected operator and represents the recommended setting for that operator.

The available tolerance modes vary depending on the property type and the selected shape values.

Single integer values

Ranges and rectangles

Generated expression

The generated expression is displayed in the preview field at the bottom of the wizard.

As you select properties, operators, and tolerance settings, the expression is updated automatically.

Only selected properties are included in the generated expression. Review the generated expression before clicking Apply.

Inserting the expression

When you click Apply, the generated expression is inserted into the Filter Expression field of the selected node.

Insertion behavior

  • If the cursor is positioned inside the Filter Expression field, the expression is inserted at the cursor position.
  • If text is selected in the Filter Expression field, the selected text is replaced.
  • If the Filter Expression field does not have focus, the existing expression is replaced.

This allows you to use the wizard both for creating new expressions and for extending existing ones.