@@ -154,45 +154,6 @@ public void checkIsoConformance(Object obj, IsoKey key) {
154
154
checkIsoConformance (obj , key , null );
155
155
}
156
156
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
-
196
157
@ Override
197
158
public void checkIsoConformance (Object obj , IsoKey key , PdfResources resources ) {
198
159
CanvasGraphicsState gState ;
@@ -217,37 +178,17 @@ public void checkIsoConformance(Object obj, IsoKey key, PdfResources resources)
217
178
gState = (CanvasGraphicsState ) obj ;
218
179
checker .checkExtGState (gState );
219
180
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 ;
229
181
case FILL_COLOR :
230
182
gState = (CanvasGraphicsState ) obj ;
231
183
checker .checkColor (gState .getFillColor (), currentColorSpaces , true );
232
184
break ;
233
185
case PAGE :
234
186
checker .checkSinglePage ((PdfPage ) obj );
235
187
break ;
236
- case DRAWMODE_STROKE :
237
- gState = (CanvasGraphicsState ) obj ;
238
- checker .checkColor (gState .getStrokeColor (), currentColorSpaces , false );
239
- checker .checkExtGState (gState );
240
- break ;
241
188
case STROKE_COLOR :
242
189
gState = (CanvasGraphicsState ) obj ;
243
190
checker .checkColor (gState .getStrokeColor (), currentColorSpaces , false );
244
191
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 ;
251
192
case TAG_STRUCTURE_ELEMENT :
252
193
checker .checkTagStructureElement ((PdfObject ) obj );
253
194
break ;
0 commit comments