org.apache.fop.render.rtf.rtflib.rtfdoc

## Class RtfAfter

- java.lang.Object
- - org.apache.fop.render.rtf.rtflib.rtfdoc.RtfElement
  - - org.apache.fop.render.rtf.rtflib.rtfdoc.RtfContainer
    - - org.apache.fop.render.rtf.rtflib.rtfdoc.RtfAfter

- All Implemented Interfaces:
    IRtfExternalGraphicContainer, IRtfParagraphContainer, IRtfTableContainer, IRtfTextrunContainer

      public class RtfAfter
      extends RtfContainer

  RtfContainer that encloses footers

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `static String` | `FOOTER` RtfBefore attributes
    `static String[]` | `FOOTER_ATTR` String array of footer attributes

    - ### Fields inherited from class org.apache.fop.render.rtf.rtflib.rtfdoc.RtfElement

      `attrib, parent, writer`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `closeAll()`
    `RtfAttributes` | `getAttributes()`
    `RtfTextrun` | `getTextrun()` Returns the current RtfTextrun object.
    `RtfExternalGraphic` | `newImage()` Creates a new image on external graphic base.
    `RtfParagraph` | `newParagraph()` Close current paragraph, if any, and start a new one with default attributes.
    `RtfParagraph` | `newParagraph(RtfAttributes attrs)` Close current paragraph, if any, and start a new one with specified attributes
    `RtfTable` | `newTable(ITableColumnsInfo tc)` close current table if any and start a new one
    `RtfTable` | `newTable(RtfAttributes attrs, ITableColumnsInfo tc)` close current table if any and start a new one
    `protected void` | `writeMyAttributes()` must be implemented to write the header or footer attributes
    `protected void` | `writeRtfPrefix()` Called before writeRtfContent()
    `protected void` | `writeRtfSuffix()` Called after writeRtfContent()

    - ### Methods inherited from class org.apache.fop.render.rtf.rtflib.rtfdoc.RtfContainer

      `addChild, findChildren, getChildCount, getChildren, isEmpty, okToWriteRtf, setChildren, setOptions, toString, writeRtfContent`

    - ### Methods inherited from class org.apache.fop.render.rtf.rtflib.rtfdoc.RtfElement

      `close, getParentOfClass, getRtfAttributes, newLine, writeAttributes, writeControlWord, writeControlWordNS, writeExceptionInRtf, writeGroupMark, writeOneAttribute, writeOneAttributeNS, writeRtf, writeStarControlWord, writeStarControlWordNS`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Field Detail

    - #### FOOTER

          public static final String FOOTER

      RtfBefore attributes
      See Also:
        Constant Field Values

    - #### FOOTER_ATTR

          public static final String[] FOOTER_ATTR

      String array of footer attributes

  - ### Method Detail

    - #### writeMyAttributes

          protected void writeMyAttributes()
                                    throws IOException

      must be implemented to write the header or footer attributes
      Throws:
        `IOException` - for I/O problems

    - #### newParagraph

          public RtfParagraph newParagraph()
                                    throws IOException

      Description copied from interface: `IRtfParagraphContainer`
      Close current paragraph, if any, and start a new one with default attributes.
      Specified by:
        `newParagraph` in interface `IRtfParagraphContainer`
      Returns:
        new paragraph object
      Throws:
        `IOException` - for I/O problems.

    - #### newParagraph

          public RtfParagraph newParagraph(RtfAttributes attrs)
                                    throws IOException

      Description copied from interface: `IRtfParagraphContainer`
      Close current paragraph, if any, and start a new one with specified attributes
      Specified by:
        `newParagraph` in interface `IRtfParagraphContainer`
      Parameters:
        `attrs` - attributes for new paragraph
      Returns:
        new paragraph object
      Throws:
        `IOException` - for I/O problems.

    - #### newImage

          public RtfExternalGraphic newImage()
                                      throws IOException

      Description copied from interface: `IRtfExternalGraphicContainer`
      Creates a new image on external graphic base.
      Specified by:
        `newImage` in interface `IRtfExternalGraphicContainer`
      Returns:
        RtfExternalGraphic for the new image
      Throws:
        `IOException` - On error

    - #### writeRtfPrefix

          protected void writeRtfPrefix()
                                 throws IOException

      Description copied from class: `RtfElement`
      Called before writeRtfContent()
      Overrides:
        `writeRtfPrefix` in class `RtfElement`
      Throws:
        `IOException` - for I/O problems

    - #### writeRtfSuffix

          protected void writeRtfSuffix()
                                 throws IOException

      Description copied from class: `RtfElement`
      Called after writeRtfContent()
      Overrides:
        `writeRtfSuffix` in class `RtfElement`
      Throws:
        `IOException` - for I/O problems

    - #### getAttributes

          public RtfAttributes getAttributes()

    - #### closeAll

          public void closeAll()
                        throws IOException

      Throws:
        `IOException`

    - #### newTable

          public RtfTable newTable(RtfAttributes attrs,
                                   ITableColumnsInfo tc)
                            throws IOException

      close current table if any and start a new one
      Specified by:
        `newTable` in interface `IRtfTableContainer`
      Parameters:
        `tc` - added by Boris Poudérous on july 2002 in order to process number-columns-spanned attribute
        `attrs` - for the Table attributes
      Returns:
        new table object
      Throws:
        `IOException` - for I/O problems

    - #### newTable

          public RtfTable newTable(ITableColumnsInfo tc)
                            throws IOException

      close current table if any and start a new one
      Specified by:
        `newTable` in interface `IRtfTableContainer`
      Parameters:
        `tc` - Table Columns Info
      Returns:
        new table object
      Throws:
        `IOException` - for I/O problems

    - #### getTextrun

          public RtfTextrun getTextrun()
                                throws IOException

      Description copied from interface: `IRtfTextrunContainer`
      Returns the current RtfTextrun object. Opens a new one if necessary.
      Specified by:
        `getTextrun` in interface `IRtfTextrunContainer`
      Returns:
        The RtfTextrun object
      Throws:
        `IOException` - Thrown when an IO-problem occurs

Copyright © 2025 Apache Software Foundation. All rights reserved.