|
aXSL API 0.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A PDF document.
Field Summary | |
static byte |
PDF_VERSION_1_3
Constant indicating version 1.3 of the PDF spec. |
static byte |
PDF_VERSION_1_4
Constant indicating version 1.4 of the PDF spec. |
static byte |
PDF_VERSION_1_5
Constant indicating version 1.5 of the PDF spec. |
static byte |
PDF_VERSION_1_6
Constant indicating version 1.6 of the PDF spec. |
static byte[] |
VALID_VERSIONS
Constant containing the valid PDF versions. |
static java.lang.String[] |
VERSION_STRINGS
Constant containing the valid PDF version strings. |
Method Summary | |
void |
addDefaultFilter(java.lang.String filterName)
Adds a standard filter to the document. |
void |
close(java.io.OutputStream stream)
Closes the OutputStream. |
PDFColor |
createPDFColor(java.awt.Color color)
Get or create an implementation-specific PDFColor instance. |
PDFEncryption |
createPDFEncryption()
Create an implementation-specific PDFEncryption instance to be used by this document. |
PDFPage |
createPDFPage(int pagewidth,
int pageheight)
Create an implementation-specific PDFPage instance. |
PDFOutlineParent |
getOutlineRoot()
Get the root Outlines object. |
PDFFont |
getPDFFont(FontUse fontUse)
Looks up or creates a PDFFont for a given font. |
void |
outputHeader(java.io.OutputStream outputStream)
Writes the PDF header. |
void |
resetGraphicsState()
Resets the Graphics State. |
void |
setCreationDate(java.util.Date creationDate)
Sets the "creation date" document meta-information for the PDF document. |
void |
setProducer(java.lang.String producer)
Sets the "producer" document meta-information for the PDF document. |
void |
setVersion(int newVersion)
Sets the PDF version that should be created when this document is written. |
void |
writeIndirectObjects(java.io.OutputStream stream)
Writes any used but unwritten indirect objects into the stream. |
Field Detail |
public static final byte PDF_VERSION_1_3
public static final byte PDF_VERSION_1_4
public static final byte PDF_VERSION_1_5
public static final byte PDF_VERSION_1_6
public static final byte[] VALID_VERSIONS
public static final java.lang.String[] VERSION_STRINGS
Method Detail |
public void setVersion(int newVersion) throws PDFException
newVersion
- One of #PDF_VERSION_1_3, #PDF_VERSION_1_4,
#PDF_VERSION_1_5, or #PDF_VERSION_1_6.
PDFException
- For an invalid PDF version.public void setProducer(java.lang.String producer)
producer
- The name of the producer of the PDF document.public void setCreationDate(java.util.Date creationDate)
creationDate
- The creation date of the PDF document.public void addDefaultFilter(java.lang.String filterName)
filterName
- The name of the standard filter to be added.public void outputHeader(java.io.OutputStream outputStream) throws java.io.IOException
outputStream
- The OutputStream to write the header to.
java.io.IOException
- If there is an error writing to the OutputStream.public void close(java.io.OutputStream stream) throws java.io.IOException
stream
- The OutputStream to be closed.
java.io.IOException
- If there is an error closing the OutputStream.public PDFFont getPDFFont(FontUse fontUse)
fontUse
- The font instance for which a PDFFont is needed.
fontUse
.public PDFOutlineParent getOutlineRoot()
public void resetGraphicsState()
public void writeIndirectObjects(java.io.OutputStream stream) throws java.io.IOException
stream
- The OutputStream to which the output should be written.
java.io.IOException
- For errors writing to the OutputStream.public PDFEncryption createPDFEncryption()
public PDFColor createPDFColor(java.awt.Color color)
color
- The color that should be created.
public PDFPage createPDFPage(int pagewidth, int pageheight)
pagewidth
- The width of the page that should be created, in
millipoints.pageheight
- The height of the page that should be created, in
millipoints.
|
aXSL API 0.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This documentation was created September 6 2006 by The aXSL Group and may be freely copied. See license for details.