private static void ApplyCommonLayoutAttributes(AbstractRenderer renderer, PdfDictionary attributes)
        {
            Background background = renderer.GetProperty <Background>(Property.BACKGROUND);

            if (background != null && background.GetColor() is DeviceRgb)
            {
                attributes.Put(PdfName.BackgroundColor, new PdfArray(background.GetColor().GetColorValue()));
            }
            //TODO NOTE: applying border attributes for cells is temporarily turned off on purpose. Remove this 'if' in future.
            // The reason is that currently, we can't distinguish if all cells have same border style or not.
            // Therefore for every cell in every table we have to write the same border attributes, which creates lots of clutter.
            if (!(renderer.GetModelElement() is Cell))
            {
                ApplyBorderAttributes(renderer, attributes);
            }
            ApplyPaddingAttribute(renderer, attributes);
            TransparentColor transparentColor = renderer.GetPropertyAsTransparentColor(Property.FONT_COLOR);

            if (transparentColor != null && transparentColor.GetColor() is DeviceRgb)
            {
                attributes.Put(PdfName.Color, new PdfArray(transparentColor.GetColor().GetColorValue()));
            }
        }