HiraokaHyperTools.iTextSharp-LGPL
0.2.5
|
Classes | |
class | ColumnDef |
Public Member Functions | |
MultiColumnText () | |
MultiColumnText (float height) | |
MultiColumnText (float top, float height) | |
bool | IsOverflow () |
void | UseColumnParams (ColumnText sourceColumn) |
void | AddColumn (float[] left, float[] right) |
void | AddSimpleColumn (float left, float right) |
void | AddRegularColumns (float left, float right, float gutterWidth, int numColumns) |
void | AddText (Phrase phrase) |
void | AddText (Chunk chunk) |
void | AddElement (IElement element) |
float | Write (PdfContentByte canvas, PdfDocument document, float documentY) |
bool | Process (IElementListener listener) |
bool | IsContent () |
bool | IsNestable () |
void | NextColumn () |
void | ResetCurrentColumn () |
bool | ShiftCurrentColumn () |
void | SetColumnsRightToLeft (bool direction) |
override string | ToString () |
Gets the content of the text element. More... | |
Static Public Attributes | |
const float | AUTOMATIC = -1f |
Properties | |
int | Type [get] |
ArrayList | Chunks [get] |
int | CurrentColumn [get] |
float | SpaceCharRatio [set] |
int | RunDirection [set] |
int | ArabicOptions [set] |
int | Alignment [set] |
![]() | |
int | Type [get] |
Gets the type of the text element. More... | |
ArrayList | Chunks [get] |
Gets all the chunks in this element. More... | |
Formats content into one or more columns bounded by a rectangle. The columns may be simple rectangles or more complicated shapes. Add all of the columns before adding content. Column continuation is supported. A MultiColumnText object may be added to a document using Document.add
.
iTextSharp.text.pdf.MultiColumnText.MultiColumnText | ( | ) |
Default constructor. Sets height to AUTOMATIC
. Columns will repeat on each page as necessary to accomodate content length.
iTextSharp.text.pdf.MultiColumnText.MultiColumnText | ( | float | height | ) |
Construct a MultiColumnText container of the specified height. If height is AUTOMATIC
, fill complete pages until done. If a specific height is used, it may span one or more pages.
height |
iTextSharp.text.pdf.MultiColumnText.MultiColumnText | ( | float | top, |
float | height | ||
) |
Construct a MultiColumnText container of the specified height starting at the specified Y position.
height | |
top |
void iTextSharp.text.pdf.MultiColumnText.AddColumn | ( | float[] | left, |
float[] | right | ||
) |
Add a new column. The parameters are limits for each column wall in the format of a sequence of points (x1,y1,x2,y2,...).
left | limits for left column |
right | limits for right column |
void iTextSharp.text.pdf.MultiColumnText.AddElement | ( | IElement | element | ) |
Add an element to be rendered in a column. Note that you can only add a Phrase
or a Chunk
if the columns are not all simple. This is an underlying restriction in com.lowagie.text.pdf.ColumnText
element | element to add |
DocumentException | if element can't be added |
void iTextSharp.text.pdf.MultiColumnText.AddRegularColumns | ( | float | left, |
float | right, | ||
float | gutterWidth, | ||
int | numColumns | ||
) |
Add the specified number of evenly spaced rectangular columns. Columns will be seperated by the specified gutterWidth.
left | left boundary of first column |
right | right boundary of last column |
gutterWidth | width of gutter spacing between columns |
numColumns | number of columns to add |
void iTextSharp.text.pdf.MultiColumnText.AddSimpleColumn | ( | float | left, |
float | right | ||
) |
Add a simple rectangular column with specified left and right x position boundaries.
left | left boundary |
right | right boundary |
void iTextSharp.text.pdf.MultiColumnText.AddText | ( | Chunk | chunk | ) |
Adds a Chunk
to the current text array. Will not have any effect if addElement() was called before.
chunk | the text |
void iTextSharp.text.pdf.MultiColumnText.AddText | ( | Phrase | phrase | ) |
Adds a Phrase
to the current text array. Will not have any effect if addElement() was called before.
phrase | the text |
bool iTextSharp.text.pdf.MultiColumnText.IsContent | ( | ) |
bool iTextSharp.text.pdf.MultiColumnText.IsNestable | ( | ) |
Implements iTextSharp.text.IElement.
bool iTextSharp.text.pdf.MultiColumnText.IsOverflow | ( | ) |
Indicates that all of the text did not fit in the specified height. Note that isOverflow will return false before the MultiColumnText object has been added to the document. It will always be false if the height is AUTOMATIC.
void iTextSharp.text.pdf.MultiColumnText.NextColumn | ( | ) |
Moves the text insertion point to the beginning of the next column, issuing a page break if needed.
DocumentException | on error |
bool iTextSharp.text.pdf.MultiColumnText.Process | ( | IElementListener | listener | ) |
Processes the element by adding it to an ElementListener
.
listener | an ElementListener |
true
if the element was processed successfully Implements iTextSharp.text.IElement.
void iTextSharp.text.pdf.MultiColumnText.ResetCurrentColumn | ( | ) |
Resets the current column.
void iTextSharp.text.pdf.MultiColumnText.SetColumnsRightToLeft | ( | bool | direction | ) |
Sets the direction of the columns.
direction | true = right2left; false = left2right |
bool iTextSharp.text.pdf.MultiColumnText.ShiftCurrentColumn | ( | ) |
Shifts the current column.
override string iTextSharp.text.pdf.MultiColumnText.ToString | ( | ) |
Gets the content of the text element.
Implements iTextSharp.text.IElement.
void iTextSharp.text.pdf.MultiColumnText.UseColumnParams | ( | ColumnText | sourceColumn | ) |
Copy the parameters from the specified ColumnText to use when rendering. Parameters like setArabicOptions
must be set in this way.
sourceColumn |
float iTextSharp.text.pdf.MultiColumnText.Write | ( | PdfContentByte | canvas, |
PdfDocument | document, | ||
float | documentY | ||
) |
Write out the columns. After writing, use isOverflow() to see if all text was written.
canvas | PdfContentByte to write with |
document | document to write to (only used to get page limit info) |
documentY | starting y position to begin writing at |
DocumentException | on error |
|
static |
special constant for automatic calculation of height
|
set |
Sets the default alignment
alignment | the default alignment |
|
set |
Sets the arabic shaping options. The option can be AR_NOVOWEL, AR_COMPOSEDTASHKEEL and AR_LIG.
arabicOptions | the arabic shaping options |
|
get |
Returns null - not used
|
get |
Gets the current column.
|
set |
Sets the run direction.
runDirection | the run direction |
|
set |
Sets the ratio between the extra word spacing and the extra character spacing when the text is fully justified. Extra word spacing will grow spaceCharRatio
times more than extra character spacing. If the ratio is PdfWriter.NO_SPACE_CHAR_RATIO
then the extra character spacing will be zero.
spaceCharRatio | the ratio between the extra word spacing and the extra character spacing |
|
get |
Gets the type of the text element.