ElementBuilder Class |
Namespace: pdftron.PDF
public sealed class ElementBuilder : IClosable
The ElementBuilder type exposes the following members.
Name | Description | |
---|---|---|
ElementBuilder | Instantiates a new element builder.
|
Name | Description | |
---|---|---|
ArcTo(Double, Double, Double, Double, Double, Double) | Draw an arc with the specified parameters (upper left corner, width, height and angles).
| |
ArcTo(Double, Double, Double, Boolean, Boolean, Double, Double) | Draw an arc from the current point to the end point.
| |
Close | ||
ClosePath | Closes the current subpath.
| |
CreateEllipse | Create an ellipse (or circle, if rx == ry) path Element.
| |
CreateForm(Obj) | Create a Form XObject Element.
| |
CreateForm(Page) | Create a Form XObject Element using the content of the existing page.
This method assumes that the XObject will be used in the same
document as the given page. If you need to create the Form XObject
in a different document use CreateForm(Page, Doc) method.
| |
CreateForm(Page, PDFDoc) | Create a Form XObject Element using the content of the existing page.
Unlike CreateForm(Page) method, you can use this method to create form
in another document.
| |
CreateGroupBegin | Create e_group_begin Element (i.e. 'q' operator in PDF content stream).
The function saves the current graphics state.
| |
CreateGroupEnd | Create e_group_end Element (i.e. 'Q' operator in PDF content stream).
The function restores the previous graphics state.
| |
CreateImage(Image) | Create a content image Element out of a given document Image.
| |
CreateImage(Image, Matrix2D) | Create a content image Element out of a given document Image.
| |
CreateImage(Image, Double, Double, Double, Double) | Create a content image Element out of a given document Image with
the lower left corner at (x, y), and scale factors (hscale, vscale).
| |
CreateRect | Create a rectangle path Element.
| |
CreateShading | Create a shading Element.
| |
CreateShapedTextRun | Create a new text run from shaped text. Shaped Text can be created
with an approriate Font, using the Font.GetShapedText() method.
| |
CreateTextBegin | Start a text block ('BT' operator in PDF content stream).
| |
CreateTextBegin(Font, Double) | Start a text block ('BT' operator in PDF content stream).
The function installs the given font in the current graphics state.
| |
CreateTextEnd | Ends a text block.
| |
CreateTextNewLine | Create e_text_new_line Element (i.e. a T* operator in PDF content stream).
| |
CreateTextNewLine(Double, Double) | Create e_text_new_line Element (i.e. a Td operator in PDF content stream).
Move to the start of the next line, offset from the start of the current
line by (dx , dy). dx and dy are numbers expressed in unscaled text space
units.
| |
CreateTextRun(Byte) | Create a new text run.
| |
CreateTextRun(String) | Create a new text run.
| |
CreateTextRun(Byte, Font, Double) | Create a new text run.
| |
CreateTextRun(String, Font, Double) | Create a text run using the given font.
| |
CreateUnicodeTextRun(String) | Create a new Unicode text run.
| |
CreateUnicodeTextRun(String, Font, Double) | Create a new Unicode text run.
| |
CurveTo | Draw a Bezier curve from the current point to the given point (x2, y2) using
(cx1, cy1) and (cx2, cy2) as control points.
| |
Ellipse | Add an ellipse (or circle, if rx == ry) to the current path as a complete subpath.
Setting the current point is not required before using this function.
| |
Equals | (Inherited from Object.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
LineTo | Draw a line from the current point to the given point.
| |
MoveTo | Set the current point.
| |
PathBegin | Create a path Element using given path segment data.
| |
PathEnd | Finishes building of the path Element.
| |
Rect | Add a rectangle to the current path as a complete subpath.
Setting the current point is not required before using this function.
| |
Reset | The function sets the graphics state of this Element to the given value.
If 'gs' parameter is not specified or is NULL the function resets the
graphics state of this Element to the default graphics state (i.e. the
graphics state at the begining of the display list).
The function can be used in situations where the same ElementBuilder is used
to create content on several pages, XObjects, etc. If the graphics state is not
Reset() when moving to a new display list, the new Element will have the same
graphics state as the last Element in the previous display list (and this may
or may not be your intent).
Another use of Reset(gs) is to make sure that two Elements have the graphics
state.
| |
Reset(GState) | Reset.
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) |