|
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.io.DocumentWriter
Represents a writer class for a document.
| Method Summary | |
void |
clearFontSubsetter()
Clears the current font subsetter. |
void |
delimit()
|
int |
getCurrentObjNum()
Gets the PDF object number of the currently open PDF object. |
boolean |
getDelimiterRequired()
Gets a value indicating if the output needs to be delimited. |
Document |
getDocument()
Gets the current document. |
FontSubsetter |
getFontSubsetter()
Gets the current font subsetter. |
int |
getNextObject()
Returns the next PDF object number that will be used. |
int |
getPageObject(int pageNumber)
Returns the PDF object number for the given page. |
int |
getPosition()
Gets the position in the document. |
DocumentResourceList |
getResources()
Gets a collection of resources. |
void |
setDelimiterRequired(boolean delimiterRequired)
Sets a value indicating if the output needs to be delimited. |
FontSubsetter |
setFontSubsetter(IFontSubsettable subsettableFont)
Sets the current font subsetter. |
void |
setPosition(int position)
Sets the position in the document. |
void |
write(byte bytVal)
Writes a byte to the output stream. |
void |
write(byte[] data)
Writes a byte array to the output stream. |
void |
write(byte[] data,
int length)
Writes a portion of a byte array to the output stream. |
void |
write(byte[] data,
int start,
int length)
Writes a portion of a byte array to the output stream. |
void |
write(float value)
Writes a float to the output stream. |
void |
write(java.lang.String text)
Writes text to the output stream. |
int |
writeBeginObject()
Begins a PDF object and send it to the output stream. |
void |
writeColorValue(float value)
Writes a color value to the document. |
void |
writeEndObject()
Ends a PDF object and send it to the output stream. |
void |
writeInteger(int value)
Writes an integer to the output stream. |
void |
writeNewLine()
Writes a new line to the document. |
void |
writeSpace()
Writes a space to the document. |
void |
writeStream(byte[] data,
int length,
boolean preserveData)
Writes a PDF stream object to the output stream. |
void |
writeStream(byte[] data,
int start,
int length,
boolean preserveData)
Writes a PDF stream object to the output stream. |
void |
writeText(byte[] text)
Writes a PDF text object to the output stream. |
void |
writeText(java.lang.String text)
Writes a PDF text object to the output stream. |
void |
writeText(java.lang.String textBefore,
byte[] text,
java.lang.String textAfter)
Writes a PDF text object to the output stream. |
void |
writeText(java.lang.String textBefore,
java.lang.String text,
java.lang.String textAfter)
Writes a PDF text object to the output stream. |
void |
writeUnicodeText(java.lang.String text)
Writes a PDF text object to the output stream. |
void |
writeUnicodeText(java.lang.String textBefore,
java.lang.String text,
java.lang.String textAfter)
Writes a PDF text object to the output stream. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public void delimit()
public int getPageObject(int pageNumber)
GeneratorException - if page number is invalid.
EmptyDocumentException - if document has no pages.pageNumber - Page number in the document.
public void write(java.lang.String text)
text - the String value to write.public int writeBeginObject()
public int getNextObject()
public void writeText(java.lang.String textBefore,
java.lang.String text,
java.lang.String textAfter)
textBefore - The String object containing text to appear before
the PDF text object.text - The String object containing text of the text object
to write.textAfter - The String object containing text to appear after
the PDF text object.
public void writeText(java.lang.String textBefore,
byte[] text,
java.lang.String textAfter)
textBefore - The String object containing text to appear before
the PDF text object.text - The byte array containing text of the text object
to write.textAfter - The String object containing text to appear after
the PDF text object.public void writeEndObject()
public void writeInteger(int value)
value - The integer value to write.public void write(float value)
value - The float value to write.public void write(byte bytVal)
bytVal - the byte to write.public void writeText(java.lang.String text)
text - The String value indicating text of the text object
to write.
public void writeUnicodeText(java.lang.String textBefore,
java.lang.String text,
java.lang.String textAfter)
textBefore - String text to appear before the PDF text object.text - String text of the text object to write.textAfter - String text to appear after the PDF text objectpublic void writeUnicodeText(java.lang.String text)
text - String text of the text object to write.public void writeText(byte[] text)
text - The byte array containing text of the text object to write.public void write(byte[] data)
data - byte array to output.
public void write(byte[] data,
int length)
data - byte array to output.length - integer length of output.
public void write(byte[] data,
int start,
int length)
data - byte array to output.start - int value indicating start of output.length - integer length of output.
public void writeStream(byte[] data,
int length,
boolean preserveData)
data - the byte array to output.length - the int value containing length of output.preserveData - this boolean value specifies if the data must be
preserved for future use.
public void writeStream(byte[] data,
int start,
int length,
boolean preserveData)
data - Byte array to output.start - Start of output.length - Length of output.preserveData - Specifies if the data must be preserved for
future use.public void writeSpace()
public void writeNewLine()
public void writeColorValue(float value)
value - the float Color value to write.public void setDelimiterRequired(boolean delimiterRequired)
public boolean getDelimiterRequired()
public DocumentResourceList getResources()
public int getCurrentObjNum()
public FontSubsetter setFontSubsetter(IFontSubsettable subsettableFont)
subsettableFont - Subsettable font to use for setting the current
font subsetter.
IFontSubsettable,
FontSubsetterpublic void clearFontSubsetter()
public Document getDocument()
public void setPosition(int position)
position - the int value representing the position in the current
documentpublic int getPosition()
public FontSubsetter getFontSubsetter()
FontSubsetter
|
DynamicPDF by ceTe Software | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||