|
aXSL API 0.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PdfDocument
A PDF document.
Method Summary | |
---|---|
void |
addDefaultFilter(java.lang.String filterName)
Adds a standard filter to the document. |
void |
close()
Wraps up the processing of the document, completing the writing of any open objects and the document trailer, then closing any resources, including any open output streams. |
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 |
setAuthor(java.lang.String author)
Sets the author of the document. |
void |
setCreationDate(java.util.Date creationDate)
Sets the "creation date" document meta-information for the PDF document. |
void |
setKeywords(java.lang.String keywords)
Sets the keywords of the document. |
void |
setProducer(java.lang.String producer)
Sets the "producer" document meta-information for the PDF document. |
void |
setSubject(java.lang.String subject)
Sets the subject of the document. |
void |
setTitle(java.lang.String title)
Sets the title of the document. |
void |
setVersion(PdfVersion newVersion)
Sets the PDF version that should be created when this document is written. |
void |
writeHeader()
Writes the PDF header. |
void |
writeIndirectObjects()
Writes any used but unwritten indirect objects into the stream. |
Method Detail |
---|
void setVersion(PdfVersion newVersion)
newVersion
- The new PDFVersion for this document.void setTitle(java.lang.String title)
title
- The new title for the document.void setAuthor(java.lang.String author)
author
- The new author of the document.void setSubject(java.lang.String subject)
subject
- The new subject of the document.void setKeywords(java.lang.String keywords)
keywords
- The new keywords of the document.void setProducer(java.lang.String producer)
producer
- The name of the producer of the PDF document.void setCreationDate(java.util.Date creationDate)
creationDate
- The creation date of the PDF document.void addDefaultFilter(java.lang.String filterName)
filterName
- The name of the standard filter to be added.void writeHeader() throws PdfException
PdfException
- If there is an error during the writing.void close() throws PdfException
PdfException
- For errors during writing or closing any open
OutputStream.PdfFont getPdfFont(FontUse fontUse)
fontUse
- The font instance for which a PDFFont is needed.
fontUse
.PdfOutlineParent getOutlineRoot()
void writeIndirectObjects() throws PdfException
PdfException
- For errors writing to the OutputStream.PdfEncryption createPdfEncryption()
PdfColor createPdfColor(java.awt.Color color)
color
- The color that should be created.
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.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This documentation was created August 8 2007 by The aXSL Group and may be freely copied. See license for details.