public class PdfVersionImp extends Object implements PdfVersion
| Constructor and Description |
|---|
PdfVersionImp() |
| Modifier and Type | Method and Description |
|---|---|
void |
addDeveloperExtension(PdfDeveloperExtension de)
Adds a developer extension to the Extensions dictionary
in the Catalog.
|
void |
addToCatalog(PdfDictionary catalog)
Adds the version to the Catalog dictionary.
|
static 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.
|
public void setPdfVersion(char version)
PdfVersionsetPdfVersion in interface PdfVersionversion - a character representing the PDF versionPdfVersion.setPdfVersion(char)public void setAtLeastPdfVersion(char version)
PdfVersionsetAtLeastPdfVersion in interface PdfVersionversion - a character representing the PDF versionPdfVersion.setAtLeastPdfVersion(char)public void setPdfVersion(PdfName version)
PdfVersionsetPdfVersion in interface PdfVersionversion - the PDF name that will be used for the Version key in the catalogPdfVersion.setPdfVersion(com.aowagie.text.pdf.PdfName)public void setAppendmode(boolean appendmode)
appendmode - Append Mode.public void writeHeader(OutputStreamCounter os) throws IOException
os - OutputStream.IOException - I/O Exception.public static PdfName getVersionAsName(char version)
version - the version character.public void addToCatalog(PdfDictionary catalog)
catalog - Catalog to setpublic void addDeveloperExtension(PdfDeveloperExtension de)
PdfVersionaddDeveloperExtension in interface PdfVersionde - an object that contains the extensions prefix and dictionaryPdfVersion.addDeveloperExtension(com.aowagie.text.pdf.PdfDeveloperExtension)Copyright © 2021. All rights reserved.