@@ -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 ;
0 commit comments