DynamicPDF by ceTe Software

com.cete.dynamicpdf.io
Class OperatorWriter

java.lang.Object
  extended by com.cete.dynamicpdf.Resource
      extended by com.cete.dynamicpdf.io.OperatorWriter
Direct Known Subclasses:
PageWriter

public abstract class OperatorWriter
extends Resource

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

getRequiredPdfObjects

public int getRequiredPdfObjects()
Description copied from class: Resource
Gets the number of PDF objects required by the resource.

Overrides:
getRequiredPdfObjects in class Resource
Returns:
the number of PDF objects required by the resource.

getDimensions

public AreaDimensions getDimensions()
Gets the dimensions of the current area.

Returns:
the dimensions of the current area.

getDocument

public Document getDocument()
Gets the Document object the page writer belongs to.

Returns:
the Document object the page writer belongs to.

getDocumentWriter

public DocumentWriter getDocumentWriter()
Gets the getDocumentWriter() object the page writer is currently drawing to.

Returns:
the getDocumentWriter() object the page writer is currently drawing to.

write_Do

public abstract void write_Do(Resource xObject)
Parameters:
xObject - Reference of type Resource.
See Also:
Resource

setDimensionsShift

public void setDimensionsShift(float x,
                               float y,
                               float width,
                               float height)
Transforms the coordinate space for the current area.

Parameters:
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.
See Also:
resetDimensions()

setDimensionsSimpleRotate

public void setDimensionsSimpleRotate(float x,
                                      float y,
                                      float angle)
Transforms the coordinate space for the current area.

Parameters:
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.
See Also:
resetDimensions()

setDimensionsSimpleRotate

public void setDimensionsSimpleRotate(float x,
                                      float y,
                                      float xX,
                                      float xY,
                                      float yX,
                                      float yY)
Transforms the coordinate space for the current area.

Parameters:
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.
See Also:
resetDimensions()

setDimensionsRotate

public void setDimensionsRotate(float x,
                                float y,
                                float width,
                                float height,
                                float angle)
Transforms the coordinate space for the current area.

Parameters:
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.
See Also:
resetDimensions()

setDimensionsRotate

public 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.

Parameters:
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.
See Also:
resetDimensions()

setDimensionsScale

public void setDimensionsScale(float x,
                               float y,
                               float width,
                               float height,
                               float scaleX,
                               float scaleY)
Transforms the coordinate space for the current area.

Parameters:
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.
See Also:
resetDimensions()

SetDimensionsTransform

public void SetDimensionsTransform(float x,
                                   float y,
                                   float width,
                                   float height,
                                   float angle,
                                   float scaleX,
                                   float scaleY)
Transforms the coordinate space for the current area.

Parameters:
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.
See Also:
resetDimensions()

setDimensionsTransform

public 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.

Parameters:
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.
See Also:
resetDimensions()

resetDimensions

public void resetDimensions()
Resets the coordinate space for the current area.


writeName

public void writeName(byte[] name)
Writes a byte array to the page.

Parameters:
name - Byte array to output to the page.

writeName

public void writeName(byte name)
Writes a byte to the page.

Parameters:
name - Byte to output to the page.

write_BT

public void write_BT()
Writes a PDF "BT" operator to the page.


write_ET

public void write_ET()
Writes a PDF "ET" operator to the page.


write_W

public void write_W()
Writes a PDF "W" operator to the page.


write_Wx

public void write_Wx()
Writes a PDF "W*" operator to the page.


write_Tj_

public void write_Tj_(char[] text,
                      boolean rightToLeft)
Writes a PDF "Tj" operator to the page.

Parameters:
text - The byte array of WINANSI text to draw.
rightToLeft - Specifies if the text is to be drawn right to left.

write_Tj_

public void write_Tj_(char[] textArray,
                      int start,
                      int length,
                      boolean rightToLeft)
Writes a PDF "Tj" operator to the page.

Parameters:
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.

write_TJ_Open

public void write_TJ_Open()
Opens array for writting TJ operator.


write_TJ_Text

public void write_TJ_Text(char[] text,
                          int startIndex,
                          int length,
                          boolean rightToLeft)
Writes the given text inside the TJ array. Required to open TJ array.

Parameters:
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.

write_TJ_SpaceLength

public void write_TJ_SpaceLength(int spaceLength)
Writes Space length in between two chars.

Parameters:
spaceLength - Space length in between two chars.

write_TJ_Close

public void write_TJ_Close()
Closes the opened TJ array.


write_TJ

public void write_TJ(char[] textArray,
                     int start,
                     int length,
                     float wordSpacing,
                     boolean rightToLeft)
Writes a PDF "TJ" operator to the page.

Parameters:
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.

write_Tc

public void write_Tc(float characterSpacing)
Writes a PDF "Tc" operator to the page.

Parameters:
characterSpacing - The character spacing to draw.

write_Tw

public void write_Tw(float wordSpacing)
Writes a PDF "Tw" operator to the page.

Parameters:
wordSpacing - The word spacing to draw.

write_Tz

public void write_Tz(float horizontalScaling)
Writes a PDF "Tz" operator to the page.

Parameters:
horizontalScaling - The horizontal spacing to draw.

write_TL

public void write_TL(float leading)
Writes a PDF "TL" operator to the page.

Parameters:
leading - The leading to draw.

write_Tr

public void write_Tr(TextRenderingMode renderingMode)
Writes a PDF "Tr" operator to the page.

Parameters:
renderingMode - TextRenderingMode to draw.

write_Ts

public void write_Ts(float textRise)
Writes a PDF "Ts" operator to the page.

Parameters:
textRise - The text rise to draw.

write_Tf

public abstract void write_Tf(Font font,
                              float fontSize)
Writes a PDF "Tf" operator to the page.

Parameters:
font - Font to draw.
fontSize - The font size to draw.
See Also:
Font

write_d

public void write_d(LineStyle lineStyle)
Writes a PDF "d" operator to the page.

Parameters:
lineStyle - LineStyle to draw.

write_Tm

public void write_Tm(float angle,
                     float x,
                     float y)
Writes a PDF "Tm" operator to the page.

Parameters:
angle - The angle to draw.
x - The X coordinate to draw.
y - The Y coordinate to draw.

write_Tm

public void write_Tm(float x,
                     float y)
Writes a PDF "Tm" operator to the page.

Parameters:
x - The X coordinate to draw.
y - The Y coordinate to draw.

write_Tm

public void write_Tm(float a,
                     float b,
                     float c,
                     float d,
                     float x,
                     float y)
Writes a PDF "Tm" operator to the page.

Parameters:
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.

write_Tm

public void write_Tm(float xX,
                     float xY,
                     float yX,
                     float yY)
Writes a PDF "Tm" operator to the page.

Parameters:
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.

write_DQuote

public void write_DQuote(float wordSpacing,
                         float characterSpacing,
                         char[] textArray,
                         int start,
                         int length,
                         boolean rightToLeft)
