Skip to main content

TrapNetAnnotation Class

Defines a PDF trap network annotation.

Declaration

public class TrapNetAnnotation extends BaseAnnotation

Remarks

A trap network annotation identifies a trap network in a PDF document. Trap networks define trapping information used during commercial printing to compensate for slight misalignment between printing plates.

The following code snippet marks an area that contains trapping information in a document prepared for commercial printing:

void createTrapNetworkAnnotation(Page page) {
    TrapNetAnnotation annotation =
            new TrapNetAnnotation(
                    new RectangleF(15, 15, 25, 25));

    page.getAnnotations().add(annotation);
}

Refer to the following help topic for additional information: Trap Network Annotations.

Inheritance

Object
JavaObject
BaseAnnotation
TrapNetAnnotation

TrapNetAnnotation(RectangleF bounds)

Initializes a new instance of the TrapNetAnnotation class with specified bounds.

Declaration

public TrapNetAnnotation(RectangleF bounds)

Parameters

Name Type Description
bounds RectangleF

The trap network annotation bounds.