private void FixOverflowRenderer(iText.Layout.Renderer.ParagraphRenderer overflowRenderer)
        {
            // Reset first line indent in case of overflow.
            float firstLineIndent = (float)overflowRenderer.GetPropertyAsFloat(Property.FIRST_LINE_INDENT);

            if (firstLineIndent != 0)
            {
                overflowRenderer.SetProperty(Property.FIRST_LINE_INDENT, 0f);
            }
        }
Exemplo n.º 2
0
        protected internal virtual iText.Layout.Renderer.ParagraphRenderer CreateOverflowRenderer()
        {
            iText.Layout.Renderer.ParagraphRenderer overflowRenderer = (iText.Layout.Renderer.ParagraphRenderer)GetNextRenderer
                                                                           ();
            // Reset first line indent in case of overflow.
            float firstLineIndent = (float)this.GetPropertyAsFloat(Property.FIRST_LINE_INDENT);

            if (firstLineIndent != 0)
            {
                overflowRenderer.SetProperty(Property.FIRST_LINE_INDENT, 0);
            }
            return(overflowRenderer);
        }