public class COSTrailer extends COSBasedObject
| Modifier and Type | Class and Description |
|---|---|
static class |
COSTrailer.MetaClass
The meta class implementation
|
| Modifier and Type | Field and Description |
|---|---|
static COSName |
DK_Encrypt |
static COSName |
DK_ID |
static COSName |
DK_Info
The well known attribute names
|
static COSName |
DK_Prev |
static COSName |
DK_Root |
static COSName |
DK_Size |
static COSName |
DK_XRefStm |
static COSTrailer.MetaClass |
META
The meta class instance
|
| Modifier and Type | Method and Description |
|---|---|
COSString |
cosGetDynamicFileID()
The dynamic file id part.
|
COSDictionary |
cosGetEncryption()
The /Encrypt field of the trailer.
|
COSArray |
cosGetFileID()
The current file id or null
|
COSArray |
cosGetID()
The /ID field of the trailer.
|
COSString |
cosGetPermanentFileID()
The permanent file id part.
|
void |
cosSetEncryption(COSDictionary encryption)
Set the /Encrypt field of the trailer.
|
byte[] |
createFileID()
Create a random id for use in the PDF file id.
|
COSInfoDict |
getInfoDict()
The
COSInfoDict containing metadata. |
int |
getPrev() |
COSCatalog |
getRoot()
Get the root object (the catalog) for the document.
|
int |
getSize() |
void |
invalidateCaches()
Invalidate all local caches as the base object may have changed.
|
void |
setInfoDict(COSInfoDict infoDict)
Set the info dictionary containing metadata.
|
void |
setRoot(COSCatalog root)
Set the catalog.
|
void |
updateFileID()
Generates a unique file ID array (10.3).
|
void |
updateFileID(COSString id1,
COSString id2)
Update the file id. id1 and id2 are optional default values for the new
file id.
|
changed, cosGetArray, cosGetDict, cosGetDoc, cosGetField, cosGetObject, cosGetStream, cosHasField, cosRemoveField, cosSetField, getAttribute, getFieldBoolean, getFieldDate, getFieldFixed, getFieldFixedArray, getFieldInt, getFieldMLString, getFieldString, removeAttribute, setAttribute, setFieldBoolean, setFieldFixed, setFieldInt, setFieldMLString, setFieldName, setFieldObject, setFieldString, toStringpublic static final COSName DK_Info
public static final COSName DK_Prev
public static final COSName DK_Root
public static final COSName DK_Size
public static final COSName DK_Encrypt
public static final COSName DK_ID
public static final COSName DK_XRefStm
public static final COSTrailer.MetaClass META
public COSString cosGetDynamicFileID()
public COSDictionary cosGetEncryption()
public COSArray cosGetFileID()
public COSArray cosGetID()
public COSString cosGetPermanentFileID()
public void cosSetEncryption(COSDictionary encryption)
encryption - The new encryption dictionarypublic byte[] createFileID()
- include time
- file location
- size
- document information dictionary
public COSInfoDict getInfoDict()
COSInfoDict containing metadata.COSInfoDict containing metadata.public int getPrev()
public COSCatalog getRoot()
public int getSize()
public void invalidateCaches()
COSBasedObjectinvalidateCaches in class COSBasedObjectpublic void setInfoDict(COSInfoDict infoDict)
infoDict - The info dictionary containing metadata.public void setRoot(COSCatalog root)
root - The document catalogpublic void updateFileID()
Copyright © 2013 intarsys consulting GmbH. All Rights Reserved.