DynamicPDF by ceTe Software

com.cete.dynamicpdf.io
Class PageWriter

java.lang.Object
  |
  +--com.cete.dynamicpdf.Resource
        |
        +--com.cete.dynamicpdf.io.OperatorWriter
              |
              +--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_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_gs(Resource extGState)
          Writes a PDF "gs" 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.
 
Methods inherited from class com.cete.dynamicpdf.io.OperatorWriter
getDimensions, getDocument, getDocumentWriter, getRequiredPdfObjects, requireLicense, requireLicense, setCharacterSpacing, setColor, setDimensions, setFillColor, setFont, setGraphicsMode, setHorizontalScaling, setLeading, setLineCap, setLineJoin, setLineStyle, setLineWidth, setMiterLimit, setStrokeColor, setTextDefaults, setTextMode, setTextRenderingMode, setTextRise, setWordSpacing, write_b_, write_B, write_BT, write_bx_, write_Bx, write_c, write_cm, write_cm, write_cm, write_cm, write_cm, write_d, write_d, write_DQuote, write_ET, write_f, write_fx, write_g_, write_G, write_h, write_j_, write_J, write_k_, write_K, write_l_, write_m_, write_M, write_n, write_q_, write_q_, write_Q, write_Q, write_re, write_rg_, write_RG, write_s_, write_S, write_SQuote, write_Tc, write_Td_, write_TD, write_Tj_, write_Tj_, write_TJ, write_TL, write_Tm, write_Tm, write_Tm, write_Tm, write_Tr, write_Ts, write_Tw, write_Tx, write_Tz, write_v, write_w_, write_W, write_Wx, write_y, write, write, write, write, write, writeApply, writeApply, writeColorValue, 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
See Also:
ResourceType

getSectionPageNumber

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


getPageNumber

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


getPage

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


getResources

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


getAnnotations

public PageAnnotationList getAnnotations()
Gets 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.

Parameters:
xObject - The XObject to reference.

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

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 DynamicPDFTM v4.0.3 for Java generated on March 22, 2007
© Copyright 2007, ceTe Software