PDF4Java Reference Documentation
com.o2sol.pdf4java.annotations Package / PDFAnnotation Class / setLocked Method
If true, do not allow the annotation to be deleted or its properties (including position and size) to be modified by the user. However, this flag does not restrict changes to the annotation’s contents, such as the value of a form field.
Collapse All Expand All
In This Topic

setLocked Method
In This Topic
Sets a value indicating whether the annotation should be modified.
Syntax

    public void setLocked(
       boolean value
    )

#### Parameters

value
  If true, do not allow the annotation to be deleted or its properties (including position and size) to be modified by the user. However, this flag does not restrict changes to the annotation’s contents, such as the value of a form field.

See Also

#### Reference

PDFAnnotation Class
PDFAnnotation Members

© 2025 O2 Solutions All Rights Reserved.

Send comments on this topic.