public class RtfPage extends RtfContainer
Specifies rtf control words. Is the container for page attributes. Overrides okToWriteRtf.
This work was authored by Christopher Scott (scottc@westinghouse.com).
Modifier and Type | Field and Description |
---|---|
static String |
FOOTERY
constant for footer position
|
static String |
HEADERY
constant for header position
|
static String |
ITAP
constant for itap level
|
static String |
LANDSCAPE
constant for landscape format
|
static String |
MARGIN_BOTTOM
constant for bottom margin
|
static String |
MARGIN_LEFT
constant for left margin
|
static String |
MARGIN_RIGHT
constant for right margin
|
static String |
MARGIN_TOP
constant for top margin
|
static String[] |
PAGE_ATTR
String array of RtfPage attributes
|
static String |
PAGE_HEIGHT
constant for page height
|
static String |
PAGE_WIDTH
constant for page width
|
parent, writer
Modifier and Type | Method and Description |
---|---|
RtfAttributes |
getAttributes()
RtfPage - attributes accessor
|
protected boolean |
okToWriteRtf()
RtfPage - is overwritten here because page attributes have no content
only attributes.
|
protected void |
writeRtfContent()
RtfPage writes the attributes the attributes contained in the string
PAGE_ATTR, if not null
|
addChild, findChildren, getChildCount, getChildren, isEmpty, setChildren, setOptions, toString
close, getParentOfClass, getRtfAttributes, newLine, writeAttributes, writeControlWord, writeControlWordNS, writeExceptionInRtf, writeGroupMark, writeOneAttribute, writeOneAttributeNS, writeRtf, writeRtfPrefix, writeRtfSuffix, writeStarControlWord, writeStarControlWordNS
public static final String PAGE_WIDTH
public static final String PAGE_HEIGHT
public static final String LANDSCAPE
public static final String MARGIN_TOP
public static final String MARGIN_BOTTOM
public static final String MARGIN_LEFT
public static final String MARGIN_RIGHT
public static final String HEADERY
public static final String FOOTERY
public static final String ITAP
public static final String[] PAGE_ATTR
protected void writeRtfContent() throws IOException
writeRtfContent
in class RtfContainer
IOException
- for I/O problemspublic RtfAttributes getAttributes()
protected boolean okToWriteRtf()
okToWriteRtf
in class RtfContainer
Copyright © 2025 Apache Software Foundation. All rights reserved.