|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.lowagie.text.pdf.internal.PdfVersionImp
Stores the PDF version information, knows how to write a PDF Header, and how to add the version to the catalog (if necessary).
| Field Summary | |
static byte[][] |
HEADER
Contains different strings that are part of the header. |
| Constructor Summary | |
PdfVersionImp()
|
|
| Method Summary | |
void |
addToCatalog(PdfDictionary catalog)
Adds the version to the Catalog dictionary. |
byte[] |
getVersionAsByteArray(char version)
Returns the version as a byte[]. |
PdfName |
getVersionAsName(char version)
Returns the PDF version as a name. |
void |
setAppendmode(boolean appendmode)
Sets the append mode. |
void |
setAtLeastPdfVersion(char version)
If the PDF Header hasn't been written yet, this changes the version as it will appear in the PDF Header, but only if the parameter refers to a higher version. |
void |
setPdfVersion(char version)
If the PDF Header hasn't been written yet, this changes the version as it will appear in the PDF Header. |
void |
setPdfVersion(PdfName version)
Sets the PDF version as it will appear in the Catalog. |
void |
writeHeader(OutputStreamCounter os)
Writes the header to the OutputStreamCounter. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final byte[][] HEADER
| Constructor Detail |
public PdfVersionImp()
| Method Detail |
public void setPdfVersion(char version)
PdfVersion
setPdfVersion in interface PdfVersionversion - a character representing the PDF versionPdfVersion.setPdfVersion(char)public void setAtLeastPdfVersion(char version)
PdfVersion
setAtLeastPdfVersion in interface PdfVersionversion - a character representing the PDF versionPdfVersion.setAtLeastPdfVersion(char)public void setPdfVersion(PdfName version)
PdfVersion
setPdfVersion in interface PdfVersionversion - the PDF name that will be used for the Version key in the catalogPdfVersion.setPdfVersion(com.lowagie.text.pdf.PdfName)public void setAppendmode(boolean appendmode)
public void writeHeader(OutputStreamCounter os)
throws IOException
IOExceptionpublic PdfName getVersionAsName(char version)
version - the version character.public byte[] getVersionAsByteArray(char version)
version - the version characterpublic void addToCatalog(PdfDictionary catalog)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||