|
DynamicPDF by ceTe Software | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.cete.dynamicpdf.Resource com.cete.dynamicpdf.io.OperatorWriter
public abstract class OperatorWriter
Class represents all the operators used in PDF content streams.
Licensing:
This class is a DynamicPDF Generator Professional
Edition feature. One of the following licenses is required for non-evaluation
usage:
Method Summary | |
---|---|
AreaDimensions |
getDimensions()
Gets the dimensions of the current area. |
Document |
getDocument()
Gets the Document object the page writer belongs to. |
DocumentWriter |
getDocumentWriter()
Gets the getDocumentWriter() object the page writer is currently drawing to. |
int |
getRequiredPdfObjects()
Gets the number of PDF objects required by the resource. |
void |
requireLicense()
Specifies that a license is required. |
void |
requireLicense(int level)
Specifies that a license is required. |
void |
resetDimensions()
Resets the coordinate space for the current area. |
void |
setCharacterSpacing(float characterSpacing)
Sets the character spacing for text on the page. |
void |
setDimensionsRotate(float x,
float y,
float width,
float height,
float angle)
Transforms the coordinate space for the current area. |
void |
setDimensionsRotate(float x,
float y,
float width,
float height,
float xX,
float xY,
float yX,
float yY)
Transforms the coordinate space for the current area. |
void |
setDimensionsScale(float x,
float y,
float width,
float height,
float scaleX,
float scaleY)
Transforms the coordinate space for the current area. |
void |
setDimensionsShift(float x,
float y,
float width,
float height)
Transforms the coordinate space for the current area. |
void |
setDimensionsSimpleRotate(float x,
float y,
float angle)
Transforms the coordinate space for the current area. |
void |
setDimensionsSimpleRotate(float x,
float y,
float xX,
float xY,
float yX,
float yY)
Transforms the coordinate space for the current area. |
void |
SetDimensionsTransform(float x,
float y,
float width,
float height,
float angle,
float scaleX,
float scaleY)
Transforms the coordinate space for the current area. |
void |
setDimensionsTransform(float x,
float y,
float width,
float height,
float xX,
float xY,
float yX,
float yY,
float scaleX,
float scaleY)
Transforms the coordinate space for the current area. |
void |
setFillColor(Color color)
Sets the fill color for the page. |
void |
setFont(Font font,
float fontSize)
Sets the font and font size for text on the page. |
void |
setGraphicsMode()
Sets the page to graphics mode. |
void |
setHorizontalScaling(float horizontalScaling)
Sets the horizontal scaling for text on the page. |
void |
setLeading(float leading)
Sets the leading for text on the page. |
void |
setLineCap(LineCap lineCap)
Sets the line cap style for paths on the page. |
void |
setLineJoin(LineJoin lineJoin)
Sets the line join style for paths on the page. |
void |
setLineStyle(LineStyle lineStyle)
Sets the line style for the page. |
void |
setLineWidth(float lineWidth)
Sets the line width for the page. |
void |
setMiterLimit(float miterLimit)
Sets the miterLimit for paths on the page. |
void |
setStrokeColor(Color color)
Sets the stoke color for the page. |
void |
setTextDefaults()
Sets the text properties render mode, character space, word space, horizontal scale, and text rise to the defaults. |
void |
setTextMode()
Sets the page to text mode. |
void |
setTextRenderingMode(TextRenderingMode textRenderingMode)
Sets text rendering mode for text on the page. |
void |
setTextRise(float textRise)
Sets text rise for text on the page. |
void |
setWordSpacing(float wordSpacing)
Sets the word spacing for text on the page. |
void |
write_b_()
Writes a PDF "b" operator to the page. |
void |
write_B()
Writes a PDF "B" operator to the page. |
void |
write_BI()
Writes a PDF "BI" operator to the page. |
void |
write_BT()
Writes a PDF "BT" operator to the page. |
void |
write_bx_()
Writes a PDF "b*" operator to the page. |
void |
write_Bx()
Writes a PDF "B*" operator to the page. |
void |
write_c(float x1,
float y1,
float x2,
float y2,
float x3,
float y3)
Writes a PDF "c" operator to the page. |
void |
write_clippedRectangle(float x,
float y,
float width,
float height)
|
void |
write_cm(float angle)
Writes a PDF "cm" operator to the page. |
void |
write_cm(float xOffset,
float yOffset)
Writes a PDF "cm" operator to the page. |
void |
write_cm(float angle,
float xOffset,
float yOffset)
Writes a PDF "cm" operator to the page. |
void |
write_cm(float xX,
float xY,
float yX,
float yY)
Writes a PDF "cm" operator to the page. |
void |
write_cm(float a,
float b,
float c,
float d,
float e,
float f)
Writes a PDF "cm" operator to the page. |
void |
write_d(int on,
int off)
Writes a PDF "d" operator to the page. |
void |
write_d(LineStyle lineStyle)
Writes a PDF "d" operator to the page. |
abstract void |
write_Do(Resource xObject)
|
void |
write_DQuote(float wordSpacing,
float characterSpacing,
char[] textArray,
int start,
int length,
boolean rightToLeft)
Writes a PDF Double Quote (""") operator to the page. |
void |
write_EI()
Writes a PDF "EI" operator to the page. |
void |
write_ET()
Writes a PDF "ET" operator to the page. |
void |
write_f()
Writes a PDF "f" operator to the page. |
void |
write_fx()
Writes a PDF "f*" operator to the page. |
void |
write_g_(Grayscale color)
Writes a PDF "g" operator to the page. |
void |
write_G(Grayscale color)
Writes a PDF "G" operator to the page. |
void |
write_h()
Writes a PDF "h" operator to the page. |
void |
write_ID()
Writes a PDF "ID" operator to the page. |
void |
write_j_(LineJoin lineJoin)
Writes a PDF "j" operator to the page. |
void |
write_J(LineCap lineCap)
Writes a PDF "J" operator to the page. |
void |
write_k_(CmykColor color)
Writes a PDF "k" operator to the page. |
void |
write_K(CmykColor color)
Writes a PDF "K" operator to the page. |
void |
write_l_(float x,
float y)
Writes a PDF "l" operator to the page. |
void |
write_m_(float x,
float y)
Writes a PDF "m" operator to the page. |
void |
write_M(float miterLimit)
Writes a PDF "M" operator to the page. |
void |
write_n()
Writes a PDF "n" operator to the page. |
void |
write_q_()
Writes a PDF "q" operator to the page. |
void |
write_q_(boolean storeState)
Writes a PDF "q" operator to the page. |
void |
write_Q()
Writes a PDF "Q" operator to the page. |
void |
write_Q(boolean restoreState)
Writes a PDF "G" operator to the page. |
void |
write_re(float x,
float y,
float width,
float height)
Writes a PDF "re" operator to the page. |
void |
write_rg_(RgbColor color)
Writes a PDF "rg" operator to the page. |
void |
write_RG(RgbColor color)
Writes a PDF "RG" operator to the page. |
void |
write_s_()
Writes a PDF "s" operator to the page. |
void |
write_S()
Writes a PDF "S" operator to the page. |
void |
write_SQuote(char[] textArray,
int start,
int length,
boolean rightToLeft)
Writes a PDF Single Quote ("'") operator to the page. |
void |
write_Tc(float characterSpacing)
Writes a PDF "Tc" operator to the page. |
void |
write_Td_(float x,
float y)
Writes a PDF "Td" operator to the page. |
void |
write_TD(float x,
float y)
Writes a PDF "TD" operator to the page. |
abstract void |
write_Tf(Font font,
float fontSize)
Writes a PDF "Tf" operator to the page. |
void |
write_Tj_(char[] text,
boolean rightToLeft)
Writes a PDF "Tj" operator to the page. |
void |
write_Tj_(char[] textArray,
int start,
int length,
boolean rightToLeft)
Writes a PDF "Tj" operator to the page. |
void |
write_TJ_Close()
Closes the opened TJ array. |
void |
write_TJ_Open()
Opens array for writting TJ operator. |
void |
write_TJ_SpaceLength(int spaceLength)
Writes Space length in between two chars. |
void |
write_TJ_Text(char[] text,
int startIndex,
int length,
boolean rightToLeft)
Writes the given text inside the TJ array. |
void |
write_TJ(char[] textArray,
int start,
int length,
float wordSpacing,
boolean rightToLeft)
Writes a PDF "TJ" operator to the page. |
void |
write_TL(float leading)
Writes a PDF "TL" operator to the page. |
void |
write_Tm(float x,
float y)
Writes a PDF "Tm" operator to the page. |
void |
write_Tm(float angle,
float x,
float y)
Writes a PDF "Tm" operator to the page. |
void |
write_Tm(float xX,
float xY,
float yX,
float yY)
Writes a PDF "Tm" operator to the page. |
void |
write_Tm(float a,
float b,
float c,
float d,
float x,
float y)
Writes a PDF "Tm" operator to the page. |
void |
write_Tr(TextRenderingMode renderingMode)
Writes a PDF "Tr" operator to the page. |
void |
write_Ts(float textRise)
Writes a PDF "Ts" operator to the page. |
void |
write_Tw(float wordSpacing)
Writes a PDF "Tw" operator to the page. |
void |
write_Tx()
Writes a PDF "Tx" operator to the page. |
void |
write_Tz(float horizontalScaling)
Writes a PDF "Tz" operator to the page. |
void |
write_v(float x2,
float y2,
float x3,
float y3)
Writes a PDF "v" operator to the page. |
void |
write_w_(float lineWidth)
Writes a PDF "w" operator to the page. |
void |
write_W()
Writes a PDF "W" operator to the page. |
void |
write_Wx()
Writes a PDF "W*" operator to the page. |
void |
write_y(float x1,
float y1,
float x3,
float y3)
Writes a PDF "y" operator to the page. |
void |
write(byte[] data)
Writes a byte array to the page. |
void |
write(byte[] data,
int length)
Writes a portion of a byte array to the page. |
void |
write(byte[] data,
int start,
int length)
Writes a portion of a byte array to the page. |
void |
write(float value)
Writes a floating point number to the page. |
void |
write(int value)
Writes an integer to the page. |
void |
writeColorValue(byte value)
Writes an color value to the page. |
void |
writeName(byte name)
Writes a byte to the page. |
void |
writeName(byte[] name)
Writes a byte array to the page. |
void |
writeNewLine()
Writes a new line to the page. |
void |
writePair(float value1,
float value2)
Writes a pair of numbers to the page. |
void |
writePoint(float pointX,
float pointY)
Writes a point to the page adjusted to PDF coordinates. |
void |
writePointX(float pointX)
Writes an X coordinate to the page adjusted to the PDF coordinate. |
void |
writePointY(float pointY)
Writes an X coordinate to the page adjusted to the PDF coordinate. |
void |
writeSpace()
Writes a space to the page. |
Methods inherited from class com.cete.dynamicpdf.Resource |
---|
draw, getResourceType, getUid, newUid |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public int getRequiredPdfObjects()
Resource
getRequiredPdfObjects
in class Resource
public AreaDimensions getDimensions()
public Document getDocument()
public DocumentWriter getDocumentWriter()
public abstract void write_Do(Resource xObject)
xObject
- Reference of type Resource
.Resource
public void setDimensionsShift(float x, float y, float width, float height)
x
- The x coordinate of the area.y
- The y coordinate of the area.width
- The width of the area.height
- The height of the area. You must call
ResetDimensions
once you are done using the transformed
coordinate space.resetDimensions()
public void setDimensionsSimpleRotate(float x, float y, float angle)
x
- The x coordinate of the area.y
- The y coordinate of the area.angle
- The angle coordinate of the area. You must call
ResetDimensions
once you are done using the transformed
coordinate space.resetDimensions()
public void setDimensionsSimpleRotate(float x, float y, float xX, float xY, float yX, float yY)
x
- The x coordinate of the area.y
- The y coordinate of the area.xX
- The XX value of the angle of the area.xY
- The XY value of the angle of the area.yX
- The YX value of the angle of the area.yY
- The YY value of the angle of the area. You must call
ResetDimensions
once you are done using the transformed
coordinate space.resetDimensions()
public void setDimensionsRotate(float x, float y, float width, float height, float angle)
x
- The x coordinate of the area.y
- The y coordinate of the area.width
- The width of the area.height
- The height of the area.angle
- The angle coordinate of the area. You must call
ResetDimensions
once you are done using the transformed
coordinate space.resetDimensions()
public void setDimensionsRotate(float x, float y, float width, float height, float xX, float xY, float yX, float yY)
x
- The x coordinate of the area.y
- The y coordinate of the area.width
- The width of the area.height
- The height of the area.xX
- The XX value of the angle of the area.xY
- The XY value of the angle of the area.yX
- The YX value of the angle of the area.yY
- The YY value of the angle of the area. You must call
ResetDimensions
once you are done using the transformed
coordinate space.resetDimensions()
public void setDimensionsScale(float x, float y, float width, float height, float scaleX, float scaleY)
x
- The x coordinate of the area.y
- The y coordinate of the area.width
- The width of the area.height
- The height of the area.scaleX
- The x scale of the area.scaleY
- The y scale of the area. You must call
ResetDimensions
once you are done using the transformed
coordinate space.resetDimensions()
public void SetDimensionsTransform(float x, float y, float width, float height, float angle, float scaleX, float scaleY)
x
- The x coordinate of the area.y
- The y coordinate of the area.width
- The width of the area.height
- The height of the area.angle
- The angle coordinate of the area.scaleX
- The x scale of the area.scaleY
- The y scale of the area. You must call
ResetDimensions
once you are done using the transformed
coordinate space.resetDimensions()
public void setDimensionsTransform(float x, float y, float width, float height, float xX, float xY, float yX, float yY, float scaleX, float scaleY)
x
- The x coordinate of the area.y
- The y coordinate of the area.width
- The width of the area.height
- The height of the area.xX
- The XX value of the angle of the area.xY
- The XY value of the angle of the area.yX
- The YX value of the angle of the area.yY
- The YY value of the angle of the area.scaleX
- The x scale of the area.scaleY
- The y scale of the area. You must call
ResetDimensions
once you are done using the transformed
coordinate space.resetDimensions()
public void resetDimensions()
public void writeName(byte[] name)
name
- Byte array to output to the page.public void writeName(byte name)
name
- Byte to output to the page.public void write_BT()
public void write_ET()
public void write_W()
public void write_Wx()
public void write_Tj_(char[] text, boolean rightToLeft)
text
- The byte array of WINANSI text to draw.rightToLeft
- Specifies if the text is to be drawn right to left.public void write_Tj_(char[] textArray, int start, int length, boolean rightToLeft)
textArray
- The byte array of WINANSI text to draw.start
- The start position of text.length
- The number of characters to draw.rightToLeft
- Specifies if the text is to be drawn right to left.public void write_TJ_Open()
public void write_TJ_Text(char[] text, int startIndex, int length, boolean rightToLeft)
text
- Char array that need to write.startIndex
- Zero based offset denoting starting position of the
text.length
- The number of characters to draw.rightToLeft
- Specifies if the text is to be drawn right to left.public void write_TJ_SpaceLength(int spaceLength)
spaceLength
- Space length in between two chars.public void write_TJ_Close()
public void write_TJ(char[] textArray, int start, int length, float wordSpacing, boolean rightToLeft)
textArray
- The byte array of WINANSI text to draw.start
- Start position of text.length
- The number of characters to draw.wordSpacing
- Word spacing to use when drawn.rightToLeft
- Specifies if the text is to be drawn right to left.public void write_Tc(float characterSpacing)
characterSpacing
- The character spacing to draw.public void write_Tw(float wordSpacing)
wordSpacing
- The word spacing to draw.public void write_Tz(float horizontalScaling)
horizontalScaling
- The horizontal spacing to draw.public void write_TL(float leading)
leading
- The leading to draw.public void write_Tr(TextRenderingMode renderingMode)
renderingMode
- TextRenderingMode
to draw.public void write_Ts(float textRise)
textRise
- The text rise to draw.public abstract void write_Tf(Font font, float fontSize)
font
- Font
to draw.fontSize
- The font size to draw.Font
public void write_d(LineStyle lineStyle)
lineStyle
- LineStyle
to draw.public void write_Tm(float angle, float x, float y)
angle
- The angle to draw.x
- The X coordinate to draw.y
- The Y coordinate to draw.public void write_Tm(float x, float y)
x
- The X coordinate to draw.y
- The Y coordinate to draw.public void write_Tm(float a, float b, float c, float d, float x, float y)
a
- The A value to draw.b
- The B value to draw.c
- The C value to draw.d
- The D value to draw.x
- The X coordinate to draw.y
- The Y coordinate to draw.public void write_Tm(float xX, float xY, float yX, float yY)
xX
- The X X multiple to draw.xY
- The X Y multiple to draw.yX
- The Y X multiple to draw.yY
- The Y Y multiple to draw.public void write_DQuote(float wordSpacing, float characterSpacing, char[] textArray, int start, int length, boolean rightToLeft)
wordSpacing
- Word spacing to draw.characterSpacing
- The character spacing to draw.textArray
- The byte array of WINANSI text to draw.start
- The start position of text.length
- The number of characters to draw.rightToLeft
- Specifies if the text is to be drawn right to left.public void write_m_(float x, float y)
x
- The X coordinate to draw.y
- The Y coordinate to draw.public void write_l_(float x, float y)
x
- The X coordinate to draw.y
- The y coordinate to draw.public void write_c(float x1, float y1, float x2, float y2, float x3, float y3)
x1
- The X1 coordinate to draw.y1
- The Y1 coordinate to draw.x2
- The X2 coordinate to draw.y2
- The Y2 coordinate to draw.x3
- The X3 coordinate to draw.y3
- The Y3 coordinate to draw.public void write_v(float x2, float y2, float x3, float y3)
x2
- The X2 coordinate to draw.y2
- The Y2 coordinate to draw.x3
- The X3 coordinate to draw.y3
- The Y3 coordinate to draw.public void write_y(float x1, float y1, float x3, float y3)
x1
- The X1 coordinate to draw.y1
- The Y1 coordinate to draw.x3
- The X3 coordinate to draw.y3
- The Y3 coordinate to draw.public void write_re(float x, float y, float width, float height)
x
- The X coordinate to draw.y
- The Y coordinate to draw.width
- The width to draw.height
- The height to draw.public void setLineStyle(LineStyle lineStyle)
lineStyle
- LineStyle
to set.public void writePoint(float pointX, float pointY)
pointX
- X coordinate of point.pointY
- Y coordinate of point.public void writePointX(float pointX)
pointX
- X coordinate to write.public void writePointY(float pointY)
pointY
- Y coordinate to write.public void write_w_(float lineWidth)
lineWidth
- The line width to draw.public void write_J(LineCap lineCap)
lineCap
- LineCap
style to draw.public void write_j_(LineJoin lineJoin)
lineJoin
- LineJoin
style to draw.public void write_M(float miterLimit)
miterLimit
- The miter limit to draw.public void write_Td_(float x, float y)
x
- The X coordinate to draw.y
- The Y coordinate to draw.public void write_TD(float x, float y)
x
- The X coordinate to draw.y
- The Y coordinate to draw.public void write_Tx()
public void write_G(Grayscale color)
color
- Grayscale
color to draw.Grayscale
public void write_g_(Grayscale color)
color
- Grayscale
color to draw.Grayscale
public void write_RG(RgbColor color)
color
- RgbColor
to draw.RgbColor
public void write_rg_(RgbColor color)
color
- RgbColor
to draw.RgbColor
public void write_K(CmykColor color)
color
- The CmykColor
to draw.CmykColor
public void write_k_(CmykColor color)
color
- The CmykColor
to draw.CmykColor
public void write_q_(boolean storeState)
storeState
- true, if the PageWriterState
should be
stored for later retrieval by a "Q" operator.PageWriterState
public void write_Q(boolean restoreState)
restoreState
- true, if the PageWriterState
should be
restored from a previous "q" operator.PageWriterState
public void write_q_()
PageWriterState
is
not stored.
PageWriterState
public void write_Q()
PageWriterState
is
not restored.
PageWriterState
public void write_cm(float xOffset, float yOffset)
xOffset
- The X offset to draw.yOffset
- The Y offset to draw.public void write_cm(float angle, float xOffset, float yOffset)
angle
- The angle to draw.xOffset
- The X offset to draw.yOffset
- The Y offset to draw.public void write_cm(float angle)
angle
- The angle to draw.public void write_cm(float xX, float xY, float yX, float yY)
xX
- The X X multiple to draw.xY
- The X Y multiple to draw.yX
- The Y X multiple to draw.yY
- The Y Y multiple to draw.public void write_cm(float a, float b, float c, float d, float e, float f)
a
- The A value to draw.b
- The B value to draw.c
- The C value to draw.d
- The D value to draw.e
- The E value to draw.f
- The F value to draw.public void write_SQuote(char[] textArray, int start, int length, boolean rightToLeft)
textArray
- The byte array of WINANSI text to draw.start
- The start position of text.length
- The number of characters to draw.rightToLeft
- Specifies if the text is to be drawn right to left.public void write_h()
public void write_S()
public void write_s_()
public void write_fx()
public void write_f()
public void write_B()
public void write_b_()
public void write_Bx()
public void write_BI()
public void writeNewLine()
public void write_ID()
public void write_EI()
public void write_bx_()
public void write_n()
public void write_d(int on, int off)
on
- write on.off
- wirte off.public void requireLicense(int level)
level
- the licensing level.public void requireLicense()
public void setLineWidth(float lineWidth)
lineWidth
- The width of the line.public void setCharacterSpacing(float characterSpacing)
characterSpacing
- The character spacing of text.public void setHorizontalScaling(float horizontalScaling)
horizontalScaling
- The horizontal scaling of text.public void setTextRenderingMode(TextRenderingMode textRenderingMode)
textRenderingMode
- TextRenderingMode
of text.public void setTextRise(float textRise)
textRise
- The text rise of text.public void setWordSpacing(float wordSpacing)
wordSpacing
- The word spacing of text.public void setGraphicsMode()
public void setTextMode()
public void setTextDefaults()
public void setLeading(float leading)
leading
- The leading value to set.public void setLineJoin(LineJoin lineJoin)
lineJoin
- LineJoin
style to set.public void setLineCap(LineCap lineCap)
lineCap
- LineCap
style to set.public void setMiterLimit(float miterLimit)
miterLimit
- The miter limit to set.public void setStrokeColor(Color color)
color
- The Color
object to set.Color
public void setFillColor(Color color)
color
- The Color
object to set.Color
public void setFont(Font font, float fontSize)
font
- Font
to set.fontSize
- The font size to set.Font
public void write(byte[] data)
data
- The byte array to output.public void write(byte[] data, int length)
data
- The byte array to output.length
- The length to output.public void write(byte[] data, int start, int length)
data
- The byte array to output.start
- The start index of source.length
- The length to output.public void writeSpace()
public void writePair(float value1, float value2)
value1
- First number to write.value2
- Second number to write.public void writeColorValue(byte value)
value
- The color value to write.public void write(float value)
value
- Number to write.public void write(int value)
value
- Number to write.public void write_clippedRectangle(float x, float y, float width, float height)
|
DynamicPDF by ceTe Software | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |