DynamicPDF by ceTe Software

com.cete.dynamicpdf.io
Class PageWriter

java.lang.Object
  extended by com.cete.dynamicpdf.Resource
      extended by com.cete.dynamicpdf.io.OperatorWriter
          extended by com.cete.dynamicpdf.io.PageWriter

public class PageWriter
extends OperatorWriter

Represents a writer class for a page.

Licensing:
This class is a DynamicPDF Generator Professional Edition feature. One of the following licenses is required for non-evaluation usage:


Method Summary
 void draw(DocumentWriter writer)
          Writes content stream to the page.
 PageAnnotationList getAnnotations()
          Gets a list of annotations used on the page.
 Page getPage()
          Gets the Page object the page writer belongs to.
 int getPageNumber()
          Gets the total pages being drawn to the document.
 PageResources getResources()
          Gets the page resources used on the page.
 ResourceType getResourceType()
          Gets the type of resource.
 int getSectionPageNumber()
          Gets the current page being drawn the document.
 void setFillColorSpace(ColorSpace colorSpace)
          Sets the color space for the page.
 void setStrokeColorSpace(ColorSpace colorSpace)
          Sets the color space for 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_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_cs_(ColorSpace colorSpace)
          Writes a PDF "cs" operator to the page.
 void write_CS(ColorSpace colorSpace)
          Writes a PDF "CS" operator to the page.
 void write_Do(Resource xObject)
          Writes a PDF "Do" operator to the page.
 void write_EI()
          Writes a PDF "EI" 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_gs(Resource extGState)
          Writes a PDF "gs" 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_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_scn_(Gradient pattern)
          Writes a PDF "scn" operator to the page.
 void write_scn_(SpotColor tint)
          Writes a PDF "scn" operator to the page.
 void write_SCN(Gradient pattern)
          Writes a PDF "SCN" operator to the page.
 void write_SCN(SpotColor tint)
          Writes a PDF "SCN" operator to the page.
 void write_Tf(Font font, float fontSize)
          Writes a PDF "Tf" 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_y(float x1, float y1, float x3, float y3)
          Writes a PDF "y" operator to the page.
 
Methods inherited from class com.cete.dynamicpdf.io.OperatorWriter
getDimensions, getDocument, getDocumentWriter, getRequiredPdfObjects, requireLicense, requireLicense, resetDimensions, setCharacterSpacing, setDimensionsRotate, setDimensionsRotate, setDimensionsScale, setDimensionsShift, setDimensionsSimpleRotate, setDimensionsSimpleRotate, SetDimensionsTransform, setDimensionsTransform, setFillColor, setFont, setGraphicsMode, setHorizontalScaling, setLeading, setLineCap, setLineJoin, setLineStyle, setLineWidth, setMiterLimit, setStrokeColor, setTextDefaults, setTextMode, setTextRenderingMode, setTextRise, setWordSpacing, write_BT, write_clippedRectangle, write_cm, write_cm, write_cm, write_cm, write_cm, write_d, write_d, write_DQuote, write_ET, write_h, write_ID, write_j_, write_J, write_M, write_n, write_q_, write_q_, write_Q, write_Q, write_SQuote, write_Tc, write_Td_, write_TD, write_Tj_, write_Tj_, write_TJ_Close, write_TJ_Open, write_TJ_SpaceLength, write_TJ_Text, write_TJ, write_TL, write_Tm, write_Tm, write_Tm, write_Tm, write_Tr, write_Ts, write_Tw, write_Tx, write_Tz, write_w_, write_W, write_Wx, write, write, write, write, write, writeColorValue, writeName, writeName, writeNewLine, writePair, writePoint, writePointX, writePointY, writeSpace
 
Methods inherited from class com.cete.dynamicpdf.Resource
getUid, newUid
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getResourceType

public ResourceType getResourceType()
Gets the type of resource.

Overrides:
getResourceType in class Resource
Returns:
the type of resource.
See Also:
ResourceType

getSectionPageNumber

public int getSectionPageNumber()
Gets the current page being drawn the document.

Returns:
sectionPageNumber the current page.

getPageNumber

public int getPageNumber()
Gets the total pages being drawn to the document.

Returns:
pageNumber the total pages.

getPage

public Page getPage()
Gets the Page object the page writer belongs to.

Returns:
page.

getResources

public PageResources getResources()
Gets the page resources used on the page.

