Skip to content

Commit a8610f8

Browse files
Review remnant deprecated fields, methods and classes
1 parent 613d6ad commit a8610f8

File tree

3 files changed

+1
-85
lines changed

3 files changed

+1
-85
lines changed

kernel/src/main/java/com/itextpdf/kernel/pdf/IsoKey.java

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -48,28 +48,8 @@ This file is part of the iText (R) project.
4848
*/
4949
public enum IsoKey {
5050
CANVAS_STACK,
51-
/**
52-
* @deprecated Will be removed in 7.1.0.
53-
*/
54-
@Deprecated
55-
DRAWMODE_FILL,
56-
/**
57-
* @deprecated Will be removed in 7.1.0.
58-
*/
59-
@Deprecated
60-
DRAWMODE_FILL_STROKE,
61-
/**
62-
* @deprecated Will be removed in 7.1.0.
63-
*/
64-
@Deprecated
65-
DRAWMODE_STROKE,
6651
FILL_COLOR,
6752
EXTENDED_GRAPHICS_STATE,
68-
/**
69-
* @deprecated Will be removed in 7.1.0.
70-
*/
71-
@Deprecated
72-
GRAPHIC_STATE_ONLY,
7353
INLINE_IMAGE,
7454
PAGE,
7555
PDF_OBJECT,

kernel/src/main/java/com/itextpdf/kernel/pdf/annot/PdfPolyGeomAnnotation.java

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,7 @@ public class PdfPolyGeomAnnotation extends PdfMarkupAnnotation {
6565
public static final PdfName Polygon = PdfName.Polygon;
6666
public static final PdfName PolyLine = PdfName.PolyLine;
6767

68-
/**
69-
* @deprecated Use {@link #createPolygon(Rectangle, float[])} or {@link #createPolyLine(Rectangle, float[])} instead.
70-
* Will be made private in 7.1.
71-
*/
72-
@Deprecated
73-
public PdfPolyGeomAnnotation(Rectangle rect, PdfName subtype, float[] vertices) {
68+
private PdfPolyGeomAnnotation(Rectangle rect, PdfName subtype, float[] vertices) {
7469
super(rect);
7570
setSubtype(subtype);
7671
setVertices(vertices);

pdfa/src/main/java/com/itextpdf/pdfa/PdfADocument.java

Lines changed: 0 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -154,45 +154,6 @@ public void checkIsoConformance(Object obj, IsoKey key) {
154154
checkIsoConformance(obj, key, null);
155155
}
156156

157-
/**
158-
* @deprecated Will be removed in 7.1.0.
159-
*/
160-
@Override
161-
@Deprecated
162-
public void checkShowTextIsoConformance(CanvasGraphicsState gState, PdfResources resources) {
163-
boolean fill = false;
164-
boolean stroke = false;
165-
166-
switch (gState.getTextRenderingMode()) {
167-
case PdfCanvasConstants.TextRenderingMode.STROKE:
168-
case PdfCanvasConstants.TextRenderingMode.STROKE_CLIP:
169-
stroke = true;
170-
break;
171-
case PdfCanvasConstants.TextRenderingMode.FILL:
172-
case PdfCanvasConstants.TextRenderingMode.FILL_CLIP:
173-
fill = true;
174-
break;
175-
case PdfCanvasConstants.TextRenderingMode.FILL_STROKE:
176-
case PdfCanvasConstants.TextRenderingMode.FILL_STROKE_CLIP:
177-
stroke = true;
178-
fill = true;
179-
break;
180-
}
181-
182-
IsoKey drawMode = IsoKey.DRAWMODE_FILL;
183-
if (fill && stroke) {
184-
drawMode = IsoKey.DRAWMODE_FILL_STROKE;
185-
} else if (fill) {
186-
drawMode = IsoKey.DRAWMODE_FILL;
187-
} else if (stroke) {
188-
drawMode = IsoKey.DRAWMODE_STROKE;
189-
}
190-
191-
if (fill || stroke) {
192-
checkIsoConformance(gState, drawMode, resources);
193-
}
194-
}
195-
196157
@Override
197158
public void checkIsoConformance(Object obj, IsoKey key, PdfResources resources) {
198159
CanvasGraphicsState gState;
@@ -217,37 +178,17 @@ public void checkIsoConformance(Object obj, IsoKey key, PdfResources resources)
217178
gState = (CanvasGraphicsState) obj;
218179
checker.checkExtGState(gState);
219180
break;
220-
case GRAPHIC_STATE_ONLY:
221-
gState = (CanvasGraphicsState) obj;
222-
checker.checkExtGState(gState);
223-
break;
224-
case DRAWMODE_FILL:
225-
gState = (CanvasGraphicsState) obj;
226-
checker.checkColor(gState.getFillColor(), currentColorSpaces, true);
227-
checker.checkExtGState(gState);
228-
break;
229181
case FILL_COLOR:
230182
gState = (CanvasGraphicsState) obj;
231183
checker.checkColor(gState.getFillColor(), currentColorSpaces, true);
232184
break;
233185
case PAGE:
234186
checker.checkSinglePage((PdfPage) obj);
235187
break;
236-
case DRAWMODE_STROKE:
237-
gState = (CanvasGraphicsState) obj;
238-
checker.checkColor(gState.getStrokeColor(), currentColorSpaces, false);
239-
checker.checkExtGState(gState);
240-
break;
241188
case STROKE_COLOR:
242189
gState = (CanvasGraphicsState) obj;
243190
checker.checkColor(gState.getStrokeColor(), currentColorSpaces, false);
244191
break;
245-
case DRAWMODE_FILL_STROKE:
246-
gState = (CanvasGraphicsState) obj;
247-
checker.checkColor(gState.getFillColor(), currentColorSpaces, true);
248-
checker.checkColor(gState.getStrokeColor(), currentColorSpaces, false);
249-
checker.checkExtGState(gState);
250-
break;
251192
case TAG_STRUCTURE_ELEMENT:
252193
checker.checkTagStructureElement((PdfObject) obj);
253194
break;

0 commit comments

Comments
 (0)