HiraokaHyperTools.iTextSharp-LGPL
0.2.5
|
Classes | |
class | GraphicState |
Public Member Functions | |
PdfContentByte (PdfWriter wr) | |
override string | ToString () |
byte[] | ToPdf (PdfWriter writer) |
void | Add (PdfContentByte other) |
void | SetLeading (float v) |
void | SetFlatness (float value) |
void | SetLineCap (int value) |
void | SetLineDash (float value) |
void | SetLineDash (float unitsOn, float phase) |
void | SetLineDash (float unitsOn, float unitsOff, float phase) |
void | SetLineDash (float[] array, float phase) |
void | SetLineJoin (int value) |
void | SetLineWidth (float value) |
void | SetMiterLimit (float value) |
void | Clip () |
void | EoClip () |
virtual void | SetGrayFill (float value) |
virtual void | ResetGrayFill () |
virtual void | SetGrayStroke (float value) |
virtual void | ResetGrayStroke () |
virtual void | SetRGBColorFillF (float red, float green, float blue) |
virtual void | ResetRGBColorFill () |
virtual void | SetRGBColorStrokeF (float red, float green, float blue) |
virtual void | ResetRGBColorStroke () |
virtual void | SetCMYKColorFillF (float cyan, float magenta, float yellow, float black) |
virtual void | ResetCMYKColorFill () |
virtual void | SetCMYKColorStrokeF (float cyan, float magenta, float yellow, float black) |
virtual void | ResetCMYKColorStroke () |
void | MoveTo (float x, float y) |
void | LineTo (float x, float y) |
void | CurveTo (float x1, float y1, float x2, float y2, float x3, float y3) |
void | CurveTo (float x2, float y2, float x3, float y3) |
void | CurveFromTo (float x1, float y1, float x3, float y3) |
void | Circle (float x, float y, float r) |
void | Rectangle (float x, float y, float w, float h) |
void | VariableRectangle (Rectangle rect) |
void | Rectangle (Rectangle rectangle) |
void | ClosePath () |
void | NewPath () |
void | Stroke () |
void | ClosePathStroke () |
void | Fill () |
void | EoFill () |
void | FillStroke () |
void | ClosePathFillStroke () |
void | EoFillStroke () |
void | ClosePathEoFillStroke () |
virtual void | AddImage (Image image) |
virtual void | AddImage (Image image, bool inlineImage) |
virtual void | AddImage (Image image, float a, float b, float c, float d, float e, float f) |
virtual void | AddImage (Image image, float a, float b, float c, float d, float e, float f, bool inlineImage) |
void | Reset () |
void | Reset (bool validateContent) |
void | BeginText () |
void | EndText () |
void | SaveState () |
void | RestoreState () |
void | SetCharacterSpacing (float value) |
void | SetWordSpacing (float value) |
void | SetHorizontalScaling (float value) |
virtual void | SetFontAndSize (BaseFont bf, float size) |
void | SetTextRenderingMode (int value) |
void | SetTextRise (float value) |
void | ShowText (string text) |
void | ShowTextKerned (String text) |
void | NewlineShowText (string text) |
void | NewlineShowText (float wordSpacing, float charSpacing, string text) |
void | SetTextMatrix (float a, float b, float c, float d, float x, float y) |
void | SetTextMatrix (float x, float y) |
void | MoveText (float x, float y) |
void | MoveTextWithLeading (float x, float y) |
void | NewlineText () |
void | AddOutline (PdfOutline outline, string name) |
float | GetEffectiveStringWidth (String text, bool kerned) |
void | ShowTextAligned (int alignment, String text, float x, float y, float rotation) |
void | ShowTextAlignedKerned (int alignment, String text, float x, float y, float rotation) |
void | ConcatCTM (float a, float b, float c, float d, float e, float f) |
void | Arc (float x1, float y1, float x2, float y2, float startAng, float extent) |
void | Ellipse (float x1, float y1, float x2, float y2) |
PdfPatternPainter | CreatePattern (float width, float height, float xstep, float ystep) |
PdfPatternPainter | CreatePattern (float width, float height) |
PdfPatternPainter | CreatePattern (float width, float height, float xstep, float ystep, Color color) |
PdfPatternPainter | CreatePattern (float width, float height, Color color) |
PdfTemplate | CreateTemplate (float width, float height) |
PdfAppearance | CreateAppearance (float width, float height) |
void | AddPSXObject (PdfPSXObject psobject) |
virtual void | AddTemplate (PdfTemplate template, float a, float b, float c, float d, float e, float f) |
void | AddTemplate (PdfTemplate template, float x, float y) |
virtual void | SetCMYKColorFill (int cyan, int magenta, int yellow, int black) |
virtual void | SetCMYKColorStroke (int cyan, int magenta, int yellow, int black) |
virtual void | SetRGBColorFill (int red, int green, int blue) |
virtual void | SetRGBColorStroke (int red, int green, int blue) |
virtual void | SetColorStroke (Color value) |
virtual void | SetColorFill (Color value) |
virtual void | SetColorFill (PdfSpotColor sp, float tint) |
virtual void | SetColorStroke (PdfSpotColor sp, float tint) |
virtual void | SetPatternFill (PdfPatternPainter p) |
virtual void | SetPatternFill (PdfPatternPainter p, Color color) |
virtual void | SetPatternFill (PdfPatternPainter p, Color color, float tint) |
virtual void | SetPatternStroke (PdfPatternPainter p, Color color) |
virtual void | SetPatternStroke (PdfPatternPainter p, Color color, float tint) |
virtual void | SetPatternStroke (PdfPatternPainter p) |
virtual void | PaintShading (PdfShading shading) |
virtual void | PaintShading (PdfShadingPattern shading) |
virtual void | SetShadingFill (PdfShadingPattern shading) |
virtual void | SetShadingStroke (PdfShadingPattern shading) |
void | ShowText (PdfTextArray text) |
void | LocalGoto (string name, float llx, float lly, float urx, float ury) |
bool | LocalDestination (string name, PdfDestination destination) |
void | RemoteGoto (string filename, string name, float llx, float lly, float urx, float ury) |
void | RemoteGoto (string filename, int page, float llx, float lly, float urx, float ury) |
void | RoundRectangle (float x, float y, float w, float h, float r) |
virtual void | SetAction (PdfAction action, float llx, float lly, float urx, float ury) |
void | SetLiteral (string s) |
void | SetLiteral (char c) |
void | SetLiteral (float n) |
void | DrawRadioField (float llx, float lly, float urx, float ury, bool on) |
void | DrawTextField (float llx, float lly, float urx, float ury) |
void | DrawButton (float llx, float lly, float urx, float ury, string text, BaseFont bf, float size) |
void | SetGState (PdfGState gstate) |
void | BeginLayer (IPdfOCG layer) |
void | EndLayer () |
virtual void | SetDefaultColorspace (PdfName name, PdfObject obj) |
void | Transform (System.Drawing.Drawing2D.Matrix tx) |
void | BeginMarkedContentSequence (PdfStructureElement struc) |
void | EndMarkedContentSequence () |
void | BeginMarkedContentSequence (PdfName tag, PdfDictionary property, bool inline) |
void | BeginMarkedContentSequence (PdfName tag) |
void | SanityCheck () |
virtual void | AddFormXObj (PdfStream template, PdfName name, float a, float b, float c, float d, float e, float f) |
Static Public Member Functions | |
static PdfTextArray | GetKernArray (String text, BaseFont font) |
static ArrayList | BezierArc (float x1, float y1, float x2, float y2, float startAng, float extent) |
Static Public Attributes | |
const int | ALIGN_CENTER = Element.ALIGN_CENTER |
const int | ALIGN_LEFT = Element.ALIGN_LEFT |
const int | ALIGN_RIGHT = Element.ALIGN_RIGHT |
const int | LINE_CAP_BUTT = 0 |
const int | LINE_CAP_ROUND = 1 |
const int | LINE_CAP_PROJECTING_SQUARE = 2 |
const int | LINE_JOIN_MITER = 0 |
const int | LINE_JOIN_ROUND = 1 |
const int | LINE_JOIN_BEVEL = 2 |
const int | TEXT_RENDER_MODE_FILL = 0 |
const int | TEXT_RENDER_MODE_STROKE = 1 |
const int | TEXT_RENDER_MODE_FILL_STROKE = 2 |
const int | TEXT_RENDER_MODE_INVISIBLE = 3 |
const int | TEXT_RENDER_MODE_FILL_CLIP = 4 |
const int | TEXT_RENDER_MODE_STROKE_CLIP = 5 |
const int | TEXT_RENDER_MODE_FILL_STROKE_CLIP = 6 |
const int | TEXT_RENDER_MODE_CLIP = 7 |
Protected Member Functions | |
virtual void | CheckWriter () |
Protected Attributes | |
ByteBuffer | content = new ByteBuffer() |
PdfWriter | writer |
PdfDocument | |
GraphicState | state = new GraphicState() |
ArrayList | layerDepth |
ArrayList | stateList = new ArrayList() |
int | separator = '\n' |
Properties | |
ByteBuffer | InternalBuffer [get] |
float | XTLM [get] |
float | YTLM [get] |
float | CharacterSpacing [get] |
float | WordSpacing [get] |
float | HorizontalScaling [get] |
float | Leading [get] |
PdfOutline | RootOutline [get] |
PdfWriter | PdfWriter [get] |
PdfDocument | PdfDocument [get] |
virtual PdfContentByte | Duplicate [get] |
PdfContentByte
is an object containing the user positioned text and graphic contents of a page. It knows how to apply the proper font encoding.
iTextSharp.text.pdf.PdfContentByte.PdfContentByte | ( | PdfWriter | wr | ) |
Constructs a new PdfContentByte
-object.
wr | the writer associated to this content |
void iTextSharp.text.pdf.PdfContentByte.Add | ( | PdfContentByte | other | ) |
Adds the content of another PdfContent
-object to this object.
other | another PdfByteContent -object |
|
virtual |
|
virtual |
Adds an Image
to the page. The Image
must have absolute positioning.
image | the Image object |
DocumentException | if the Image does not have absolute positioning |
|
virtual |
Adds an Image
to the page. The Image
must have absolute positioning. The image can be placed inline.
image | the Image object |
inlineImage | true to place this image inline, false otherwise |
DocumentException | if the Image does not have absolute positioning |
|
virtual |
Adds an Image
to the page. The positioning of the Image
is done with the transformation matrix. To position an image
at (x,y) use AddImage(image, image_width, 0, 0, image_height, x, y).
image | the Image object |
a | an element of the transformation matrix |
b | an element of the transformation matrix |
c | an element of the transformation matrix |
d | an element of the transformation matrix |
e | an element of the transformation matrix |
f | an element of the transformation matrix |
DocumentException | on error |
Reimplemented in iTextSharp.text.pdf.PdfPatternPainter, and iTextSharp.text.pdf.PdfImportedPage.
|
virtual |
Adds an Image
to the page. The positioning of the Image
is done with the transformation matrix. To position an image
at (x,y) use AddImage(image, image_width, 0, 0, image_height, x, y). The image can be placed inline.
image | the Image object |
a | an element of the transformation matrix |
b | an element of the transformation matrix |
c | an element of the transformation matrix |
d | an element of the transformation matrix |
e | an element of the transformation matrix |
f | an element of the transformation matrix |
inlineImage | true to place this image inline, false otherwise |
DocumentException | on error |
Reimplemented in iTextSharp.text.pdf.Type3Glyph.
void iTextSharp.text.pdf.PdfContentByte.AddOutline | ( | PdfOutline | outline, |
string | name | ||
) |
Adds a named outline to the document.
outline | the outline |
name | the name for the local destination |
void iTextSharp.text.pdf.PdfContentByte.AddPSXObject | ( | PdfPSXObject | psobject | ) |
Adds a PostScript XObject to this content.
psobject | the object |
|
virtual |
Adds a template to this content.
template | the template |
a | an element of the transformation matrix |
b | an element of the transformation matrix |
c | an element of the transformation matrix |
d | an element of the transformation matrix |
e | an element of the transformation matrix |
f | an element of the transformation matrix |
Reimplemented in iTextSharp.text.pdf.PdfImportedPage.
void iTextSharp.text.pdf.PdfContentByte.AddTemplate | ( | PdfTemplate | template, |
float | x, | ||
float | y | ||
) |
Adds a template to this content.
template | the template |
x | the x location of this template |
y | the y location of this template |
void iTextSharp.text.pdf.PdfContentByte.Arc | ( | float | x1, |
float | y1, | ||
float | x2, | ||
float | y2, | ||
float | startAng, | ||
float | extent | ||
) |
Draws a partial ellipse inscribed within the rectangle x1,y1,x2,y2, starting at startAng degrees and covering extent degrees. Angles start with 0 to the right (+x) and increase counter-clockwise.
x1 | a corner of the enclosing rectangle |
y1 | a corner of the enclosing rectangle |
x2 | a corner of the enclosing rectangle |
y2 | a corner of the enclosing rectangle |
startAng | starting angle in degrees |
extent | angle extent in degrees |
void iTextSharp.text.pdf.PdfContentByte.BeginLayer | ( | IPdfOCG | layer | ) |
Begins a graphic block whose visibility is controled by the layer
. Blocks can be nested. Each block must be terminated by an endLayer().
Note that nested layers with PdfLayer#addChild(PdfLayer) only require a single call to this method and a single call to endLayer(); all the nesting control is built in.
layer | the layer |
void iTextSharp.text.pdf.PdfContentByte.BeginMarkedContentSequence | ( | PdfName | tag | ) |
This is just a shorthand to beginMarkedContentSequence(tag, null, false)
.
tag | the tag |
void iTextSharp.text.pdf.PdfContentByte.BeginMarkedContentSequence | ( | PdfName | tag, |
PdfDictionary | property, | ||
bool | inline | ||
) |
Begins a marked content sequence. If property is null
the mark will be of the type BMC
otherwise it will be BDC
.
tag | the tag |
property | the property |
inline | true to include the property in the content or false to include the property in the resource dictionary with the possibility of reusing |
void iTextSharp.text.pdf.PdfContentByte.BeginMarkedContentSequence | ( | PdfStructureElement | struc | ) |
Begins a marked content sequence. This sequence will be tagged with the structure struc
. The same structure can be used several times to connect text that belongs to the same logical segment but is in a different location, like the same paragraph crossing to another page, for example.
struc | the tagging structure |
void iTextSharp.text.pdf.PdfContentByte.BeginText | ( | ) |
Starts the writing of text.
|
static |
Generates an array of bezier curves to draw an arc.
(x1, y1) and (x2, y2) are the corners of the enclosing rectangle. Angles, measured in degrees, start with 0 to the right (the positive X axis) and increase counter-clockwise. The arc extends from startAng to startAng+extent. I.e. startAng=0 and extent=180 yields an openside-down semi-circle.
The resulting coordinates are of the form float[]{x1,y1,x2,y2,x3,y3, x4,y4} such that the curve goes from (x1, y1) to (x4, y4) with (x2, y2) and (x3, y3) as their respective Bezier control points.
Note: this code was taken from ReportLab (www.reportlab.com), an excelent PDF generator for Python.
x1 | a corner of the enclosing rectangle |
y1 | a corner of the enclosing rectangle |
x2 | a corner of the enclosing rectangle |
y2 | a corner of the enclosing rectangle |
startAng | starting angle in degrees |
extent | angle extent in degrees |
|
protectedvirtual |
Check if we have a valid PdfWriter.
void iTextSharp.text.pdf.PdfContentByte.Circle | ( | float | x, |
float | y, | ||
float | r | ||
) |
Draws a circle. The endpoint will (x+r, y).
x | x center of circle |
y | y center of circle |
r | radius of circle |
void iTextSharp.text.pdf.PdfContentByte.Clip | ( | ) |
Modify the current clipping path by intersecting it with the current path, using the nonzero winding number rule to determine which regions lie inside the clipping path.
void iTextSharp.text.pdf.PdfContentByte.ClosePath | ( | ) |
Closes the current subpath by appending a straight line segment from the current point to the starting point of the subpath.
void iTextSharp.text.pdf.PdfContentByte.ClosePathEoFillStroke | ( | ) |
Closes the path, fills it using the even-odd rule to determine the region to fill and strokes it.
void iTextSharp.text.pdf.PdfContentByte.ClosePathFillStroke | ( | ) |
Closes the path, fills it using the non-zero winding number rule to determine the region to fill and strokes it.
void iTextSharp.text.pdf.PdfContentByte.ClosePathStroke | ( | ) |
Closes the path and strokes it.
void iTextSharp.text.pdf.PdfContentByte.ConcatCTM | ( | float | a, |
float | b, | ||
float | c, | ||
float | d, | ||
float | e, | ||
float | f | ||
) |
Concatenate a matrix to the current transformation matrix.
a | an element of the transformation matrix |
b | an element of the transformation matrix |
c | an element of the transformation matrix |
d | an element of the transformation matrix |
e | an element of the transformation matrix |
f | an element of the transformation matrix |
PdfAppearance iTextSharp.text.pdf.PdfContentByte.CreateAppearance | ( | float | width, |
float | height | ||
) |
Creates a new appearance to be used with form fields.
width | the bounding box width |
height | the bounding box height |
PdfPatternPainter iTextSharp.text.pdf.PdfContentByte.CreatePattern | ( | float | width, |
float | height | ||
) |
Create a new colored tiling pattern. Variables xstep and ystep are set to the same values of width and height.
width | the width of the pattern |
height | the height of the pattern |
PdfPatternPainter
where the pattern will be created PdfPatternPainter iTextSharp.text.pdf.PdfContentByte.CreatePattern | ( | float | width, |
float | height, | ||
Color | color | ||
) |
Create a new uncolored tiling pattern. Variables xstep and ystep are set to the same values of width and height.
width | the width of the pattern |
height | the height of the pattern |
color | the default color. Can be null |
PdfPatternPainter
where the pattern will be created PdfPatternPainter iTextSharp.text.pdf.PdfContentByte.CreatePattern | ( | float | width, |
float | height, | ||
float | xstep, | ||
float | ystep | ||
) |
Create a new colored tiling pattern.
width | the width of the pattern |
height | the height of the pattern |
xstep | the desired horizontal spacing between pattern cells. May be either positive or negative, but not zero. |
ystep | the desired vertical spacing between pattern cells. May be either positive or negative, but not zero. |
PdfPatternPainter
where the pattern will be created PdfPatternPainter iTextSharp.text.pdf.PdfContentByte.CreatePattern | ( | float | width, |
float | height, | ||
float | xstep, | ||
float | ystep, | ||
Color | color | ||
) |
Create a new uncolored tiling pattern.
width | the width of the pattern |
height | the height of the pattern |
xstep | the desired horizontal spacing between pattern cells. May be either positive or negative, but not zero. |
ystep | the desired vertical spacing between pattern cells. May be either positive or negative, but not zero. |
color | the default color. Can be null |
PdfPatternPainter
where the pattern will be created PdfTemplate iTextSharp.text.pdf.PdfContentByte.CreateTemplate | ( | float | width, |
float | height | ||
) |
Creates a new template.
Creates a new template that is nothing more than a form XObject. This template can be included in this PdfContentByte
or in another template. Templates are only written to the output when the document is closed permitting things like showing text in the first page that is only defined in the last page.
width | the bounding box width |
height | the bounding box height |
void iTextSharp.text.pdf.PdfContentByte.CurveFromTo | ( | float | x1, |
float | y1, | ||
float | x3, | ||
float | y3 | ||
) |
Appends a Bêzier curve to the path, starting from the current point.
x1 | x-coordinate of the first control point |
y1 | y-coordinate of the first control point |
x3 | x-coordinaat of the ending point (= new current point) |
y3 | y-coordinaat of the ending point (= new current point) |
void iTextSharp.text.pdf.PdfContentByte.CurveTo | ( | float | x1, |
float | y1, | ||
float | x2, | ||
float | y2, | ||
float | x3, | ||
float | y3 | ||
) |
Appends a Bêzier curve to the path, starting from the current point.
x1 | x-coordinate of the first control point |
y1 | y-coordinate of the first control point |
x2 | x-coordinate of the second control point |
y2 | y-coordinate of the second control point |
x3 | x-coordinaat of the ending point (= new current point) |
y3 | y-coordinaat of the ending point (= new current point) |
void iTextSharp.text.pdf.PdfContentByte.CurveTo | ( | float | x2, |
float | y2, | ||
float | x3, | ||
float | y3 | ||
) |
Appends a Bêzier curve to the path, starting from the current point.
x2 | x-coordinate of the second control point |
y2 | y-coordinate of the second control point |
x3 | x-coordinaat of the ending point (= new current point) |
y3 | y-coordinaat of the ending point (= new current point) |
void iTextSharp.text.pdf.PdfContentByte.DrawButton | ( | float | llx, |
float | lly, | ||
float | urx, | ||
float | ury, | ||
string | text, | ||
BaseFont | bf, | ||
float | size | ||
) |
Draws a button.
void iTextSharp.text.pdf.PdfContentByte.DrawRadioField | ( | float | llx, |
float | lly, | ||
float | urx, | ||
float | ury, | ||
bool | on | ||
) |
Draws a TextField.
void iTextSharp.text.pdf.PdfContentByte.DrawTextField | ( | float | llx, |
float | lly, | ||
float | urx, | ||
float | ury | ||
) |
Draws a TextField.
void iTextSharp.text.pdf.PdfContentByte.Ellipse | ( | float | x1, |
float | y1, | ||
float | x2, | ||
float | y2 | ||
) |
Draws an ellipse inscribed within the rectangle x1,y1,x2,y2.
x1 | a corner of the enclosing rectangle |
y1 | a corner of the enclosing rectangle |
x2 | a corner of the enclosing rectangle |
y2 | a corner of the enclosing rectangle |
void iTextSharp.text.pdf.PdfContentByte.EndLayer | ( | ) |
Ends a layer controled graphic block. It will end the most recent open block.
void iTextSharp.text.pdf.PdfContentByte.EndMarkedContentSequence | ( | ) |
Ends a marked content sequence
void iTextSharp.text.pdf.PdfContentByte.EndText | ( | ) |
Ends the writing of text and makes the current font invalid.
void iTextSharp.text.pdf.PdfContentByte.EoClip | ( | ) |
Modify the current clipping path by intersecting it with the current path, using the even-odd rule to determine which regions lie inside the clipping path.
void iTextSharp.text.pdf.PdfContentByte.EoFill | ( | ) |
Fills the path, using the even-odd rule to determine the region to fill.
void iTextSharp.text.pdf.PdfContentByte.EoFillStroke | ( | ) |
Fills the path, using the even-odd rule to determine the region to fill and strokes it.
void iTextSharp.text.pdf.PdfContentByte.Fill | ( | ) |
Fills the path, using the non-zero winding number rule to determine the region to fill.
void iTextSharp.text.pdf.PdfContentByte.FillStroke | ( | ) |
Fills the path using the non-zero winding number rule to determine the region to fill and strokes it.
float iTextSharp.text.pdf.PdfContentByte.GetEffectiveStringWidth | ( | String | text, |
bool | kerned | ||
) |
Computes the width of the given string taking in account the current values of "Character spacing", "Word Spacing" and "Horizontal Scaling". The additional spacing is not computed for the last character of the string.
text | the string to get width of |
kerned | the kerning option |
|
static |
Constructs a kern array for a text in a certain font
text | the text |
font | the font |
void iTextSharp.text.pdf.PdfContentByte.LineTo | ( | float | x, |
float | y | ||
) |
Appends a straight line segment from the current point (x, y). The new current point is (x, y).
x | new x-coordinate |
y | new y-coordinate |
bool iTextSharp.text.pdf.PdfContentByte.LocalDestination | ( | string | name, |
PdfDestination | destination | ||
) |
The local destination to where a local goto with the same name will jump.
name | the name of this local destination |
destination | the PdfDestination with the jump coordinates |
true
if the local destination was added, false
if a local destination with the same name already exists void iTextSharp.text.pdf.PdfContentByte.LocalGoto | ( | string | name, |
float | llx, | ||
float | lly, | ||
float | urx, | ||
float | ury | ||
) |
Implements a link to other part of the document. The jump will be made to a local destination with the same name, that must exist.
name | the name for this link |
llx | the lower left x corner of the activation area |
lly | the lower left y corner of the activation area |
urx | the upper right x corner of the activation area |
ury | the upper right y corner of the activation area |
void iTextSharp.text.pdf.PdfContentByte.MoveText | ( | float | x, |
float | y | ||
) |
Moves to the start of the next line, offset from the start of the current line.
x | x-coordinate of the new current point |
y | y-coordinate of the new current point |
void iTextSharp.text.pdf.PdfContentByte.MoveTextWithLeading | ( | float | x, |
float | y | ||
) |
Moves to the start of the next line, offset from the start of the current line.
As a side effect, this sets the leading parameter in the text state.
x | offset of the new current point |
y | y-coordinate of the new current point |
void iTextSharp.text.pdf.PdfContentByte.MoveTo | ( | float | x, |
float | y | ||
) |
Move the current point (x, y), omitting any connecting line segment.
x | new x-coordinate |
y | new y-coordinate |
void iTextSharp.text.pdf.PdfContentByte.NewlineShowText | ( | float | wordSpacing, |
float | charSpacing, | ||
string | text | ||
) |
Moves to the next line and shows text string, using the given values of the character and word spacing parameters.
wordSpacing | a parameter |
charSpacing | a parameter |
text | the text to write |
void iTextSharp.text.pdf.PdfContentByte.NewlineShowText | ( | string | text | ) |
Moves to the next line and shows text
.
text | the text to write |
void iTextSharp.text.pdf.PdfContentByte.NewlineText | ( | ) |
Moves to the start of the next line.
void iTextSharp.text.pdf.PdfContentByte.NewPath | ( | ) |
Ends the path without filling or stroking it.
|
virtual |
Paints using a shading object.
shading | the shading object |
|
virtual |
Paints using a shading pattern.
shading | the shading pattern |
void iTextSharp.text.pdf.PdfContentByte.Rectangle | ( | float | x, |
float | y, | ||
float | w, | ||
float | h | ||
) |
Adds a rectangle to the current path.
x | x-coordinate of the starting point |
y | y-coordinate of the starting point |
w | width |
h | height |
void iTextSharp.text.pdf.PdfContentByte.Rectangle | ( | Rectangle | rectangle | ) |
Adds a border (complete or partially) to the current path..
rectangle | a Rectangle |
void iTextSharp.text.pdf.PdfContentByte.RemoteGoto | ( | string | filename, |
int | page, | ||
float | llx, | ||
float | lly, | ||
float | urx, | ||
float | ury | ||
) |
Implements a link to another document.
filename | the filename for the remote document |
page | the page to jump to |
llx | the lower left x corner of the activation area |
lly | the lower left y corner of the activation area |
urx | the upper right x corner of the activation area |
ury | the upper right y corner of the activation area |
void iTextSharp.text.pdf.PdfContentByte.RemoteGoto | ( | string | filename, |
string | name, | ||
float | llx, | ||
float | lly, | ||
float | urx, | ||
float | ury | ||
) |
Implements a link to another document.
filename | the filename for the remote document |
name | the name to jump to |
llx | the lower left x corner of the activation area |
lly | the lower left y corner of the activation area |
urx | the upper right x corner of the activation area |
ury | the upper right y corner of the activation area |
void iTextSharp.text.pdf.PdfContentByte.Reset | ( | ) |
Makes this PdfContentByte
empty. Calls reset( true )
void iTextSharp.text.pdf.PdfContentByte.Reset | ( | bool | validateContent | ) |
Makes this PdfContentByte
empty.
validateContent | will call sanityCheck() if true. |
|
virtual |
Changes the current color for filling paths to black.
Reimplemented in iTextSharp.text.pdf.PdfPatternPainter.
|
virtual |
Changes the current color for stroking paths to black.
Reimplemented in iTextSharp.text.pdf.PdfPatternPainter.
|
virtual |
Changes the current gray tint for filling paths to black.
Reimplemented in iTextSharp.text.pdf.PdfPatternPainter.
|
virtual |
Changes the current gray tint for stroking paths to black.
Reimplemented in iTextSharp.text.pdf.PdfPatternPainter.
|
virtual |
Changes the current color for filling paths to black.
Reimplemented in iTextSharp.text.pdf.PdfPatternPainter.
|
virtual |
Changes the current color for stroking paths to black.
Reimplemented in iTextSharp.text.pdf.PdfPatternPainter.
void iTextSharp.text.pdf.PdfContentByte.RestoreState | ( | ) |
Restores the graphic state. saveState
and restoreState
must be balanced.
void iTextSharp.text.pdf.PdfContentByte.RoundRectangle | ( | float | x, |
float | y, | ||
float | w, | ||
float | h, | ||
float | r | ||
) |
Adds a round rectangle to the current path.
x | x-coordinate of the starting point |
y | y-coordinate of the starting point |
w | width |
h | height |
r | radius of the arc corner |
void iTextSharp.text.pdf.PdfContentByte.SanityCheck | ( | ) |
Checks for any dangling state: Mismatched save/restore state, begin/end text, begin/end layer, or begin/end marked content sequence. If found, this function will throw. This function is called automatically during a reset() (from Document.newPage() for example), and before writing itself out in toPdf(). One possible cause: not calling myPdfGraphics2D.dispose() will leave dangling saveState() calls.
IllegalPdfSyntaxException | (a runtime exception) |
void iTextSharp.text.pdf.PdfContentByte.SaveState | ( | ) |
Saves the graphic state. saveState
and restoreState
must be balanced.
|
virtual |
Implements an action in an area.
action | the PdfAction |
llx | the lower left x corner of the activation area |
lly | the lower left y corner of the activation area |
urx | the upper right x corner of the activation area |
ury | the upper right y corner of the activation area |
Reimplemented in iTextSharp.text.pdf.StampContent.
void iTextSharp.text.pdf.PdfContentByte.SetCharacterSpacing | ( | float | value | ) |
Sets the character spacing parameter.
charSpace | a parameter |
|
virtual |
Changes the current color for filling paths (device dependent colors!).
Sets the color space to DeviceCMYK (or the DefaultCMYK color space), and sets the color to use for filling paths.
This method is described in the 'Portable Document Format Reference Manual version 1.3' section 8.5.2.1 (page 331).
Following the PDF manual, each operand must be a number between 0 (no ink) and 1 (maximum ink). This method however accepts only ints between 0x00 and 0xFF.
cyan | the intensity of cyan |
magenta | the intensity of magenta |
yellow | the intensity of yellow |
black | the intensity of black |
Reimplemented in iTextSharp.text.pdf.PdfPatternPainter.
|
virtual |
Changes the current color for filling paths (device dependent colors!).
Sets the color space to DeviceCMYK (or the DefaultCMYK color space), and sets the color to use for filling paths.
Following the PDF manual, each operand must be a number between 0 (no ink) and 1 (maximum ink).
cyan | the intensity of cyan. A value between 0 and 1 |
magenta | the intensity of magenta. A value between 0 and 1 |
yellow | the intensity of yellow. A value between 0 and 1 |
black | the intensity of black. A value between 0 and 1 |
Reimplemented in iTextSharp.text.pdf.PdfPatternPainter.
|
virtual |
Changes the current color for stroking paths (device dependent colors!).
Sets the color space to DeviceCMYK (or the DefaultCMYK color space), and sets the color to use for stroking paths.
This method is described in the 'Portable Document Format Reference Manual version 1.3' section 8.5.2.1 (page 331).
Following the PDF manual, each operand must be a number between 0 (miniumum intensity) and 1 (maximum intensity). This method however accepts only ints between 0x00 and 0xFF.
cyan | the intensity of red |
magenta | the intensity of green |
yellow | the intensity of blue |
black | the intensity of black |
Reimplemented in iTextSharp.text.pdf.PdfPatternPainter.
|
virtual |
Changes the current color for stroking paths (device dependent colors!).
Sets the color space to DeviceCMYK (or the DefaultCMYK color space), and sets the color to use for stroking paths.
Following the PDF manual, each operand must be a number between 0 (miniumum intensity) and 1 (maximum intensity).
cyan | the intensity of cyan. A value between 0 and 1 |
magenta | the intensity of magenta. A value between 0 and 1 |
yellow | the intensity of yellow. A value between 0 and 1 |
black | the intensity of black. A value between 0 and 1 |
Reimplemented in iTextSharp.text.pdf.PdfPatternPainter.
|
virtual |
Sets the fill color. color
can be an ExtendedColor
.
color | the color |
Reimplemented in iTextSharp.text.pdf.PdfPatternPainter.
|
virtual |
Sets the fill color to a spot color.
sp | the spot color |
tint | the tint for the spot color. 0 is no color and 1 is 100% color |
Reimplemented in iTextSharp.text.pdf.PdfPatternPainter, and iTextSharp.text.pdf.PdfImportedPage.
|
virtual |
Sets the stroke color. color
can be an ExtendedColor
.
color | the color |
Reimplemented in iTextSharp.text.pdf.PdfPatternPainter.
|
virtual |
Sets the stroke color to a spot color.
sp | the spot color |
tint | the tint for the spot color. 0 is no color and 1 is 100% color |
Reimplemented in iTextSharp.text.pdf.PdfPatternPainter, and iTextSharp.text.pdf.PdfImportedPage.
|
virtual |
Sets the default colorspace.
name | the name of the colorspace. It can be PdfName.DEFAULTGRAY , PdfName.DEFAULTRGB or PdfName.DEFAULTCMYK |
obj | the colorspace. A null or PdfNull removes any colorspace with the same name |
void iTextSharp.text.pdf.PdfContentByte.SetFlatness | ( | float | value | ) |
Changes the Flatness.
Flatness sets the maximum permitted distance in device pixels between the mathematically correct path and an approximation constructed from straight line segments.
flatness | a value |
|
virtual |
Set the font and the size for the subsequent text writing.
bf | the font |
size | the font size in points |
Reimplemented in iTextSharp.text.pdf.PdfImportedPage, and iTextSharp.text.pdf.PdfAppearance.
|
virtual |
Changes the currentgray tint for filling paths (device dependent colors!).
Sets the color space to DeviceGray (or the DefaultGray color space), and sets the gray tint to use for filling paths.
gray | a value between 0 (black) and 1 (white) |
Reimplemented in iTextSharp.text.pdf.PdfPatternPainter.
|
virtual |
Changes the currentgray tint for stroking paths (device dependent colors!).
Sets the color space to DeviceGray (or the DefaultGray color space), and sets the gray tint to use for stroking paths.
gray | a value between 0 (black) and 1 (white) |
Reimplemented in iTextSharp.text.pdf.PdfPatternPainter.
void iTextSharp.text.pdf.PdfContentByte.SetGState | ( | PdfGState | gstate | ) |
Sets the graphic state
gstate | the graphic state |
void iTextSharp.text.pdf.PdfContentByte.SetHorizontalScaling | ( | float | value | ) |
Sets the horizontal scaling parameter.
scale | a parameter |
void iTextSharp.text.pdf.PdfContentByte.SetLeading | ( | float | v | ) |
void iTextSharp.text.pdf.PdfContentByte.SetLineCap | ( | int | value | ) |
Changes the Line cap style.
The line cap style specifies the shape to be used at the end of open subpaths when they are stroked.
Allowed values are 0 (Butt end caps), 1 (Round end caps) and 2 (Projecting square end caps).
style | a value |
void iTextSharp.text.pdf.PdfContentByte.SetLineDash | ( | float | unitsOn, |
float | phase | ||
) |
Changes the value of the line dash pattern.
The line dash pattern controls the pattern of dashes and gaps used to stroke paths. It is specified by an array and a phase. The array specifies the length of the alternating dashes and gaps. The phase specifies the distance into the dash pattern to start the dash.
phase | the value of the phase |
unitsOn | the number of units that must be 'on' (equals the number of units that must be 'off'). |
void iTextSharp.text.pdf.PdfContentByte.SetLineDash | ( | float | unitsOn, |
float | unitsOff, | ||
float | phase | ||
) |
Changes the value of the line dash pattern.
The line dash pattern controls the pattern of dashes and gaps used to stroke paths. It is specified by an array and a phase. The array specifies the length of the alternating dashes and gaps. The phase specifies the distance into the dash pattern to start the dash.
phase | the value of the phase |
unitsOn | the number of units that must be 'on' |
unitsOff | the number of units that must be 'off' |
void iTextSharp.text.pdf.PdfContentByte.SetLineDash | ( | float | value | ) |
Changes the value of the line dash pattern.
The line dash pattern controls the pattern of dashes and gaps used to stroke paths. It is specified by an array and a phase. The array specifies the length of the alternating dashes and gaps. The phase specifies the distance into the dash pattern to start the dash.
phase | the value of the phase |
void iTextSharp.text.pdf.PdfContentByte.SetLineDash | ( | float[] | array, |
float | phase | ||
) |
Changes the value of the line dash pattern.
The line dash pattern controls the pattern of dashes and gaps used to stroke paths. It is specified by an array and a phase. The array specifies the length of the alternating dashes and gaps. The phase specifies the distance into the dash pattern to start the dash.
array | length of the alternating dashes and gaps |
phase | the value of the phase |
void iTextSharp.text.pdf.PdfContentByte.SetLineJoin | ( | int | value | ) |
Changes the Line join style.
The line join style specifies the shape to be used at the corners of paths that are stroked.
Allowed values are 0 (Miter joins), 1 (Round joins) and 2 (Bevel joins).
style | a value |
void iTextSharp.text.pdf.PdfContentByte.SetLineWidth | ( | float | value | ) |
Changes the line width.
The line width specifies the thickness of the line used to stroke a path and is measured in used space units.
w | a width |
void iTextSharp.text.pdf.PdfContentByte.SetLiteral | ( | char | c | ) |
Outputs a char
directly to the content.
c | the char |
void iTextSharp.text.pdf.PdfContentByte.SetLiteral | ( | float | n | ) |
Outputs a float
directly to the content.
n | the float |
void iTextSharp.text.pdf.PdfContentByte.SetLiteral | ( | string | s | ) |
Outputs a string
directly to the content.
s | the string |
void iTextSharp.text.pdf.PdfContentByte.SetMiterLimit | ( | float | value | ) |
Changes the Miter limit.
When two line segments meet at a sharp angle and mitered joins have been specified as the line join style, it is possible for the miter to extend far beyond the thickness of the line stroking path. The miter limit imposes a maximum on the ratio of the miter length to the line witdh. When the limit is exceeded, the join is converted from a miter to a bevel.
miterLimit | a miter limit |
|
virtual |
Sets the fill color to a pattern. The pattern can be colored or uncolored.
p | the pattern |
Reimplemented in iTextSharp.text.pdf.PdfPatternPainter.
|
virtual |
Sets the fill color to an uncolored pattern.
p | the pattern |
color | the color of the pattern |
|
virtual |
Sets the fill color to an uncolored pattern.
p | the pattern |
color | the color of the pattern |
tint | the tint if the color is a spot color, ignored otherwise |
Reimplemented in iTextSharp.text.pdf.PdfPatternPainter.
|
virtual |
Sets the stroke color to a pattern. The pattern can be colored or uncolored.
p | the pattern |
Reimplemented in iTextSharp.text.pdf.PdfPatternPainter.
|
virtual |
Sets the stroke color to an uncolored pattern.
p | the pattern |
color | the color of the pattern |
|
virtual |
Sets the stroke color to an uncolored pattern.
p | the pattern |
color | the color of the pattern |
tint | the tint if the color is a spot color, ignored otherwise |
Reimplemented in iTextSharp.text.pdf.PdfPatternPainter.
|
virtual |
Changes the current color for filling paths (device dependent colors!).
Sets the color space to DeviceRGB (or the DefaultRGB color space), and sets the color to use for filling paths.
This method is described in the 'Portable Document Format Reference Manual version 1.3' section 8.5.2.1 (page 331).
Following the PDF manual, each operand must be a number between 0 (miniumum intensity) and 1 (maximum intensity). This method however accepts only ints between 0x00 and 0xFF.
red | the intensity of red |
green | the intensity of green |
blue | the intensity of blue |
Reimplemented in iTextSharp.text.pdf.PdfPatternPainter.
|
virtual |
Changes the current color for filling paths (device dependent colors!).
Sets the color space to DeviceRGB (or the DefaultRGB color space), and sets the color to use for filling paths.
Following the PDF manual, each operand must be a number between 0 (minimum intensity) and 1 (maximum intensity).
red | the intensity of red. A value between 0 and 1 |
green | the intensity of green. A value between 0 and 1 |
blue | the intensity of blue. A value between 0 and 1 |
Reimplemented in iTextSharp.text.pdf.PdfPatternPainter.
|
virtual |
Changes the current color for stroking paths (device dependent colors!).
Sets the color space to DeviceRGB (or the DefaultRGB color space), and sets the color to use for stroking paths.
This method is described in the 'Portable Document Format Reference Manual version 1.3' section 8.5.2.1 (page 331).
Following the PDF manual, each operand must be a number between 0 (miniumum intensity) and 1 (maximum intensity). This method however accepts only ints between 0x00 and 0xFF.
red | the intensity of red |
green | the intensity of green |
blue | the intensity of blue |
Reimplemented in iTextSharp.text.pdf.PdfPatternPainter.
|
virtual |
Changes the current color for stroking paths (device dependent colors!).
Sets the color space to DeviceRGB (or the DefaultRGB color space), and sets the color to use for stroking paths.
Following the PDF manual, each operand must be a number between 0 (miniumum intensity) and 1 (maximum intensity).
red | the intensity of red. A value between 0 and 1 |
green | the intensity of green. A value between 0 and 1 |
blue | the intensity of blue. A value between 0 and 1 |
Reimplemented in iTextSharp.text.pdf.PdfPatternPainter.
|
virtual |
Sets the shading fill pattern.
shading | the shading pattern |
|
virtual |
Sets the shading stroke pattern
shading | the shading pattern |
void iTextSharp.text.pdf.PdfContentByte.SetTextMatrix | ( | float | a, |
float | b, | ||
float | c, | ||
float | d, | ||
float | x, | ||
float | y | ||
) |
Changes the text matrix.
Remark: this operation also initializes the current point position.
a | operand 1,1 in the matrix |
b | operand 1,2 in the matrix |
c | operand 2,1 in the matrix |
d | operand 2,2 in the matrix |
x | operand 3,1 in the matrix |
y | operand 3,2 in the matrix |
void iTextSharp.text.pdf.PdfContentByte.SetTextMatrix | ( | float | x, |
float | y | ||
) |
Changes the text matrix. The first four parameters are {1,0,0,1}.
Remark: this operation also initializes the current point position.
x | operand 3,1 in the matrix |
y | operand 3,2 in the matrix |
void iTextSharp.text.pdf.PdfContentByte.SetTextRenderingMode | ( | int | value | ) |
Sets the text rendering parameter.
rendering | a parameter |
void iTextSharp.text.pdf.PdfContentByte.SetTextRise | ( | float | value | ) |
Sets the text rise parameter.
This allows to write text in subscript or basescript mode.
rise | a parameter |
void iTextSharp.text.pdf.PdfContentByte.SetWordSpacing | ( | float | value | ) |
Sets the word spacing parameter.
wordSpace | a parameter |
void iTextSharp.text.pdf.PdfContentByte.ShowText | ( | PdfTextArray | text | ) |
Show an array of text.
text | array of text |
void iTextSharp.text.pdf.PdfContentByte.ShowText | ( | string | text | ) |
Shows the text
.
text | the text to write |
void iTextSharp.text.pdf.PdfContentByte.ShowTextAligned | ( | int | alignment, |
String | text, | ||
float | x, | ||
float | y, | ||
float | rotation | ||
) |
Shows text right, left or center aligned with rotation.
alignment | the alignment can be ALIGN_CENTER, ALIGN_RIGHT or ALIGN_LEFT |
text | the text to show |
x | the x pivot position |
y | the y pivot position |
rotation | the rotation to be applied in degrees counterclockwise |
void iTextSharp.text.pdf.PdfContentByte.ShowTextAlignedKerned | ( | int | alignment, |
String | text, | ||
float | x, | ||
float | y, | ||
float | rotation | ||
) |
Shows text kerned right, left or center aligned with rotation.
alignment | the alignment can be ALIGN_CENTER, ALIGN_RIGHT or ALIGN_LEFT |
text | the text to show |
x | the x pivot position |
y | the y pivot position |
rotation | the rotation to be applied in degrees counterclockwise |
void iTextSharp.text.pdf.PdfContentByte.ShowTextKerned | ( | String | text | ) |
Shows the text
kerned.
text | the text to write |
void iTextSharp.text.pdf.PdfContentByte.Stroke | ( | ) |
Strokes the path.
byte [] iTextSharp.text.pdf.PdfContentByte.ToPdf | ( | PdfWriter | writer | ) |
Returns the PDF representation of this PdfContentByte
-object.
writer | the PdfWriter |
byte
array with the representation override string iTextSharp.text.pdf.PdfContentByte.ToString | ( | ) |
Returns the string
representation of this PdfContentByte
-object.
string
void iTextSharp.text.pdf.PdfContentByte.Transform | ( | System.Drawing.Drawing2D.Matrix | tx | ) |
void iTextSharp.text.pdf.PdfContentByte.VariableRectangle | ( | Rectangle | rect | ) |
Adds a variable width border to the current path. Only use if Rectangle.isUseVariableBorders = true.
rect | a Rectangle |
|
static |
The alignement is center
|
static |
The alignement is left
|
static |
The alignement is right
|
protected |
This is the actual content
|
protected |
The list were we save/restore the layer depth
|
static |
A possible line cap value
|
static |
A possible line cap value
|
static |
A possible line cap value
|
static |
A possible line join value
|
static |
A possible line join value
|
static |
A possible line join value
|
protected |
This is the PdfDocument
|
protected |
The separator between commands.
|
protected |
This is the GraphicState in use
|
protected |
The list were we save/restore the state
|
static |
A possible text rendering value
|
static |
A possible text rendering value
|
static |
A possible text rendering value
|
static |
A possible text rendering value
|
static |
A possible text rendering value
|
static |
A possible text rendering value
|
static |
A possible text rendering value
|
static |
A possible text rendering value
|
protected |
This is the writer
|
get |
Gets the current character spacing.
|
get |
Gets a duplicate of this PdfContentByte
. All the members are copied by reference but the buffer stays different.
PdfContentByte
|
get |
Gets the current character spacing.
|
get |
Gets the internal buffer.
|
get |
Gets the current text leading.
|
get |
Gets the PdfDocument
in use by this object.
PdfDocument
in use by this object
|
get |
|
get |
Gets the root outline.
|
get |
Gets the current word spacing.
|
get |
Gets the x position of the text line matrix.
|
get |
Gets the y position of the text line matrix.