@@ -360,21 +360,15 @@ public void setLayer(IPdfOCG layer) {
360
360
}
361
361
362
362
/**
363
- * Sets a {@link PdfAction} to this annotation which will be performed when the annotation is activated.
364
- * @param action {@link PdfAction} to set to this annotation.
365
- * @return this {@link PdfAnnotation} instance.
363
+ * @deprecated Supported only for {@link PdfLinkAnnotation}, {@link PdfScreenAnnotation}, {@link PdfWidgetAnnotation}, will be removed in 7.1
366
364
*/
367
365
@ Deprecated
368
366
public PdfAnnotation setAction (PdfAction action ) {
369
367
return put (PdfName .A , action .getPdfObject ());
370
368
}
371
369
372
370
/**
373
- * Sets an additional {@link PdfAction} to this annotation which will be performed in response to
374
- * the specific trigger event defined by {@code key}. See ISO-320001 12.6.3, "Trigger Events".
375
- * @param key a {@link PdfName} that denotes a type of the additional action to set.
376
- * @param action {@link PdfAction} to set as additional to this annotation.
377
- * @return this {@link PdfAnnotation} instance.
371
+ * @deprecated Supported only for {@link PdfScreenAnnotation}, {@link PdfWidgetAnnotation}, will be removed in 7.1
378
372
*/
379
373
@ Deprecated
380
374
public PdfAnnotation setAdditionalAction (PdfName key , PdfAction action ) {
@@ -889,9 +883,7 @@ public PdfAnnotation setStructParentIndex(int structParentIndex) {
889
883
}
890
884
891
885
/**
892
- * A flag specifying whether the annotation shall initially be displayed open.
893
- * This flag has affect to not all kinds of annotations.
894
- * @return true if annotation is initially open, false - if closed.
886
+ * @deprecated Supported only for {@link PdfTextAnnotation}, {@link PdfPopupAnnotation}, will be removed in 7.1
895
887
*/
896
888
@ Deprecated
897
889
public boolean getOpen () {
@@ -900,111 +892,67 @@ public boolean getOpen() {
900
892
}
901
893
902
894
/**
903
- * Sets a flag specifying whether the annotation shall initially be displayed open.
904
- * This flag has affect to not all kinds of annotations.
905
- * @param open true if annotation shall initially be open, false - if closed.
906
- * @return this {@link PdfAnnotation} instance.
895
+ * @deprecated Supported only for {@link PdfTextAnnotation}, {@link PdfPopupAnnotation}, will be removed in 7.1
907
896
*/
908
897
@ Deprecated
909
898
public PdfAnnotation setOpen (boolean open ) {
910
899
return put (PdfName .Open , PdfBoolean .valueOf (open ));
911
900
}
912
901
913
902
/**
914
- * An array of 8 × n numbers specifying the coordinates of n quadrilaterals in default user space.
915
- * Quadrilaterals are used to define:
916
- * <ul>
917
- * <li>regions inside annotation rectangle in which the link annotation should be activated;</li>
918
- * <li>a word or group of contiguous words in the text underlying the text markup annotation;</li>
919
- * <li>the content region that is intended to be removed for a redaction annotation;</li>
920
- * </ul>
921
- *
922
- * <p>
923
- * IMPORTANT NOTE: According to Table 179 in ISO 32000-1, the QuadPoints array lists the vertices in counterclockwise
924
- * order and the text orientation is defined by the first and second vertex. This basically means QuadPoints is
925
- * specified as lower-left, lower-right, top-right, top-left. HOWEVER, Adobe's interpretation
926
- * (tested at least with Acrobat 10, Acrobat 11, Reader 11) is top-left, top-right, lower-left, lower-right (Z-shaped order).
927
- * This means that if the QuadPoints array is specified according to the standard, the rendering is not as expected.
928
- * Other viewers seem to follow Adobe's interpretation. Hence we recommend to use and expect QuadPoints array in Z-order,
929
- * just as Acrobat and probably most other viewers expect.
930
- * @return an {@link PdfArray} of 8 × n numbers specifying the coordinates of n quadrilaterals.
903
+ * @deprecated Supported only for {@link PdfLinkAnnotation}, {@link PdfTextMarkupAnnotation}, {@link PdfRedactAnnotation} will be removed in 7.1
931
904
*/
932
905
@ Deprecated
933
906
public PdfArray getQuadPoints () {
934
907
return getPdfObject ().getAsArray (PdfName .QuadPoints );
935
908
}
936
909
937
910
/**
938
- * Sets n quadrilaterals in default user space by passing an {@link PdfArray} of 8 × n numbers. For more info of what
939
- * quadrilaterals define see {@link PdfAnnotation#getQuadPoints()}.
940
- *
941
- * <p>
942
- * IMPORTANT NOTE: According to Table 179 in ISO 32000-1, the QuadPoints array lists the vertices in counterclockwise
943
- * order and the text orientation is defined by the first and second vertex. This basically means QuadPoints is
944
- * specified as lower-left, lower-right, top-right, top-left. HOWEVER, Adobe's interpretation
945
- * (tested at least with Acrobat 10, Acrobat 11, Reader 11) is top-left, top-right, lower-left, lower-right (Z-shaped order).
946
- * This means that if the QuadPoints array is specified according to the standard, the rendering is not as expected.
947
- * Other viewers seem to follow Adobe's interpretation. Hence we recommend to use and expect QuadPoints array in Z-order,
948
- * just as Acrobat and probably most other viewers expect.
949
- * @param quadPoints an {@link PdfArray} of 8 × n numbers specifying the coordinates of n quadrilaterals.
950
- * @return this {@link PdfAnnotation} instance.
911
+ * @deprecated Supported only for {@link PdfLinkAnnotation}, {@link PdfTextMarkupAnnotation}, {@link PdfRedactAnnotation} will be removed in 7.1
951
912
*/
952
913
@ Deprecated
953
914
public PdfAnnotation setQuadPoints (PdfArray quadPoints ) {
954
915
return put (PdfName .QuadPoints , quadPoints );
955
916
}
956
917
957
918
/**
958
- * Sets border style dictionary that has more settings than the array specified for the Border entry ({@link PdfAnnotation#getBorder()}).
959
- * See ISO-320001, Table 166 and {@link PdfAnnotation#getBorderStyle()} for more info.
960
- * @param borderStyle a border style dictionary specifying the line width and dash pattern that shall be used
961
- * in drawing the annotation’s border.
962
- * @return this {@link PdfAnnotation} instance.
919
+ * @deprecated Supported only for:
920
+ * {@link PdfLinkAnnotation}, {@link PdfFreeTextAnnotation}, {@link PdfLineAnnotation}, {@link PdfSquareAnnotation},
921
+ * {@link PdfCircleAnnotation}, {@link PdfPolyGeomAnnotation}, {@link PdfInkAnnotation}, {@link PdfWidgetAnnotation}
922
+ * will be removed in 7.1
963
923
*/
964
924
@ Deprecated
965
925
public PdfAnnotation setBorderStyle (PdfDictionary borderStyle ) {
966
926
return put (PdfName .BS , borderStyle );
967
927
}
968
928
969
929
/**
970
- * Setter for the annotation's preset border style. Possible values are
971
- * <ul>
972
- * <li>{@link PdfAnnotation#STYLE_SOLID} - A solid rectangle surrounding the annotation.</li>
973
- * <li>{@link PdfAnnotation#STYLE_DASHED} - A dashed rectangle surrounding the annotation.</li>
974
- * <li>{@link PdfAnnotation#STYLE_BEVELED} - A simulated embossed rectangle that appears to be raised above the surface of the page.</li>
975
- * <li>{@link PdfAnnotation#STYLE_INSET} - A simulated engraved rectangle that appears to be recessed below the surface of the page.</li>
976
- * <li>{@link PdfAnnotation#STYLE_UNDERLINE} - A single line along the bottom of the annotation rectangle.</li>
977
- * </ul>
978
- * See also ISO-320001, Table 166.
979
- * @param style The new value for the annotation's border style.
980
- * @return The annotation which this method was called on.
981
- * @see PdfAnnotation#getBorderStyle()
930
+ * @deprecated Supported only for:
931
+ * {@link PdfLinkAnnotation}, {@link PdfFreeTextAnnotation}, {@link PdfLineAnnotation}, {@link PdfSquareAnnotation},
932
+ * {@link PdfCircleAnnotation}, {@link PdfPolyGeomAnnotation}, {@link PdfInkAnnotation}, {@link PdfWidgetAnnotation}
933
+ * will be removed in 7.1
982
934
*/
983
935
@ Deprecated
984
936
public PdfAnnotation setBorderStyle (PdfName style ) {
985
937
return setBorderStyle (BorderStyleUtil .setStyle (getBorderStyle (), style ));
986
938
}
987
939
988
940
/**
989
- * Setter for the annotation's preset dashed border style. This property has affect only if {@link PdfAnnotation#STYLE_DASHED}
990
- * style was used for the annotation border style (see {@link PdfAnnotation#setBorderStyle(PdfName)}.
991
- * See ISO-320001 8.4.3.6, “Line Dash Pattern” for the format in which dash pattern shall be specified.
992
- * @param dashPattern a dash array defining a pattern of dashes and gaps that
993
- * shall be used in drawing a dashed border.
994
- * @return this {@link PdfAnnotation} instance.
941
+ * @deprecated Supported only for:
942
+ * {@link PdfLinkAnnotation}, {@link PdfFreeTextAnnotation}, {@link PdfLineAnnotation}, {@link PdfSquareAnnotation},
943
+ * {@link PdfCircleAnnotation}, {@link PdfPolyGeomAnnotation}, {@link PdfInkAnnotation}, {@link PdfWidgetAnnotation}
944
+ * will be removed in 7.1
995
945
*/
996
946
@ Deprecated
997
947
public PdfAnnotation setDashPattern (PdfArray dashPattern ) {
998
948
return setBorderStyle (BorderStyleUtil .setDashPattern (getBorderStyle (), dashPattern ));
999
949
}
1000
950
1001
951
/**
1002
- * The dictionaries for some annotation types (such as free text and polygon annotations) can include the BS entry.
1003
- * That entry specifies a border style dictionary that has more settings than the array specified for the Border
1004
- * entry (see {@link PdfAnnotation#getBorder()}). If an annotation dictionary includes the BS entry, then the Border
1005
- * entry is ignored. If annotation includes AP (see {@link PdfAnnotation#getAppearanceDictionary()}) it takes
1006
- * precedence over the BS entry. For more info on BS entry see ISO-320001, Table 166.
1007
- * @return {@link PdfDictionary} which is a border style dictionary or null if it is not specified.
952
+ * @deprecated Supported only for:
953
+ * {@link PdfLinkAnnotation}, {@link PdfFreeTextAnnotation}, {@link PdfLineAnnotation}, {@link PdfSquareAnnotation},
954
+ * {@link PdfCircleAnnotation}, {@link PdfPolyGeomAnnotation}, {@link PdfInkAnnotation}, {@link PdfWidgetAnnotation}
955
+ * will be removed in 7.1
1008
956
*/
1009
957
@ Deprecated
1010
958
public PdfDictionary getBorderStyle () {
@@ -1031,43 +979,31 @@ public PdfString getTitle() {
1031
979
}
1032
980
1033
981
/**
1034
- * Sets an appearance characteristics dictionary containing additional information for constructing the
1035
- * annotation’s appearance stream. See ISO-320001, Table 189.
1036
- * This property affects {@link PdfWidgetAnnotation} and {@link PdfScreenAnnotation}.
1037
- * @param characteristics the {@link PdfDictionary} with additional information for appearance stream.
1038
- * @return this {@link PdfAnnotation} instance.
982
+ * @deprecated Supported only for {@link PdfScreenAnnotation}, {@link PdfWidgetAnnotation}, will be removed in 7.1
1039
983
*/
1040
984
@ Deprecated
1041
985
public PdfAnnotation setAppearanceCharacteristics (PdfDictionary characteristics ) {
1042
986
return put (PdfName .MK , characteristics );
1043
987
}
1044
988
1045
989
/**
1046
- * An appearance characteristics dictionary containing additional information for constructing the
1047
- * annotation’s appearance stream. See ISO-320001, Table 189.
1048
- * This property affects {@link PdfWidgetAnnotation} and {@link PdfScreenAnnotation}.
1049
- * @return an appearance characteristics dictionary or null if it isn't specified.
990
+ * @deprecated Supported only for {@link PdfScreenAnnotation}, {@link PdfWidgetAnnotation}, will be removed in 7.1
1050
991
*/
1051
992
@ Deprecated
1052
993
public PdfDictionary getAppearanceCharacteristics () {
1053
994
return getPdfObject ().getAsDictionary (PdfName .MK );
1054
995
}
1055
996
1056
997
/**
1057
- * An {@link PdfAction} to perform, such as launching an application, playing a sound,
1058
- * changing an annotation’s appearance state etc, when the annotation is activated.
1059
- * @return {@link PdfDictionary} which defines the characteristics and behaviour of an action.
998
+ * @deprecated Supported only for {@link PdfLinkAnnotation}, {@link PdfScreenAnnotation}, {@link PdfWidgetAnnotation}, will be removed in 7.1
1060
999
*/
1061
1000
@ Deprecated
1062
1001
public PdfDictionary getAction () {
1063
1002
return getPdfObject ().getAsDictionary (PdfName .A );
1064
1003
}
1065
1004
1066
1005
/**
1067
- * An additional actions dictionary that extends the set of events that can trigger the execution of an action.
1068
- * See ISO-320001 12.6.3 Trigger Events.
1069
- * @return an additional actions {@link PdfDictionary}.
1070
- * @see PdfAnnotation#getAction()
1006
+ * @deprecated Supported only for {@link PdfScreenAnnotation}, {@link PdfWidgetAnnotation}, will be removed in 7.1
1071
1007
*/
1072
1008
@ Deprecated
1073
1009
public PdfDictionary getAdditionalAction () {
0 commit comments