Writes a PDF Double Quote (""") operator to the page.

Parameters:
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.

write_m_

public void write_m_(float x,
                     float y)
Writes a PDF "m" operator to the page.

Parameters:
x - The X coordinate to draw.
y - The Y coordinate to draw.

write_l_

public void write_l_(float x,
                     float y)
Writes a PDF "l" operator to the page.

Parameters:
x - The X coordinate to draw.
y - The y coordinate to draw.

write_c

public void write_c(float x1,
                    float y1,
                    float x2,
                    float y2,
                    float x3,
                    float y3)
Writes a PDF "c" operator to the page.

Parameters:
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.

write_v

public void write_v(float x2,
                    float y2,
                    float x3,
                    float y3)
Writes a PDF "v" operator to the page.

Parameters:
x2 - The X2 coordinate to draw.
y2 - The Y2 coordinate to draw.
x3 - The X3 coordinate to draw.
y3 - The Y3 coordinate to draw.

write_y

public void write_y(float x1,
                    float y1,
                    float x3,
                    float y3)
Writes a PDF "y" operator to the page.

Parameters:
x1 - The X1 coordinate to draw.
y1 - The Y1 coordinate to draw.
x3 - The X3 coordinate to draw.
y3 - The Y3 coordinate to draw.

write_re

public void write_re(float x,
                     float y,
                     float width,
                     float height)
Writes a PDF "re" operator to the page.

Parameters:
x - The X coordinate to draw.
y - The Y coordinate to draw.
width - The width to draw.
height - The height to draw.

setLineStyle

public void setLineStyle(LineStyle lineStyle)
Sets the line style for the page.

Parameters:
lineStyle - LineStyle to set.

writePoint

public void writePoint(float pointX,
                       float pointY)
Writes a point to the page adjusted to PDF coordinates.

Parameters:
pointX - X coordinate of point.
pointY - Y coordinate of point.

writePointX

public void writePointX(float pointX)
Writes an X coordinate to the page adjusted to the PDF coordinate.

Parameters:
pointX - X coordinate to write.

writePointY

public void writePointY(float pointY)
Writes an X coordinate to the page adjusted to the PDF coordinate.

Parameters:
pointY - Y coordinate to write.

write_w_

public void write_w_(float lineWidth)
Writes a PDF "w" operator to the page.

Parameters:
lineWidth - The line width to draw.

write_J

public void write_J(LineCap lineCap)
Writes a PDF "J" operator to the page.

Parameters:
lineCap - LineCap style to draw.

write_j_

public void write_j_(LineJoin lineJoin)
Writes a PDF "j" operator to the page.

Parameters:
lineJoin - LineJoin style to draw.

write_M

public void write_M(float miterLimit)
Writes a PDF "M" operator to the page.

Parameters:
miterLimit - The miter limit to draw.

write_Td_

public void write_Td_(float x,
                      float y)
Writes a PDF "Td" operator to the page.

Parameters:
x - The X coordinate to draw.
y - The Y coordinate to draw.

write_TD

public void write_TD(float x,
                     float y)
Writes a PDF "TD" operator to the page.

Parameters:
x - The X coordinate to draw.
y - The Y coordinate to draw.

write_Tx

public void write_Tx()
Writes a PDF "Tx" operator to the page.


write_G

public void write_G(Grayscale color)
Writes a PDF "G" operator to the page.

Parameters:
color - Grayscale color to draw.
See Also:
Grayscale

write_g_

public void write_g_(Grayscale color)
Writes a PDF "g" operator to the page.

Parameters:
color - Grayscale color to draw.
See Also:
Grayscale

write_RG

public void write_RG(RgbColor color)
Writes a PDF "RG" operator to the page.

Parameters:
color - RgbColor to draw.
See Also:
RgbColor

write_rg_

public void write_rg_(RgbColor color)
Writes a PDF "rg" operator to the page.

Parameters:
color - RgbColor to draw.
See Also:
RgbColor

write_K

public void write_K(CmykColor color)
Writes a PDF "K" operator to the page.

Parameters:
color - The CmykColor to draw.
See Also:
CmykColor

write_k_

public void write_k_(CmykColor color)
Writes a PDF "k" operator to the page.

Parameters:
color - The CmykColor to draw.
See Also:
CmykColor

write_q_

public void write_q_(boolean storeState)
Writes a PDF "q" operator to the page.

Parameters:
storeState - true, if the PageWriterState should be stored for later retrieval by a "Q" operator.
See Also:
PageWriterState

write_Q

public void write_Q(boolean restoreState)
Writes a PDF "G" operator to the page.

Parameters:
restoreState - true, if the PageWriterState should be restored from a previous "q" operator.
See Also:
PageWriterState

write_q_

public void write_q_()
Writes a PDF "q" operator to the page. PageWriterState is not stored.

See Also:
PageWriterState

write_Q

public void write_Q()
Writes a PDF "Q" operator to the page. PageWriterState is not restored.

See Also:
PageWriterState

write_cm

public void write_cm(float xOffset,
                     float yOffset)
Writes a PDF "cm" operator to the page.

Parameters:
xOffset - The X offset to draw.
yOffset - The Y offset to draw.

write_cm

public void write_cm(float angle,
                     float xOffset,
                     float yOffset)
Writes a PDF "cm" operator to the page.

Parameters:
angle - The angle to draw.
xOffset - The X offset to draw.
yOffset - The Y offset to draw.

write_cm

public void write_cm(float angle)
Writes a PDF "cm" operator to the page.

Parameters:
angle - The angle to draw.

write_cm

public void write_cm(float xX,
                     float xY,
                     float yX,
                     float yY)
Writes a PDF "cm" operator to the page.

Parameters:
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.

write_cm

public void write_cm(float a,
                     float b,
                     float c,
                     float d,
                     float e,
                     float f)
Writes a PDF "cm" operator to the page.

Parameters:
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.

write_SQuote

public void write_SQuote(char[] textArray,
                         int start,
                         int length,
                         boolean rightToLeft)
Writes a PDF Single Quote ("'") operator to the page.

Parameters:
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.

write_h

public void write_h()
Writes a PDF "h" operator to the page.


write_S

public void write_S()
Writes a PDF "S" operator to the page.


write_s_

public void write_s_()
Writes a PDF "s" operator to the page.


write_fx

public void write_fx()
Writes a PDF "f*" operator to the page.


write_f

public void write_f()
Writes a PDF "f" operator to the page.


write_B

public void write_B()
Writes a PDF "B" operator to the page.


write_b_

public void write_b_()
Writes a PDF "b" operator to the page.


write_Bx

public void write_Bx()
Writes a PDF "B*" operator to the page.


write_BI

public void write_BI()
Writes a PDF "BI" operator to the page.


writeNewLine

public void writeNewLine()
Writes a new line to the page.


write_ID

public void write_ID()
Writes a PDF "ID" operator to the page.


write_EI

public void write_EI()
Writes a PDF "EI" operator to the page.


write_bx_

public void write_bx_()
Writes a PDF "b*" operator to the page.


write_n

public void write_n()
Writes a PDF "n" operator to the page.


write_d

public void write_d(int on,
                    int off)
Writes a PDF "d" operator to the page.

Parameters:
on - write on.
off - wirte off.

requireLicense

public void requireLicense(int level)
Specifies that a license is required.

Parameters:
level - the licensing level.

requireLicense

public void requireLicense()
Specifies that a license is required.


setLineWidth

public void setLineWidth(float lineWidth)
Sets the line width for the page.

Parameters:
lineWidth - The width of the line.

setCharacterSpacing

public void setCharacterSpacing(float characterSpacing)
Sets the character spacing for text on the page.

Parameters:
characterSpacing - The character spacing of text.

setHorizontalScaling

public void setHorizontalScaling(float horizontalScaling)
Sets the horizontal scaling for text on the page.

Parameters:
horizontalScaling - The horizontal scaling of text.

setTextRenderingMode

public void setTextRenderingMode(TextRenderingMode textRenderingMode)
Sets text rendering mode for text on the page.

Parameters:
textRenderingMode - TextRenderingMode of text.

setTextRise

public void setTextRise(float textRise)
Sets text rise for text on the page.

Parameters:
textRise - The text rise of text.

setWordSpacing

public void setWordSpacing(float wordSpacing)
Sets the word spacing for text on the page.

Parameters:
wordSpacing - The word spacing of text.

setGraphicsMode

public void setGraphicsMode()
Sets the page to graphics mode.


setTextMode

public void setTextMode()
Sets the page to text mode.


setTextDefaults

public void setTextDefaults()
Sets the text properties render mode, character space, word space, horizontal scale, and text rise to the defaults.


setLeading

public void setLeading(float leading)
Sets the leading for text on the page.

Parameters:
leading - The leading value to set.

setLineJoin

public void setLineJoin(LineJoin lineJoin)
Sets the line join style for paths on the page.

Parameters:
lineJoin - LineJoin style to set.

setLineCap

public void setLineCap(LineCap lineCap)
Sets the line cap style for paths on the page.

Parameters:
lineCap - LineCap style to set.

setMiterLimit

public void setMiterLimit(float miterLimit)
Sets the miterLimit for paths on the page.

Parameters:
miterLimit - The miter limit to set.

setStrokeColor

public void setStrokeColor(Color color)
Sets the stoke color for the page.

Parameters:
color - The Color object to set.
See Also:
Color

setFillColor

public void setFillColor(Color color)
Sets the fill color for the page.

Parameters:
color - The Color object to set.
See Also:
Color

setFont

public void setFont(Font font,
                    float fontSize)
Sets the font and font size for text on the page.

Parameters:
font - Font to set.
fontSize - The font size to set.
See Also:
Font

write

public void write(byte[] data)
Writes a byte array to the page.

Parameters:
data - The byte array to output.

write

public void write(byte[] data,
                  int length)
Writes a portion of a byte array to the page.

Parameters:
data - The byte array to output.
length - The length to output.

write

public void write(byte[] data,
                  int start,
                  int length)
Writes a portion of a byte array to the page.

Parameters:
data - The byte array to output.
start - The start index of source.
length - The length to output.

writeSpace

public void writeSpace()
Writes a space to the page.


writePair

public void writePair(float value1,
                      float value2)
Writes a pair of numbers to the page.

Parameters:
value1 - First number to write.
value2 - Second number to write.

writeColorValue

public void writeColorValue(byte value)
Writes an color value to the page.

Parameters:
value - The color value to write.

write

public void write(float value)
Writes a floating point number to the page.

Parameters:
value - Number to write.

write

public void write(int value)
Writes an integer to the page.

Parameters:
value - Number to write.

write_clippedRectangle

public void write_clippedRectangle(float x,
                                   float y,
                                   float width,
                                   float height)

DynamicPDF by ceTe Software

API Reference for DynamicPDF v10.07 for Java generated on Aug 12, 2020
© Copyright 2020, ceTe Software