@@ -890,7 +890,6 @@ public LayoutResult layout(LayoutContext layoutContext) {
890
890
*/
891
891
@ Override
892
892
public void draw (DrawContext drawContext ) {
893
- applyDestinationsAndAnnotation (drawContext );
894
893
PdfDocument document = drawContext .getDocument ();
895
894
boolean isTagged = drawContext .isTaggingEnabled () && getModelElement () instanceof IAccessibleElement ;
896
895
boolean ignoreTag = false ;
@@ -915,47 +914,16 @@ public void draw(DrawContext drawContext) {
915
914
applyGeneratedAccessibleAttributes (tagPointer , layoutAttributes );
916
915
}
917
916
918
- boolean relativePosition = isRelativePosition ();
919
- if (relativePosition ) {
920
- applyRelativePositioningTranslation (false );
921
- }
922
-
923
- beginElementOpacityApplying (drawContext );
924
- drawBackground (drawContext );
925
- drawBorder (drawContext );
926
- drawChildren (drawContext );
927
- drawPositionedChildren (drawContext );
928
- endElementOpacityApplying (drawContext );
929
-
930
- if (relativePosition ) {
931
- applyRelativePositioningTranslation (true );
932
- }
917
+ super .draw (drawContext );
933
918
934
919
tagPointer .moveToParent ();
935
920
936
921
boolean toRemoveConnectionsWithTag = isLastRendererForModelElement && ((Table ) getModelElement ()).isComplete ();
937
922
if (toRemoveConnectionsWithTag ) {
938
923
tagPointer .removeElementConnectionToTag (accessibleElement );
939
924
}
940
- flushed = true ;
941
925
} else {
942
- boolean relativePosition = isRelativePosition ();
943
- if (relativePosition ) {
944
- applyRelativePositioningTranslation (false );
945
- }
946
-
947
- beginElementOpacityApplying (drawContext );
948
- drawBackground (drawContext );
949
- drawBorder (drawContext );
950
- drawChildren (drawContext );
951
- drawPositionedChildren (drawContext );
952
- endElementOpacityApplying (drawContext );
953
-
954
- if (relativePosition ) {
955
- applyRelativePositioningTranslation (true );
956
- }
957
-
958
- flushed = true ;
926
+ super .draw (drawContext );
959
927
}
960
928
}
961
929
0 commit comments