Returns:
resources the page resources used on the page.

getAnnotations

public PageAnnotationList getAnnotations()
Gets a list of annotations used on the page.

Returns:
annotations a list of annotations used on the page.

setStrokeColorSpace

public void setStrokeColorSpace(ColorSpace colorSpace)
Sets the color space for the page.

Parameters:
colorSpace - The ColorSpace to set.
See Also:
ColorSpace

setFillColorSpace

public void setFillColorSpace(ColorSpace colorSpace)
Sets the color space for the page.

Parameters:
colorSpace - The ColorSpace to set.
See Also:
ColorSpace

write_Do

public void write_Do(Resource xObject)
Writes a PDF "Do" operator to the page.

Specified by:
write_Do in class OperatorWriter
Parameters:
xObject - The XObject to reference.
See Also:
Resource

write_cs_

public void write_cs_(ColorSpace colorSpace)
Writes a PDF "cs" operator to the page.

Parameters:
colorSpace - The ColorSpace to draw.
See Also:
ColorSpace

write_CS

public void write_CS(ColorSpace colorSpace)
Writes a PDF "CS" operator to the page.

Parameters:
colorSpace - The ColorSpace to draw.
See Also:
ColorSpace

write_scn_

public void write_scn_(SpotColor tint)
Writes a PDF "scn" operator to the page.

Parameters:
tint - The tint to draw.

write_scn_

public void write_scn_(Gradient pattern)
Writes a PDF "scn" operator to the page.

Parameters:
pattern - The Gradient to draw.
See Also:
Gradient

write_SCN

public void write_SCN(SpotColor tint)
Writes a PDF "SCN" operator to the page.

Parameters:
tint - The tint to draw.

write_SCN

public void write_SCN(Gradient pattern)
Writes a PDF "SCN" operator to the page.

Parameters:
pattern - The Gradient to draw.
See Also:
Gradient

write_Tf

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

Specified by:
write_Tf in class OperatorWriter
Parameters:
font - Font to draw.
fontSize - The font size to draw.
See Also:
Font

write_gs

public void write_gs(Resource extGState)
Writes a PDF "gs" operator to the page.

Parameters:
extGState - The external graphics state Resource to draw.
See Also:
Resource

write_m_

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

Overrides:
write_m_ in class OperatorWriter
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.

Overrides:
write_l_ in class OperatorWriter
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.

Overrides:
write_c in class OperatorWriter
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.

Overrides:
write_v in class OperatorWriter
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.

Overrides:
write_y in class OperatorWriter
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.

Overrides:
write_re in class OperatorWriter
Parameters:
x - The X coordinate to draw.
y - The Y coordinate to draw.
width - The width to draw.
height - The height to draw.

write_s_

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

Overrides:
write_s_ in class OperatorWriter

write_S

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

Overrides:
write_S in class OperatorWriter

write_fx

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

Overrides:
write_fx in class OperatorWriter

write_f

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

Overrides:
write_f in class OperatorWriter

write_B

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

Overrides:
write_B in class OperatorWriter

write_BI

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

Overrides:
write_BI in class OperatorWriter

write_EI

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

Overrides:
write_EI in class OperatorWriter

write_b_

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

Overrides:
write_b_ in class OperatorWriter

write_Bx

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

Overrides:
write_Bx in class OperatorWriter

write_bx_

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

Overrides:
write_bx_ in class OperatorWriter

write_G

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

Overrides:
write_G in class OperatorWriter
Parameters:
color - The Grayscale color to draw.
See Also:
Grayscale

write_g_

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

Overrides:
write_g_ in class OperatorWriter
Parameters:
color - The Grayscale color to draw.
See Also:
Grayscale

write_RG

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

Overrides:
write_RG in class OperatorWriter
Parameters:
color - The RgbColor to draw.
See Also:
RgbColor

write_rg_

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

Overrides:
write_rg_ in class OperatorWriter
Parameters:
color - The RgbColor to draw.
See Also:
RgbColor

write_K

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

Overrides:
write_K in class OperatorWriter
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.

Overrides:
write_k_ in class OperatorWriter
Parameters:
color - The CmykColor to draw.
See Also:
CmykColor

draw

public void draw(DocumentWriter writer)
Writes content stream to the page.

Specified by:
draw in class Resource
Parameters:
writer - DocumentWriter object to write the contents.
See Also:
DocumentWriter

DynamicPDF by ceTe Software

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