public interface PdfDocument
Modifier and Type | Method and Description |
---|---|
void |
addDefaultFilter(java.lang.String filterName)
Adds a standard filter to the document.
|
void |
addPageLabelRange(int startingPageIndex,
PdfPageLabelStyle labelStyle,
java.lang.CharSequence labelPrefix,
int startingPageNumber)
Adds a range page number label range to this 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.
|
PdfPattern |
createGradient(Gradient gradient)
Create a gradient pattern.
|
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(FontPdf fontPdf)
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.
|
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(FontPdf fontPdf)
fontPdf
- The font instance for which a PdfFont
is needed.fontPdf
.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.void addPageLabelRange(int startingPageIndex, PdfPageLabelStyle labelStyle, java.lang.CharSequence labelPrefix, int startingPageNumber)
startingPageIndex
- The 1-based page index of the first page in this
range.labelStyle
- The page number label style that should be used for the
numeric portion of each page label in this range. If null is passed, the
numeric portion of the page label is not included in the page number
label.labelPrefix
- The label prefix for page labels in this range.
For example, if the pages in this range are numbered "Appendix-1" to
"Appendix-8", the "labelPrefix" should be set to "Appendix-".startingPageNumber
- The value of the numeric portion for the first
page label in the range.
For example, if the document starts with six pages whose labels are
roman numerals, and the seventh page should be labeled with a "1", the
"startingPageNumber" for the range starting with that seventh page should
be "1".
Values less than 2 are all treated as 1.PdfPattern createGradient(Gradient gradient)
gradient
- The gradient to be created by the new pattern.This documentation was created 2017-01-24 at 21:26 GMT by The aXSL Group and may be freely copied. See license for details.