Skip to content

Commit 4be1cdb

Browse files
yulian-gaponenkoitext-teamcity
authored andcommitted
Review remnant deprecated fields, methods and classes
Autoported commit. Original commit hash: [a8610f86b]
1 parent 54d2c6b commit 4be1cdb

File tree

4 files changed

+2
-80
lines changed

4 files changed

+2
-80
lines changed

itext/itext.kernel/itext/kernel/pdf/IsoKey.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,8 @@ namespace iText.Kernel.Pdf {
4545
/// <summary>Type of object to conform.</summary>
4646
public enum IsoKey {
4747
CANVAS_STACK,
48-
DRAWMODE_FILL,
49-
DRAWMODE_FILL_STROKE,
50-
DRAWMODE_STROKE,
5148
FILL_COLOR,
5249
EXTENDED_GRAPHICS_STATE,
53-
GRAPHIC_STATE_ONLY,
5450
INLINE_IMAGE,
5551
PAGE,
5652
PDF_OBJECT,

itext/itext.kernel/itext/kernel/pdf/annot/PdfPolyGeomAnnotation.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ source product.
4141
For more information, please contact iText Software Corp. at this
4242
4343
*/
44-
using System;
4544
using Common.Logging;
4645
using iText.Kernel.Colors;
4746
using iText.Kernel.Geom;
@@ -54,9 +53,7 @@ public class PdfPolyGeomAnnotation : PdfMarkupAnnotation {
5453

5554
public static readonly PdfName PolyLine = PdfName.PolyLine;
5655

57-
[System.ObsoleteAttribute(@"Use CreatePolygon(iText.Kernel.Geom.Rectangle, float[]) or CreatePolyLine(iText.Kernel.Geom.Rectangle, float[]) instead. Will be made private in 7.1."
58-
)]
59-
public PdfPolyGeomAnnotation(Rectangle rect, PdfName subtype, float[] vertices)
56+
private PdfPolyGeomAnnotation(Rectangle rect, PdfName subtype, float[] vertices)
6057
: base(rect) {
6158
SetSubtype(subtype);
6259
SetVertices(vertices);

itext/itext.pdfa/itext/pdfa/PdfADocument.cs

Lines changed: 0 additions & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -133,49 +133,6 @@ public override void CheckIsoConformance(Object obj, IsoKey key) {
133133
CheckIsoConformance(obj, key, null);
134134
}
135135

136-
[System.ObsoleteAttribute(@"Will be removed in 7.1.0.")]
137-
public override void CheckShowTextIsoConformance(CanvasGraphicsState gState, PdfResources resources) {
138-
bool fill = false;
139-
bool stroke = false;
140-
switch (gState.GetTextRenderingMode()) {
141-
case PdfCanvasConstants.TextRenderingMode.STROKE:
142-
case PdfCanvasConstants.TextRenderingMode.STROKE_CLIP: {
143-
stroke = true;
144-
break;
145-
}
146-
147-
case PdfCanvasConstants.TextRenderingMode.FILL:
148-
case PdfCanvasConstants.TextRenderingMode.FILL_CLIP: {
149-
fill = true;
150-
break;
151-
}
152-
153-
case PdfCanvasConstants.TextRenderingMode.FILL_STROKE:
154-
case PdfCanvasConstants.TextRenderingMode.FILL_STROKE_CLIP: {
155-
stroke = true;
156-
fill = true;
157-
break;
158-
}
159-
}
160-
IsoKey drawMode = IsoKey.DRAWMODE_FILL;
161-
if (fill && stroke) {
162-
drawMode = IsoKey.DRAWMODE_FILL_STROKE;
163-
}
164-
else {
165-
if (fill) {
166-
drawMode = IsoKey.DRAWMODE_FILL;
167-
}
168-
else {
169-
if (stroke) {
170-
drawMode = IsoKey.DRAWMODE_STROKE;
171-
}
172-
}
173-
}
174-
if (fill || stroke) {
175-
CheckIsoConformance(gState, drawMode, resources);
176-
}
177-
}
178-
179136
public override void CheckIsoConformance(Object obj, IsoKey key, PdfResources resources) {
180137
CanvasGraphicsState gState;
181138
PdfDictionary currentColorSpaces = null;
@@ -209,19 +166,6 @@ public override void CheckIsoConformance(Object obj, IsoKey key, PdfResources re
209166
break;
210167
}
211168

212-
case IsoKey.GRAPHIC_STATE_ONLY: {
213-
gState = (CanvasGraphicsState)obj;
214-
checker.CheckExtGState(gState);
215-
break;
216-
}
217-
218-
case IsoKey.DRAWMODE_FILL: {
219-
gState = (CanvasGraphicsState)obj;
220-
checker.CheckColor(gState.GetFillColor(), currentColorSpaces, true);
221-
checker.CheckExtGState(gState);
222-
break;
223-
}
224-
225169
case IsoKey.FILL_COLOR: {
226170
gState = (CanvasGraphicsState)obj;
227171
checker.CheckColor(gState.GetFillColor(), currentColorSpaces, true);
@@ -233,27 +177,12 @@ public override void CheckIsoConformance(Object obj, IsoKey key, PdfResources re
233177
break;
234178
}
235179

236-
case IsoKey.DRAWMODE_STROKE: {
237-
gState = (CanvasGraphicsState)obj;
238-
checker.CheckColor(gState.GetStrokeColor(), currentColorSpaces, false);
239-
checker.CheckExtGState(gState);
240-
break;
241-
}
242-
243180
case IsoKey.STROKE_COLOR: {
244181
gState = (CanvasGraphicsState)obj;
245182
checker.CheckColor(gState.GetStrokeColor(), currentColorSpaces, false);
246183
break;
247184
}
248185

249-
case IsoKey.DRAWMODE_FILL_STROKE: {
250-
gState = (CanvasGraphicsState)obj;
251-
checker.CheckColor(gState.GetFillColor(), currentColorSpaces, true);
252-
checker.CheckColor(gState.GetStrokeColor(), currentColorSpaces, false);
253-
checker.CheckExtGState(gState);
254-
break;
255-
}
256-
257186
case IsoKey.TAG_STRUCTURE_ELEMENT: {
258187
checker.CheckTagStructureElement((PdfObject)obj);
259188
break;

port-hash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
613d6ad494ec8adfdb81742b68ba136020651023
1+
a8610f86bd6c6da0929370590cab987d77be219f

0 commit comments

Comments
 (0)