|
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.
Licensing:
This class is a DynamicPDF Generator Professional Edition
feature. One of the following licenses is required for non-evaluation usage:
| Method Summary | |
void |
clearFontSubsetter()
Clears the current font subsetter. |
Section |
getCurrentSection()
Gets the current section. |
Document |
getDocument()
Gets the current document. |
FontSubsetter |
getFontSubsetter()
Gets the current font subsetter. |
abstract int |
getObjectNumber()
Gets the indirect object number of the current indirect object. |
abstract int |
getObjectNumber(int offset)
Gets the indirect object number of the current indirect object. |
abstract int |
getPageObject(int pageNumber)
Gets the indirect object number for the given page. |
abstract DocumentResourceList |
getResources()
Gets a collection of resources. |
FontSubsetter |
setFontSubsetter(IFontSubsettable subsettableFont)
Sets the current font subsetter. |
abstract void |
write(byte[] data)
Writes a byte array to the document. |
abstract void |
write(byte[] data,
int length)
Writes a portion of a byte array to the output stream. |
abstract void |
write(byte[] data,
int start,
int length)
Writes a portion of a byte array to the output stream. |
abstract void |
writeArrayClose()
Closes a PDF array on the document |
abstract void |
writeArrayOpen()
Opens a PDF array on the document. |
abstract int |
writeBeginObject()
Begins a PDF object and send it to the output stream. |
abstract void |
writeBoolean(boolean value)
Writes a boolean value to the document. |
abstract void |
writeDictionaryClose()
Closes a dictionary entry on the document. |
abstract void |
writeDictionaryOpen()
Opens a dictionary entry on the document. |
abstract void |
writeEndObject()
Ends a PDF object and send it to the output stream. |
abstract void |
writeName(byte nameByte)
Writes a byte to the document. |
abstract void |
writeName(byte[] name)
Writes a byte array to the document. |
abstract void |
writeName(byte[] name,
int start,
int length)
Writes a portion of the byte array to the document. |
abstract void |
writeName(byte[] name,
java.lang.String nameSufix)
Writes a byte array to the document. |
abstract void |
writeName(byte nameCharacter,
int nameNumber)
Writes a byte to the document. |
abstract void |
writeName(java.lang.String name)
Writes a String to the document. |
abstract void |
writeNull()
Writes a null value to the document. |
abstract void |
writeNumber(byte[] data,
int start,
int length)
Writes a number to the document. |
abstract void |
writeNumber(float value)
Writes a float value to the document. |
abstract void |
writeNumber(int value)
Writes an integer to the document. |
abstract void |
writeNumber(short value)
Writes a short value to the document. |
abstract void |
writeNumber0()
Writes the number 0 to the document. |
abstract void |
writeNumber1()
Writes the number 1 to the document. |
abstract void |
writeNumberColor(float value)
Writes a color value to the document. |
abstract void |
writeNumberNeg1()
Writes a negative 1 to the document. |
abstract void |
writeReference(int objectNumber)
Writes a resource reference to the document. |
void |
writeReference(Resource resource)
Writes a reference to the supplied resource to the document. |
abstract void |
writeReferenceShallow(int objectNumber)
Writes a shallow resource reference to the document. |
void |
writeReferenceShallow(Resource resource)
Writes a shallow reference to the supplied resource to the document. |
void |
writeReferenceUnique(Resource resource)
Writes a unique reference to the supplied resource to the document. |
abstract void |
writeStream(Buffer buffer,
int startIndex,
int startPosition,
int stopIndex,
int stopPosition,
int length)
Writes a buffer to the document. |
abstract void |
writeStream(byte[] data,
int length)
Writes a PDF stream object to the output stream. |
abstract void |
writeStream(byte[] data,
int start,
int length)
Writes a PDF stream object to the document. |
abstract int |
writeStreamWithCompression(byte[] data,
int length)
Writes a PDF stream object to the document. |
abstract void |
writeText(byte[] text)
Writes a PDF text object to the document. |
abstract void |
writeText(java.lang.String text)
Writes a PDF text object to the document. |
abstract void |
writeTextRawWithoutEncryption(byte[] text,
int startIndex,
int count)
Writes a raw PDF text object to the document without any encryption. |
abstract void |
writeTextWithoutEncryption(byte[] text)
Writes a PDF text object to the document without any encryption. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public abstract DocumentResourceList getResources()
public Section getCurrentSection()
public Document getDocument()
public FontSubsetter getFontSubsetter()
FontSubsetterpublic abstract int getObjectNumber()
public abstract int getObjectNumber(int offset)
offset - Offset from the current object.
public abstract int getPageObject(int pageNumber)
pageNumber - Page number in the document.
public abstract void write(byte[] data)
data - The byte array to output.
public abstract void write(byte[] data,
int length)
data - byte array to output.length - integer length of output.
public abstract 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 abstract void writeArrayOpen()
public abstract void writeArrayClose()
public abstract int writeBeginObject()
public abstract void writeBoolean(boolean value)
value - The boolean value to output.public abstract void writeDictionaryOpen()
public abstract void writeDictionaryClose()
public abstract void writeEndObject()
public abstract void writeName(java.lang.String name)
name - String to output to the document.public abstract void writeName(byte[] name)
name - Byte array to output to the document.
public abstract void writeName(byte[] name,
java.lang.String nameSufix)
name - Byte array to output to the document.nameSufix - Suffix to output to the document.public abstract void writeName(byte nameByte)
nameByte - Byte to output to the document.
public abstract void writeName(byte nameCharacter,
int nameNumber)
nameCharacter - Byte to output to the document.nameNumber - Integer to output to the document.
public abstract void writeName(byte[] name,
int start,
int length)
name - Byte array to output to the document.start - Start of the byte array to output.length - Length of the byte array to output.public abstract void writeReference(int objectNumber)
objectNumber - Resource object number or page number to be written to the document.public abstract void writeReferenceShallow(int objectNumber)
objectNumber - Resource object number or page number to be written to the document.public abstract void writeNumber0()
public abstract void writeNumber1()
public abstract void writeNumberNeg1()
public abstract void writeNumber(int value)
value - The value to write.public abstract void writeNumber(short value)
value - The value to write.
public abstract void writeNumber(byte[] data,
int start,
int length)
data - The byte array containing the number to be written.start - Start of number.length - Length of number.public abstract void writeNumber(float value)
value - The float value to write.public abstract void writeNumberColor(float value)
value - Color value to write.public abstract void writeNull()
public abstract void writeStream(byte[] data,
int length)
data - the byte array to output.length - the int value containing length of output.
public abstract void writeStream(byte[] data,
int start,
int length)
data - Byte array to output.start - Start of output.length - Length of output.
public abstract int writeStreamWithCompression(byte[] data,
int length)
data - Byte array to output.length - Length of output.
public abstract void writeText(java.lang.String text)
text - The String value indicating text of the text object
to write.public abstract void writeText(byte[] text)
text - The byte array containing text of the text object to write.
public abstract void writeTextRawWithoutEncryption(byte[] text,
int startIndex,
int count)
text - The text of the text object to write.startIndex - The start index of the supplied byte array.count - The number of total bytes to write.public abstract void writeTextWithoutEncryption(byte[] text)
text - The text of the text object to write.public void clearFontSubsetter()
public FontSubsetter setFontSubsetter(IFontSubsettable subsettableFont)
subsettableFont - Subsettable font to use for setting the current
font subsetter.
IFontSubsettable,
FontSubsetterpublic void writeReference(Resource resource)
resource - Resource to be written to the document.public void writeReferenceUnique(Resource resource)
resource - Resource to be written to the document.public void writeReferenceShallow(Resource resource)
resource - Resource to be written to the document.
public abstract void writeStream(Buffer buffer,
int startIndex,
int startPosition,
int stopIndex,
int stopPosition,
int length)
buffer - Buffer to be written to the document.startIndex - The Index to start writing.startPosition - The Position to start writing.stopIndex - The Index to stop writing.stopPosition - The Position to stop writing.length - The length of the buffer to write.
|
DynamicPDF by ceTe Software | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||